Skip to Content
0
Jul 29, 2020 at 01:35 PM

How to pass date range to Offline Lumira discovery data store in lumira designer 2.3

98 Views

I have created stacked bar chart on offline lumira discovery data store. I have two datefields START_DATE and END_DATE on my dashboard.

Usecase:- When user selects any date in start and end date stacked bar chart should get filter.

On the select of Start and End I'm running below script to filter offline datastore but it is not working:-

//TO SET FILTER ON DATE RANGE

var startDate = START_DATE.getDate();

var endDate = END_DATE.getDate();

var varRange = startDate + "-" + endDate;

DS_2.setFilter("DS:2,DIM:id_27", varRange);

Note:- DS_2 is offline Lumira Discovery datastore based on IDT universe.

But when in above script I use variable startDate or endDate instead of varRange it is working. I think offline data store can't handle range values.