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!

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

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

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