Android Question [Solved] B4XDialog And B4XDateTemplate - Wait For Button Click

alon

Active Member
Licensed User
Longtime User
Hi,
I am using B4XDialog And B4XDateTemplate for a date picker.
Now when the user clicks on a day it is apply as he press ok,
I would like to change that in a way that the user must click on ok button , in order to apply the date.

B4X:
Wait For (Dialog.ShowTemplate(DateTemplate, "OK", "", "CANCEL"))   Complete (Result As Int)
    If Result = XUI.DialogResponse_Positive Then
       
        Log(DateTime.Date(DateTemplate.Date))
    End If
Thanks
 
Last edited:

Mahares

Expert
Licensed User
Longtime User
This was also answered here:
I wonder if it is possible to make the change in the B4X Views library in a future update so it can be effective either by clicking the OK or not without having to modify the class. I think, it catches by surprise many users who are expecting an OK button to be clicked before the date is selected.
 
Upvote 0
Top