<?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 How to create a drop-down that displays values for the selected inputlookup csv file? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-drop-down-that-displays-values-for-the-selected/m-p/247488#M47722</link>
    <description>&lt;P&gt;So let's says I have 2 lookup fields &lt;CODE&gt;|inputlookup abc.csv&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;|inputlookup def.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I want to tokenize and create a drop-down label called "lookup file" . Now I should be able to click the drop-down and select the abc.csv and I should be able to see values for only the abc file. Similarly I want another option in drop-down for def.csv, so when I select the def.csv from the drop-down, I should be able to see values for that inputlookup file.&lt;/P&gt;

&lt;P&gt;Please help &lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 20:27:08 GMT</pubDate>
    <dc:creator>CHINTASH</dc:creator>
    <dc:date>2016-07-08T20:27:08Z</dc:date>
    <item>
      <title>How to create a drop-down that displays values for the selected inputlookup csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-drop-down-that-displays-values-for-the-selected/m-p/247488#M47722</link>
      <description>&lt;P&gt;So let's says I have 2 lookup fields &lt;CODE&gt;|inputlookup abc.csv&lt;/CODE&gt; &amp;amp; &lt;CODE&gt;|inputlookup def.csv&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I want to tokenize and create a drop-down label called "lookup file" . Now I should be able to click the drop-down and select the abc.csv and I should be able to see values for only the abc file. Similarly I want another option in drop-down for def.csv, so when I select the def.csv from the drop-down, I should be able to see values for that inputlookup file.&lt;/P&gt;

&lt;P&gt;Please help &lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 20:27:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-drop-down-that-displays-values-for-the-selected/m-p/247488#M47722</guid>
      <dc:creator>CHINTASH</dc:creator>
      <dc:date>2016-07-08T20:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a drop-down that displays values for the selected inputlookup csv file?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-drop-down-that-displays-values-for-the-selected/m-p/247489#M47723</link>
      <description>&lt;P&gt;Try  like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="lookupname"&amp;gt;
      &amp;lt;label&amp;gt;Lookup Name&amp;lt;/label&amp;gt;
      &amp;lt;choice value="Fils1.csv"&amp;gt;File1&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="FIle2.csv"&amp;gt;File2&amp;lt;/choice&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;| gentimes start=-1 |  eval "search to run"="|inputlookup $lookupname$" | table search*&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&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;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&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, 08 Jul 2016 21:09:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-create-a-drop-down-that-displays-values-for-the-selected/m-p/247489#M47723</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-07-08T21:09:51Z</dc:date>
    </item>
  </channel>
</rss>

