<?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 populate dropdown from lookup table? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645204#M52671</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;If you want dropdown you should switch type="dropdown" instead of multiselect. Also I propose to use $tok_name|s$ instead of $tok_name$ to avoid issues if values have e.g. spaces. Without |s it could cause some issues with correct values. Another option for you could be to use "$tok_name$".&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Wed, 31 May 2023 06:26:43 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2023-05-31T06:26:43Z</dc:date>
    <item>
      <title>How to populate dropdown from lookup table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645143#M52667</link>
      <description>&lt;P&gt;Hi, I need to populate the dropdown from the lookup table. I can only drop down labels from the lookup table, not the value. I need to use filter the dashboard based on the selected value. Currently, label is passing to the queries in the dashboard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 03:11:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645143#M52667</guid>
      <dc:creator>splunkuser320</dc:creator>
      <dc:date>2023-05-31T03:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate dropdown from lookup table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645194#M52669</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246178"&gt;@splunkuser320&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;You have to give the lookup and table the required field you want to use as a dropdown.&lt;BR /&gt;In below example code, sample is the name of lookup and abc is the output field I wanted to display. So, you will get the values from abc field in the dropdown list for selection&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;input type="multiselect" token="tok_name" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Dropdown&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;abc&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;abc&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;|inputlookup sample
|table abc&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
    &amp;lt;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this helps you, an upvote would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 05:17:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645194#M52669</guid>
      <dc:creator>Manasa_401</dc:creator>
      <dc:date>2023-05-31T05:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate dropdown from lookup table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645195#M52670</link>
      <description>&lt;P&gt;To use this dropdown selected value in dashboard query, pass the token- $tok_name$ to the SPL.&lt;BR /&gt;&lt;BR /&gt;example:&lt;BR /&gt;|where abc="$tok_name$"&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 05:21:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645195#M52670</guid>
      <dc:creator>Manasa_401</dc:creator>
      <dc:date>2023-05-31T05:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate dropdown from lookup table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645204#M52671</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;If you want dropdown you should switch type="dropdown" instead of multiselect. Also I propose to use $tok_name|s$ instead of $tok_name$ to avoid issues if values have e.g. spaces. Without |s it could cause some issues with correct values. Another option for you could be to use "$tok_name$".&lt;BR /&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 06:26:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-dropdown-from-lookup-table/m-p/645204#M52671</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-05-31T06:26:43Z</dc:date>
    </item>
  </channel>
</rss>

