<?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 can I create a wildcard for a dropdown menu? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421914#M27806</link>
    <description>&lt;P&gt;I think you may need to use the Prefix and Suffix to add the quotes around the selected value.  The way it is now, it is probably treating $sel_TX$ as a string.  In the config for the dropdown, add a " as the prefix and a " as the suffix, then remove from your search around the $sel_TX$.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:54:56 GMT</pubDate>
    <dc:creator>kmorris_splunk</dc:creator>
    <dc:date>2020-09-30T00:54:56Z</dc:date>
    <item>
      <title>How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421910#M27802</link>
      <description>&lt;P&gt;HI Splunker's!&lt;/P&gt;

&lt;P&gt;In a dashboard I have a dropdown menu populated from a inputlookup CSV file.  I have more then 1500 entries in that table.  I want to be able to select a particular choice from the dropdown but also to be able to put a wildcard to get multiple choices from that table.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
Let say that my table contains  "transaction code" :&lt;BR /&gt;
ZGCM01C&lt;BR /&gt;
ZGCM01L&lt;BR /&gt;
ZGCM01M&lt;BR /&gt;
ZGCM02C&lt;BR /&gt;
ZGCM02L&lt;BR /&gt;
ZGCM03C  ...etc&lt;/P&gt;

&lt;P&gt;I want to be able to choose 1 single instance like ZGCM01C or be able to put ZGCM* to get all the choices listed in the example above.&lt;/P&gt;

&lt;P&gt;Here I have my search string that given me all the result I have in the table.:&lt;BR /&gt;
|inputlookup trprod_lookup &lt;BR /&gt;
| dedup TRPROD&lt;BR /&gt;
| sort TRPROD&lt;BR /&gt;
| table TRPROD&lt;/P&gt;

&lt;P&gt;To use a wildcard I tried this in a independent search and it work's fine:&lt;BR /&gt;
|inputlookup trprod_lookup &lt;BR /&gt;
| dedup TRPROD| sort TRPROD&lt;BR /&gt;
| table TRPROD | search TRPROD="ZGMC*"&lt;/P&gt;

&lt;P&gt;But if I put this in my search from the dropdown menu it does'nt produce any result.&lt;BR /&gt;
|inputlookup trprod_lookup &lt;BR /&gt;
| dedup TRPROD| sort TRPROD&lt;BR /&gt;
| table TRPROD | search TRPROD="$sel_TX$"&lt;/P&gt;

&lt;P&gt;Any suggestion?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421910#M27802</guid>
      <dc:creator>usernamejpblais</dc:creator>
      <dc:date>2020-09-30T00:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421911#M27803</link>
      <description>&lt;P&gt;@usernamejpblais your dropdown has the value ZGMC* ? Try search TRPROD=$sel_TX$&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 17:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421911#M27803</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-13T17:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421912#M27804</link>
      <description>&lt;P&gt;@usernamejpblais &lt;/P&gt;

&lt;P&gt;Where is this token $sel_TX$ getting the value from ?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jun 2019 18:18:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421912#M27804</guid>
      <dc:creator>amitm05</dc:creator>
      <dc:date>2019-06-13T18:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421913#M27805</link>
      <description>&lt;P&gt;can you share the XML that is the definition of your dropdown?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:15:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421913#M27805</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2019-06-14T12:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421914#M27806</link>
      <description>&lt;P&gt;I think you may need to use the Prefix and Suffix to add the quotes around the selected value.  The way it is now, it is probably treating $sel_TX$ as a string.  In the config for the dropdown, add a " as the prefix and a " as the suffix, then remove from your search around the $sel_TX$.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:54:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421914#M27806</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2020-09-30T00:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421915#M27807</link>
      <description>&lt;P&gt;Hi @usernamejpblais ,&lt;BR /&gt;
You cannot generate a wildcard value for a dropdown list, or a multichoice box, or a radio button (at least not with the standard Splunk simple XML format, advanced javascript/html is probably beyond the scope of your question).  You can have a text box input that you can take the results from and put a wildcard after it.&lt;/P&gt;

&lt;P&gt;You &lt;EM&gt;CAN&lt;/EM&gt; create an static entry that includes a wildcard value in the list of choices.&lt;/P&gt;

&lt;P&gt;For your use case, however, I would recommend &lt;EM&gt;NOT&lt;/EM&gt; using a dropdown box because your list of options is very large.  Dropdown lists make more sense for lists that are somewhere in the range of a few choices to maybe a couple of dozen.  Anything more than that becomes a hassle to search and use.&lt;/P&gt;

&lt;P&gt;There are other options.  You could split the choices into two options:&lt;BR /&gt;
First X characters (maybe 3 or 4 in your case) which filters to only items starting with those first 3 or 4 characters, and then a second dropdown that will provide results for all the values that start with the first 4 characters provided in the first box.&lt;/P&gt;

&lt;P&gt;I hope this helps.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 12:38:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/421915#M27807</guid>
      <dc:creator>jnudell_2</dc:creator>
      <dc:date>2019-06-14T12:38:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/531100#M36107</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Engager lia-component-message-view-widget-author-username"&gt;&lt;A href="https://community.splunk.com/t5/user/viewprofilepage/user-id/160679" target="_self"&gt;&lt;SPAN class=""&gt;usernamejpblais&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Engager lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;I don't know if it is exactly what you are looking for, because it's not really flexible, but maybe it's an option to use "choice value" in your picklist:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="UserName lia-user-name lia-user-rank-Engager lia-component-message-view-widget-author-username"&gt;&lt;SPAN class=""&gt;&amp;lt;input type="dropdown" token="trans_cd" searchWhenChanged="true"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;Select a transaction code:&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;choice value="ZGMC*"&amp;gt;ZGMC*&amp;lt;/choice&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Nov 2020 07:03:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/531100#M36107</guid>
      <dc:creator>rrovers</dc:creator>
      <dc:date>2020-11-27T07:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create a wildcard for a dropdown menu?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/691060#M56611</link>
      <description>&lt;P&gt;This is how I added a wildcard to a dropdown list&lt;BR /&gt;&lt;BR /&gt;Query for the dynamic options&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval type="*"| append [ search  index=blah rest of search ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2024 07:26:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-can-I-create-a-wildcard-for-a-dropdown-menu/m-p/691060#M56611</guid>
      <dc:creator>jhuysing</dc:creator>
      <dc:date>2024-06-19T07:26:54Z</dc:date>
    </item>
  </channel>
</rss>

