I’m developing a chart application module with the {date} as dimension and {temperature} as metrics. A search field uses {date} and a date range as filters.
The question arises by setting up the <Default value of the start date/time> and <Default end date/time value> for the tab. I’ve always used a static text value for these fields but we’d like to improve the application by filling these fields with dynamic variables, where the start date/time has today minus 7 days date and the end date has today date, in this way user can modify start/end dates fields for other dates queries.
My first thought was to declare two PHP variables onApplication init event with these calculated dates and copy them to the search field on the tab.
The assignment of these variables to their respective fields in the tab form is proving to be a problem.
Any assistance will be well appreciated.