Android Question Preference dialog - automatic time

leemizu

Member
Dear all
can you help
Can in the Preference dialog, we add an automatic clock to make it easier without having to set it again?
If you know or can, can you tell me how?
thank you
 

leemizu

Member
Not sure that I understand. Are you showing a time field? You can set the current time in the data map before you show the dialog.

this is how I have set the time in the preferenceDialog but what appears in the table is only the number 0, how do I solve it and I want to make an automatic clock, is it possible?
B4X:
B4XTable1.AddColumn("Tanggal", B4XTable1.COLUMN_TYPE_DATE)
    B4XTable1.AddColumn("Time Sign", B4XTable1.COLUMN_TYPE_NUMBERS)
    B4XTable1.AddColumn("NIK", B4XTable1.COLUMN_TYPE_TEXT)
    B4XTable1.AddColumn("Clockin", B4XTable1.COLUMN_TYPE_TEXT)
    B4XTable1.AddColumn("Time out", B4XTable1.COLUMN_TYPE_NUMBERS)
    B4XTable1.AddColumn("Clockout", B4XTable1.COLUMN_TYPE_TEXT)
    LoadData
    PrefDialog.Initialize(Parent, "Absen", 300dip, 300dip)
    PrefDialog.LoadFromJson(File.ReadString(File.DirAssets, "template.json"))
    PrefDialog.SearchTemplate.MaxNumberOfItemsToShow = 500
    B4XTable1.MaximumRowsPerPage = 20
 
Last edited:
Upvote 0
Top