Dashboards & Visualizations

How do I make the domain entity to be multiselect with two token?

nithys
Path Finder

how do i make the domain entity to be multiselect with value1: material,value 2:sm,value 3:all

then my inputToken &outputtoken are different for each data entity selection,,,how can i pass two token if used in multiselect to two different search query

<row>
<panel>
<input type="dropdown" token="tokEnvironment" searchWhenChanged="true">
<label>Domain</label>
<choice value="goodsdevelopment">goodsdevelopment</choice>
<choice value="materialdomain">materialdomain</choice>
<choice value="costsummary">costsummary</choice>
<change>
<unset token="tokSystem"></unset>
<unset token="form.tokSystem"></unset>
</change>
<default></default>
</input>

<input type="dropdown" token="tokSystem" searchWhenChanged="true">

        <label>Domain Entity</label>

        <fieldForLabel>$tokEnvironment$</fieldForLabel>

        <fieldForValue>$tokEnvironment$</fieldForValue>

        <search>

          <query>| makeresults

 

| eval goodsdevelopment="airbag",materialdomain="material,sm",costsummary="costing"</query>

        </search>

        <change>

          <condition match="$label$==&quot;airbag&quot;">

            <set token="inputToken">airbagSizeScheduling</set>

            <set token="outputToken">goodsdevelopment</set>

          </condition>

          <condition match="$label$==&quot;costing&quot;">

            <set token="inputToken">costSummary</set>

            <set token="outputToken">costing</set>

          </condition>

          <condition match="$label$==&quot;material&quot;">

            <set token="inputToken">material</set>

            <set token="outputToken">md</set>

          </condition>

        </change>

      </input>

Screenshot 2023-09-19 at 9.17.33 PM.png

Labels (2)
0 Karma
1 Solution

nithys
Path Finder

@niketn 

how do i make the domain entity to be multiselect with value1: material,value 2:sm,value 3:all

then my inputToken &outputtoken are different for each data entity selection,,,how can i pass two token if used in multiselect to two different search query

<row>
<panel>
<input type="dropdown" token="tokEnvironment" searchWhenChanged="true">
<label>Domain</label>
<choice value="goodsdevelopment">goodsdevelopment</choice>
<choice value="materialdomain">materialdomain</choice>
<choice value="costsummary">costsummary</choice>
<change>
<unset token="tokSystem"></unset>
<unset token="form.tokSystem"></unset>
</change>
<default></default>
</input>

<input type="dropdown" token="tokSystem" searchWhenChanged="true">

        <label>Domain Entity</label>

        <fieldForLabel>$tokEnvironment$</fieldForLabel>

        <fieldForValue>$tokEnvironment$</fieldForValue>

        <search>

          <query>| makeresults

 

| eval goodsdevelopment="airbag",materialdomain="material,sm",costsummary="costing"</query>

        </search>

        <change>

          <condition match="$label$==&quot;airbag&quot;">

            <set token="inputToken">airbagSizeScheduling</set>

            <set token="outputToken">goodsdevelopment</set>

          </condition>

          <condition match="$label$==&quot;costing&quot;">

            <set token="inputToken">costSummary</set>

            <set token="outputToken">costing</set>

          </condition>

          <condition match="$label$==&quot;material&quot;">

            <set token="inputToken">material</set>

            <set token="outputToken">md</set>

          </condition>

        </change>

      </input>

Screenshot 2023-09-19 at 9.17.33 PM.png

View solution in original post

Tags (1)
0 Karma

nithys
Path Finder

@niketn 

how do i make the domain entity to be multiselect with value1: material,value 2:sm,value 3:all

then my inputToken &outputtoken are different for each data entity selection,,,how can i pass two token if used in multiselect to two different search query

<row>
<panel>
<input type="dropdown" token="tokEnvironment" searchWhenChanged="true">
<label>Domain</label>
<choice value="goodsdevelopment">goodsdevelopment</choice>
<choice value="materialdomain">materialdomain</choice>
<choice value="costsummary">costsummary</choice>
<change>
<unset token="tokSystem"></unset>
<unset token="form.tokSystem"></unset>
</change>
<default></default>
</input>

<input type="dropdown" token="tokSystem" searchWhenChanged="true">

        <label>Domain Entity</label>

        <fieldForLabel>$tokEnvironment$</fieldForLabel>

        <fieldForValue>$tokEnvironment$</fieldForValue>

        <search>

          <query>| makeresults

 

| eval goodsdevelopment="airbag",materialdomain="material,sm",costsummary="costing"</query>

        </search>

        <change>

          <condition match="$label$==&quot;airbag&quot;">

            <set token="inputToken">airbagSizeScheduling</set>

            <set token="outputToken">goodsdevelopment</set>

          </condition>

          <condition match="$label$==&quot;costing&quot;">

            <set token="inputToken">costSummary</set>

            <set token="outputToken">costing</set>

          </condition>

          <condition match="$label$==&quot;material&quot;">

            <set token="inputToken">material</set>

            <set token="outputToken">md</set>

          </condition>

        </change>

      </input>

Screenshot 2023-09-19 at 9.17.33 PM.png

Tags (1)
0 Karma
Get Updates on the Splunk Community!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

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

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

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 ...