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!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...