Set up initial filter values for embed dashboard.
Hi Team,
I'm trying to set up an embed dashboard with initial filter values for version 8 as shown in the last example of this doc:
https://wiki.yellowfinbi.com/display/user80/Advanced+Use
The dashboard and the filters work. However, the filter values don't load.
Tried using the Yellowfin Database as source to bypass other authentications, and using the 'siadmin' user.
The 'Yellowfin.log' shows the following errors
BMC:SR:2020-03-30 11:55:09:DEBUG (JsAPI2DashHandler:handleRequest) - User is not logged in
BMC:SR:2020-03-30 11:55:09:ERROR (JsAPI2DashHandler:handleRequest) - Error loading filters: com.hof.mi.jsapi.JsAPI2DashHandler$_A
com.hof.mi.jsapi.JsAPI2DashHandler$_A
Have you seen this problem before?
Attached is the script used and the log of just the replicated issue in DEBUG.
Hi Rodrigo,
Apologies for the delay in this. Having looked into this, it appears our example code on the wiki is incorrect. To get the filter to work please try replacing the individual filter assignments as follows:
The addition of the encodeURI function should fix the issue as it looks like the | character is no longer being URL encoded by default. I have reached out to our technical writers to update the documentation accordingly.
Please let me know how you go with this and if you run into any more issues.
Cheers,
Neal
Hi Rodrigo,
Apologies for the delay in this. Having looked into this, it appears our example code on the wiki is incorrect. To get the filter to work please try replacing the individual filter assignments as follows:
The addition of the encodeURI function should fix the issue as it looks like the | character is no longer being URL encoded by default. I have reached out to our technical writers to update the documentation accordingly.
Please let me know how you go with this and if you run into any more issues.
Cheers,
Neal
Hi Rodrigo,
This is not something we have seen before. Can you please provide some more detail on the type of dashboard and the filters used so we can look to replicate this issue? Can you also expand on the filters work but the values don't load? Do you mean that you are able to apply the default filter value but when you open the filter you are unable to see that value in the filter box? Or do you mean that the filter is entered/selected correctly by the dashboard does not respond to the filter values?
Can you also confirm which build version of smart reporting you are using so I can test on the same?
Cheers,
Neal
Hi Rodrigo,
This is not something we have seen before. Can you please provide some more detail on the type of dashboard and the filters used so we can look to replicate this issue? Can you also expand on the filters work but the values don't load? Do you mean that you are able to apply the default filter value but when you open the filter you are unable to see that value in the filter box? Or do you mean that the filter is entered/selected correctly by the dashboard does not respond to the filter values?
Can you also confirm which build version of smart reporting you are using so I can test on the same?
Cheers,
Neal
Replies have been locked on this page!