org-scn-design-studio-community / sdkpackage

SDK Package of SCN Design Studio Community
Apache License 2.0
32 stars 29 forks source link

Date Range Slider: Inconstistent fields #97

Closed oemo closed 8 years ago

oemo commented 8 years ago

getDate() will only get me the latest date set via Scripting setDate(). After user navigation, getDate() will still return the last date set via scripting

getStartDate() and getEndDate() will only return values after the first on change event. The on change event only fires on user navigation, not on date change via scripting.

My proposal is to adjust the setDate() function as follows: Set the date and calculate start- and enddate accordingly. It will also execute the coding of the Design Studio "on Change" event.

Therefore, getDate() and getStartDate() and getEndDate() will always be up to date.

Another Idea: Maybe it would also be useful to have an Initialization event, which I can use to fill the date and start- and enddate, but which does not fire the on Change event?

Thanks!