I’m working in Ignition 8.1.48 and have two options in my Perspective view: Header Control and Date Selection.
When the Header Control radio button is selected, the Date Selection components are disabled, and vice‑versa.
Both Header Control and Date Selection contain two date pickers (Start Date and End Date), and each is bound bidirectionally to a session property.
I want the selected dates to persist for the entire session, but the Start Date keeps resetting to one day earlier after navigating between different screens.
Is there a reliable way to keep the selected dates consistent throughout the session?
Thanks!!!
Rather than having a bidirectional binding, you could use a script on the Action Performed event to write the selected date to your session parameter. That way the parameter only changes when the date time picker is actually interacted with.
Now the component is setting the maxDate value (or the saved value) into the value property.
The maxDate is bound to endDate.
Did you remove the binding on the value, if you use the script you shouldn't need it. You can add a binding (not bidirectional) to the MinDate and MaxDates as needed.
I just removed the bidirectional, binding should be there as we are setting default date from session events to session property.
I will check for Min and Max date.