Getting Data In

Search fields not updating on token set

jdcain
Engager

I am attempting to set a token via a drilldown in a simple xml dashboard as a way to filter a table.

    <input type="dropdown" token="batchId" searchWhenChanged="true">
      <label>BatchId</label>
      <fieldForLabel>BatchId</fieldForLabel>
      <fieldForValue>BatchId</fieldForValue>
      <search base="base">
        <query>| dedup BatchId | sort BatchId</query>
      </search>
      <choice value="*">All</choice>
      <default>*</default>
      <initialValue>*</initialValue>
    </input>

...

 <drilldown>
          <condition field="BatchId">
            <set token="batchId">$click.value2$</set>
          </condition>
 </drilldown>

Clicking the field does filter the table when the token is set but the dropdown box does not reflect the token change to indicate to the user that a filter is active.

I found this question pasted below but it also does not update the field until refresh, and then as a side effect of setting the token as the default the clear X no longer works to change the filter back to *.
https://answers.splunk.com/answers/462005/how-to-update-input-text-fields-when-tokens-are-ch.html

Get Updates on the Splunk Community!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...