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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...