cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize InputFields with DateNavigators First and Last Selected Dates

former_member188498
Active Participant
0 Kudos

Hello,

I have two InputFields (StartDateInputField and EndDateInputField) which are bounded to context attributes (StartDate and EndDate) of type Date. There is also a DateNavigator, whose firstSelectedDate and lastSelectedDate properties are also bounded to those context attributes.

Whenever I select dates in DateNavigator then those dates are visible automatically in InputFields, but, on the other hand when I select dates in InputFields, the changes are not visible in DateNavigator.

I thought its sufficient to bind these controls to the same context attributes, but apparently its not working.

Is there a way to accomplish this?

Best regards,

Ladislav Pomezny

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

Hi Ladislav,

Define onEnter action for InputField UI element (action handler implementation can be with empty body). But, in this case synchronization will be done only when you type smth in InputFiled and after press Enter. No other way to fire event from InputField.

Best regards, Maksim Rashchynski.

former_member188498
Active Participant
0 Kudos

Hi Maksim,

thanks for the solution.

Answers (0)