Hi there,
I use a ABMDateTimeScroller control in a modalsheet:
When I click on a button on my "normal" page the modal sheet should open and show a specific time:
but it doesn't work! I see still the initial time only and I didn't get any error message.
What is my mistake?
Thanks for any help
George
I use a ABMDateTimeScroller control in a modalsheet:
B4X:
Sub BuildModalSheet() As ABMModalSheet
Dim myModal As ABMModalSheet
myModal.Initialize(page, "fixedsheet", False, ABM.MODALSHEET_TYPE_NORMAL, "")
myModal.Content.UseTheme("modalcontent")
........
Dim oSTART As ABMDateTimeScroller
oSTART.Initialize( page, "oSTART", ABM.DATETIMESCROLLER_TYPE_TIME, ABM.DATETIMESCROLLER_MODE_CLICKPICK, DateTime.Now, "", "" )
oSTART.CancelText = "Abbrechen"
oSTART.PickText = "Speichern"
oSTART.TitleTimeFormat = "HH:ii"
oSTART.ReturnTimeFormat = "HH:ii"
oSTART.TimeShowAMPM = False
myModal.Content.Cell(3,2).AddComponent( oSTART )
.......
When I click on a button on my "normal" page the modal sheet should open and show a specific time:
B4X:
......
page.ShowModalSheet("TimeSheet")
Dim mymodal As ABMModalSheet = page.ModalSheet("TimeSheet")
Dim oSTART As ABMDateTimeScroller = mymodal.Content.Cell(3,2).Component("oSTART")
.....
Dim lDT As Long = DateTime.TimeParse( tbl.GetString( tblCellInfo.Row, 4 ) & ":00" )
Log( DateTime.Time( lDT ) ) 'The time is correct, I see it in the log
oSTART.SetDate( lDT )
oSTART.Refresh
......
but it doesn't work! I see still the initial time only and I didn't get any error message.
What is my mistake?
Thanks for any help
George