Forum

This content is now out of date.

Visit Our Community

Trouble with LoadDashFilters

Hi,

I am having trouble using the .dash.loadDashFilters function to set default filters. My code for embedding is as follows:
[code]



[/code]
Hi,

Is the dashboard loading without trying to set the default filter value?
Also, which version of Yellowfin are you currently using?

A few things we can see with your code which we believe could be wrong (depends on version);

-You should be using 'key' instead of filterid
e.g
[code]filterValues[filters[i].key] = '2013';[/code]

-You should be calling the DashUUID not the ReportUUID
e.g.
[code]params.dashUUID = '1a76e649-b700-4057-a3f1-4ad37d9349ac';[/code]

-You should be loading the filters from the dashboard
e.g. [code]yellowfin.loadDash(params);[/code]

-One other thing that might also be worth trying is removing the 'show filters false'
e.g.
[code]params.showFilters = false;[/code]

Please let me know how this goes.

Regards,
David