Hello guys,
I have a dashboard with two tabs. I've added a dropdown input and I'm going to add more inputs. But I want to display input only for a specific tab. In my case, I want for example the dropdown input to be displayed only when Inventory tab is active. The dropdown input should disappear when I click Sales tab.
Can anyone help me how to achieve this ? Thanks a lot
Hi @Ombessam
If you click on your input, then in the panel on the right click the Display dropdown and select "In Canvas"
You can then move it around inside a single tab.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will
Hi @Ombessam
If you click on your input, then in the panel on the right click the Display dropdown and select "In Canvas"
You can then move it around inside a single tab.
Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards
Will
Are you using Classic or Studio?
Please share your source code for your dashboard (in a codeblock </>)
Hi @ITWhisperer I'm using dashboard studio. Here is my source code
{
"title": "ButterCup Game",
"description": "",
"inputs": {
"input_global_trp": {
"options": {
"defaultValue": "0,",
"token": "global_time"
},
"title": "Global Time Range",
"type": "input.timerange"
},
"input_wAcCA79n": {
"options": {
"defaultValue": "*",
"items": [
{
"label": "All",
"value": "*"
},
{
"label": "ACCESSORIES",
"value": "ACCESSORIES"
},
{
"label": "ARCADE",
"value": "ARCADE"
},
{
"label": "SHOOTER",
"value": "SHOOTER"
},
{
"label": "SIMULATION",
"value": "SIMULATION"
},
{
"label": "SPORTS",
"value": "SPORTS"
},
{
"label": "STRATEGY",
"value": "STRATEGY"
},
{
"label": "TEE",
"value": "TEE"
}
],
"token": "dd_token"
},
"title": "Game Categories",
"type": "input.dropdown"
}
},
"defaults": {
"dataSources": {
"ds.search": {
"options": {
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
}
}
}
},
"visualizations": {
"viz_t3jLGiwh": {
"dataSources": {
"primary": "ds_V5vxqc3K"
},
"title": "Sales count by product",
"type": "splunk.pie"
}
},
"dataSources": {
"ds_V5vxqc3K": {
"name": "CategorySales",
"options": {
"query": "index=web sourcetype=\"access_combined\" status=200 product_name=* categoryId=$dd_token$\n| stats count by product_name",
"queryParameters": {
"earliest": "$global_time.earliest$",
"latest": "$global_time.latest$"
}
},
"type": "ds.search"
}
},
"layout": {
"globalInputs": [
"input_global_trp",
"input_wAcCA79n"
],
"layoutDefinitions": {
"layout_1": {
"options": {
"height": 960,
"width": 1440
},
"structure": [
{
"item": "viz_t3jLGiwh",
"position": {
"h": 400,
"w": 1440,
"x": 0,
"y": 0
},
"type": "block"
}
],
"type": "grid"
},
"layout_AfZAhYi7": {
"structure": [],
"type": "grid"
}
},
"options": {},
"tabs": {
"items": [
{
"label": "Inventory",
"layoutId": "layout_1"
},
{
"label": "Sales",
"layoutId": "layout_AfZAhYi7"
}
]
}
}
}