Dashboards & Visualizations

How to make a dynamic drilldown created table or panel unvisible

mnaim
Explorer

I currently have a form is simplexml with a text box and submit button. When search is run on user entered query, the user can do a dynamic drill down on the results and have a new table appear next to the original table. To achieve this, I did something like this:

<form>
  <fieldset autoRun="False" submitButton="true">
   <input type="text" token="qtoken">
  </input>
 </fieldset>
 <row>
  <panel>
   <table>
     <searchString>index=blacklists sourcetype="malicious_ip" addr=$qtoken$|table _time, sourcetype, category,notes</searchString>
     <option name="drilldown">row</option>
    <drilldown>
        <set toke="category">"$row.category$"</set>
    </drilldown>
  </table>
 </panel>
<panel>
  <table depends="$category$">
    <searchString>index=blacklists sourcetype="malicious_ip" CC="US"  addr=$category$|table _time, sourcetype, notes</searchString>
 </table>
</panel>
</row>
</form>

This work but I want to make the second table gone when a new search is ran i.e when the submitButton is clicked, unless there is a better way. Right now, I have to refresh the browser to make it disappear or do a new drilldown on the new search to have it's content replaced.

0 Karma

stephanefotso
Motivator

Add a searchWhenChanged="true" in your text box. :

<input type="text" token="qtoken" searchWhenChanged="true">
SGF
0 Karma

mnaim
Explorer

Unfortunately, adding searchWhenChanged="true" didn't change anything.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...