I'm running into an issue where the Date/Time that I'm generating `ITime` is correctly displayed in Label1.Text when the screen shows up (OnVisible), but when changing dropdowns, from say 8:00pm to 4:00pm, ITime doesn't update until the 2nd time it's changed, back to 3:00pm, ITime = 4:00pm (previous change).
Screen1.OnVisible = UpdateContext({
IDate: DatePicker1.SelectedDate,
IHour: HourPicker1.Selected.Value,
IMinute: MinutePicker1.Selected.Value,
IAMPM: AMPMPicker1.Selected.Value,
ITime: IDate & " " & IHour & ":" & IMinute & " " & IAMPM
})
Label1.Text = ITime
ITime = 4/25/2018 8:00 PM
HourPicker1.OnChange = UpdateContext({
IHour:HourPicker1.Selected.Value,
ITime: IDate & " " & IHour & ":" & IMinute & " " & IncidentDateAMPM.Selected.Value
})Label1.Text doesn't change until DatePicker1 is changed a 2nd time.
ITime = 4/25/2018 8:00 PM (OnVisible)
ITime = 4/25/2018 8:00 PM (HourPicker1 changed to 4:00 PM)
ITime = 4/25/2018 4:00 PM (HourPicker1 changed to 3:00 PM)
ITime = 4/25/2018 3:00 PM (HourPicker1 changed to 9:00 PM)
It's acting like it's a step behind updating ITime?