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 | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...

New Articles from Academic Learning Partners, Help Expand Lantern’s Use Case Library, ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Your Guide to SPL2 at .conf24!

So, you’re headed to .conf24? You’re in for a good time. Las Vegas weather is just *chef’s kiss* beautiful in ...