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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...