BloX - Dropdown list as a dashboard filter
Updated 05-17-2024
Hi Astroraf ,
Please try to use the template added below along with the dashboard based on the "SampleECommerce" ElastiCube. Choose "Category" from the "Category" table.
{
"showCarousel": true,
"carouselAnimation": {
"delay": 0,
"showButtons": false
},
"body": [
{
"type": "Container",
"style": {
"justify-items": "center",
"align-items": "center"
},
"items": [
{
"type": "TextBlock",
"spacing": "medium",
"size": "large",
"text": "Choose a Category",
"style": {
"text-align": "center",
"font-weight": "600"
}
},
{
"type": "Container",
"spacing": "small",
"items": [
{
"type": "Input.ChoiceSet",
"id": "data.filters[0].filterJaql.members[0]",
"class": "",
"displayType": "compact",
"style": {
"align-self": "center"
},
"choices": "{choices:Category}"
}
]
}
]
}
],
"actions": [
{
"type": "Filters",
"title": "Filter!",
"data": {
"filters": [
{
"panelName": "Category",
"filterJaql": {
"explicit": true,
"members": [
""
]
}
}
]
}
},
{
"type": "Filters",
"title": "Clear",
"data": {
"filters": [
{
"panelName": "Category",
"filterJaql": {
"explicit": true,
"all": true
}
}
]
}
}
]
}
It works a bit in a different way because it has a "Clear" button to clear selection before applying a new one. I've tested it on L2023.11. Hope it helps to achieve your goal.
Best Regards, Lily