Custom Interactive Filter using month by month filter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-10-2019 04:10 PM
Hey all,
I'm trying to create a custom interactive filter that will have two buttons and will be filtering the assessment instance table. The two buttons will clear the filters and return to the reports default filter, and the other will move the filter dates one month back. So the default would show instance responses from the start of June to the end of June. If you click the move back one month button you would see survey responses from the start of May to the end of May.
I created a Dynamic Content record like so
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
var my_dashboardMessageHandler = new DashboardMessageHandler("my_unique_id");
</script>
<input id="oneMonthBack" type="button" value="Back One Month" onclick="my_dashboardMessageHandler.publishFilter('asmt_assessment_instance', 'due_dateONToday@javascript:gs.beginningOfToday()@javascript:gs.endOfToday()');" />
<input id="currentMonth" type="button" value="Current Month" onclick="my_dashboardMessageHandler.removeFilter();" />
</j:jelly>
Obviously the oneMonthBack button is setup right now to just show due dates of today. I have tried quite a few arrangements here and am struggling to find a solution. Any help would be appreciated!
- Labels:
-
Dashboard
-
Performance Analytics
-
Reporting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2019 07:01 AM
as far as I know there is no monthly interval so you would have to recalculate the beginning and end date in JS