on ‎2024 May 28 2:02 PM
Hello everyone,
Is there any way in SAC to set up a date picker filter that always selects the last 90 days from the current date?
We need a date picker for an analysis because the dynamic filter and the lookback do not allow selecting a single date or a specific week in the past.
Thank you!
Request clarification before answering.
hi FxGk,
if you want max. out SACs flexibility you could use a custom widget (also helpful if you want to use other time-releated characteristics like 0FISCPER)
https://github.com/SAC-Custom-Widgets/datepicker
You then have to use scripting to get the range needed.
Current date: var end = new Date();
start date: var start = new Date(end.getTime() - 90 * 24 * 60 * 60 * 1000);
push values to custom widget:
Datepicker_1.setDateVal(start);
Datepicker_1.setSecondDateVal(end);
and force refresh.
br
edgar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.