Dashboards & Visualizations

Drilldown help

ShaneNewman
Motivator

I am trying to drilldown to another view and pass 2 variables in the process. This is what it looks like in Advanced XML (Sideview Utils) and it works:

          <module name="Redirector">
            <param name="url">capsule_ad_floor_drill</param>
            <param name="arg.fact_facility_desc">$fact_facility_desc$</param>
            <param name="arg.patient_location_mnemonic">$click.value$</param>
          </module>

My interperation of it in Simple XML:

  <drilldown>
    <link>
      <![CDATA[
      /app/hca_capsule_web/capsule_adoption_unit?form.fact_facility_desc=$fact_facility_desc$&patient_location_mnemonic=$row.Nursing Unit$
      ]]>
    </link>
  </drilldown>

This seems to be working correctly, based on what I see in the next screen's URL:

app/hca_capsule_web/capsule_adoption_unit?form.fact_facility_desc=Alaska%20Regional%20Hospital&patient_location_mnemonic=L.ORT&earliest=-1d%40d&latest=%40d

So I assume the problem is with the target view... Below is the code. It populates a Facility, just not the location. Any ideas?

  <fieldset autoRun="true" submitButton="false">
    <input type="time" searchWhenChanged="true">
      <label>Select a Time Range:</label>
      <default>Yesterday</default>
    </input>
    <input type="dropdown" token="fact_facility_desc" searchWhenChanged="true">
      <label>Select a Facility</label>
      <populatingSearch fieldForValue="fact_facility_desc" fieldForLabel="Facility">
        <![CDATA[| `new_get_facility_list` | `capsule_eval_facility` | sort Facility ]]>
      </populatingSearch>
    </input>
    <input type="dropdown" token="patient_location_mnemonic" searchWhenChanged="true">
      <label>Select a Nursing Unit</label>
      <populatingSearch fieldForValue="patient_location_mnemonic" fieldForLabel="patient_location_mnemonic">
        <![CDATA[| `capsule_unit_include_inputlookup($fact_facility_desc$)` ]]>
      </populatingSearch>
    </input>
  </fieldset>
Tags (2)
1 Solution

nfilippi_splunk
Splunk Employee
Splunk Employee

Within the Simple XML drilldown configuration, try prefixing the token name with "form.".

Something like this:


<![CDATA[
/app/hca_capsule_web/capsule_adoption_unit?form.fact_facility_desc=$fact_facility_desc$&form.patient_location_mnemonic=$row.Nursing Unit$
]]>

View solution in original post

nfilippi_splunk
Splunk Employee
Splunk Employee

Within the Simple XML drilldown configuration, try prefixing the token name with "form.".

Something like this:


<![CDATA[
/app/hca_capsule_web/capsule_adoption_unit?form.fact_facility_desc=$fact_facility_desc$&form.patient_location_mnemonic=$row.Nursing Unit$
]]>

ShaneNewman
Motivator

That worked! Thanks!

0 Karma
Get Updates on the Splunk Community!

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...