<?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 Re: How to have the best dropdown + OR statement? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338389#M21970</link>
    <description>&lt;P&gt;hi marycordovacaa - this looks like it would work as well if I had many "OR" statements - this this case i have only 2 OR 3 per site (and only 9 sites) so since my options are simple, will go with davpx solution above, but will keep yours in mind if i have a more complex matrix of options.&lt;/P&gt;

&lt;P&gt;Thx for the reply!&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jan 2018 00:40:05 GMT</pubDate>
    <dc:creator>kwanx</dc:creator>
    <dc:date>2018-01-30T00:40:05Z</dc:date>
    <item>
      <title>How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338384#M21965</link>
      <description>&lt;P&gt;Hello - assistance please.&lt;/P&gt;

&lt;P&gt;Looking for best way to have an OR statement for  "choice value" in drop down config.&lt;/P&gt;

&lt;P&gt;Similar to this, but this does not work:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="location"&amp;gt;
        &amp;lt;label&amp;gt;location&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="BLTMMD*" OR "WASHDC*"&amp;gt;site_1&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="BFLONY*" OR "FLSHNY*"&amp;gt;site_2&amp;lt;/choice&amp;gt;
        &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:35:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338384#M21965</guid>
      <dc:creator>kwanx</dc:creator>
      <dc:date>2018-01-29T18:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338385#M21966</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="dropdown" token="location"&amp;gt;
         &amp;lt;label&amp;gt;location&amp;lt;/label&amp;gt;
         &amp;lt;choice value="*"&amp;gt;ALL&amp;lt;/choice&amp;gt;
         &amp;lt;choice value="BLTMMD* OR WASHDC*"&amp;gt;site_1&amp;lt;/choice&amp;gt;
         &amp;lt;choice value="BFLONY* OR FLSHNY*"&amp;gt;site_2&amp;lt;/choice&amp;gt;
         &amp;lt;initialValue&amp;gt;*&amp;lt;/initialValue&amp;gt;
     &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 29 Jan 2018 18:41:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338385#M21966</guid>
      <dc:creator>davpx</dc:creator>
      <dc:date>2018-01-29T18:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338386#M21967</link>
      <description>&lt;P&gt;Assuming you have a dashboard and you want to provide a dropdown that defaults to everything or allows the user to select an OR separated list of possible values you could use the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;/search&amp;gt;
  &amp;lt;fieldForLabel&amp;gt;title&amp;lt;/fieldForLabel&amp;gt;
  &amp;lt;fieldForValue&amp;gt;id&amp;lt;/fieldForValue&amp;gt;
  &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
  &amp;lt;valuePrefix&amp;gt;scenario_id="&amp;lt;/valuePrefix&amp;gt;
  &amp;lt;valueSuffix&amp;gt;"&amp;lt;/valueSuffix&amp;gt;
  &amp;lt;delimiter&amp;gt; OR &amp;lt;/delimiter&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is what this looks like in the WebUI:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4245i811420A17C75B032/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4246i524716B1B5BBD701/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 19:24:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338386#M21967</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2018-01-29T19:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338387#M21968</link>
      <description>&lt;P&gt;Here is what this looks like in the finished Dashboard:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4247i454E9E0ED5153CDB/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2018 19:30:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338387#M21968</guid>
      <dc:creator>marycordova</dc:creator>
      <dc:date>2018-01-29T19:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338388#M21969</link>
      <description>&lt;P&gt;davpx - thx for the reply, this worked! I was close, just wrong syntax &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 00:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338388#M21969</guid>
      <dc:creator>kwanx</dc:creator>
      <dc:date>2018-01-30T00:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to have the best dropdown + OR statement?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338389#M21970</link>
      <description>&lt;P&gt;hi marycordovacaa - this looks like it would work as well if I had many "OR" statements - this this case i have only 2 OR 3 per site (and only 9 sites) so since my options are simple, will go with davpx solution above, but will keep yours in mind if i have a more complex matrix of options.&lt;/P&gt;

&lt;P&gt;Thx for the reply!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jan 2018 00:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-have-the-best-dropdown-OR-statement/m-p/338389#M21970</guid>
      <dc:creator>kwanx</dc:creator>
      <dc:date>2018-01-30T00:40:05Z</dc:date>
    </item>
  </channel>
</rss>

