abhinavt
11-26-2024Cloud Apps
Retrieve Explicit Dashboard Filter values when "Include All" is selected
Hello All,
I'm trying to get a dashboard filter values when Sisense dashboard is embedded in our website (using EmbedSDK). I was able to get the active filters when I use the below function and when "Include All" is not selected.
// Function to retrieve filter values for the dashboard
function getDashboardFilterValues()
{
const filter = prism.activeDashboard.filters.$$items.find(el => el.jaql && el.jaql.dim === dimension);
return filter?.jaql?.filter?.members || [];
}
}
Problem arises when a user selects "include all" (see below) instead of explicit selection, this function doesn't return any values. Ideally it should still return the 3 values as shown above.