<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Run a different code for different values in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354098#M19729</link>
    <description>&lt;P&gt;i do have type=1 , type=2, and type=3&lt;/P&gt;

&lt;P&gt;based on the type that is selected, i would like to run a different set of codes.&lt;BR /&gt;
can you help me with syntax or provide direction.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Feb 2018 06:09:00 GMT</pubDate>
    <dc:creator>jiaqya</dc:creator>
    <dc:date>2018-02-02T06:09:00Z</dc:date>
    <item>
      <title>Run a different code for different values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354098#M19729</link>
      <description>&lt;P&gt;i do have type=1 , type=2, and type=3&lt;/P&gt;

&lt;P&gt;based on the type that is selected, i would like to run a different set of codes.&lt;BR /&gt;
can you help me with syntax or provide direction.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 06:09:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354098#M19729</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-02-02T06:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Run a different code for different values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354099#M19730</link>
      <description>&lt;P&gt;@jiaqya, try the following run anywhere dashboard which sets the query to run based on type selected in the dropdown through its &lt;CODE&gt;&amp;lt;change&amp;gt;&lt;/CODE&gt; event handler.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Query based on Type&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokType" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Type to run corresponding query&amp;lt;/label&amp;gt;
      &amp;lt;choice value="type1"&amp;gt;Type 1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="type2"&amp;gt;Type 2&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="type3"&amp;gt;Type 3&amp;lt;/choice&amp;gt;
      &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="type1"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;|  makeresults|  eval dummy="Search Query 1"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="type2"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;|  makeresults|  eval dummy="Search Query 2"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition value="type3"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;|  makeresults|  eval dummy="Search Query 3"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokQuery$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Feb 2018 07:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354099#M19730</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-02-02T07:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Run a different code for different values</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354100#M19731</link>
      <description>&lt;P&gt;Thanks  Niket, ill try this and let you know.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2018 09:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/Run-a-different-code-for-different-values/m-p/354100#M19731</guid>
      <dc:creator>jiaqya</dc:creator>
      <dc:date>2018-02-02T09:08:35Z</dc:date>
    </item>
  </channel>
</rss>

