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!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

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

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...