Jump to content

How to get the value from date range picker


CHUN KIT LEE

Recommended Posts

Hi,

I want to modify the date range filter value by using date range picker in Text Area, so I try to get its content and set thefilter by adding action control to it. Is it possible to get the JavaScript variable directly

Thank you!

Date Range Picker :https://www.daterangepicker.com/

Link to comment
Share on other sites

My new thought is that store JavaScript variable in document property by using spotfire input field, then edit the date range filter value base on newly added document properties.

 

However, the document properties value won't change if I assign a javascript variable to the spotfire input field.

Link to comment
Share on other sites

Hi cklee75,

You can find some code snippets here (javascript as well as iton python) that let's you set the date ranges in datepickers as well as setting the min and max values of these dates:

https://spotfired.blogspot.com/2014/07/two-popup-calendars-start-and-end...

https://spotfired.blogspot.com/2014/07/change-date-rangefilters-porgrama...

https://spotfired.blogspot.com/2014/07/get-min-and-max-values-from-range...

 

Kind regards,

David Boot-Olazabal

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...