<?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 a drop-down menu via selected values from a timepicker? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253669#M15831</link>
    <description>&lt;P&gt;Please try&lt;BR /&gt;
&amp;lt;search&amp;gt;&lt;BR /&gt;
        &lt;QUERY&gt;Your query&lt;/QUERY&gt;&lt;BR /&gt;
        &lt;EARLIEST&gt;$form.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
        &lt;LATEST&gt;$fort.latest&lt;/LATEST&gt;&lt;BR /&gt;
      &lt;/P&gt;</description>
    <pubDate>Mon, 05 Oct 2015 16:50:23 GMT</pubDate>
    <dc:creator>afishkin_splunk</dc:creator>
    <dc:date>2015-10-05T16:50:23Z</dc:date>
    <item>
      <title>How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253664#M15826</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I have a dashboard which has  'Timepicker' and 'Dropdown Menu' panels as shown below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;Cascading Multiple Dropdown inc. Time - Working Clone&amp;lt;/label&amp;gt;
      &amp;lt;description&amp;gt;A form input element's selected value is used to populate another form input element's options.&amp;lt;/description&amp;gt;
      &amp;lt;fieldset autoRun="true"&amp;gt;
        &amp;lt;input type="time" token="dashboardTime"&amp;gt;
          &amp;lt;label&amp;gt;Select a Time Range&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
            &amp;lt;earliest&amp;gt;@d&amp;lt;/earliest&amp;gt;
            &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input type="dropdown" token="username"&amp;gt;
          &amp;lt;label&amp;gt;Select a Form&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
          &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
          &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt;detail.utr="*" | stats count by detail.formId&amp;lt;/query&amp;gt;
          &amp;lt;/search&amp;gt;
          &amp;lt;earliestTime&amp;gt;$dashboardTime.earliest$&amp;lt;/earliestTime&amp;gt;
          &amp;lt;latestTime&amp;gt;$dashboardTime.latest$&amp;lt;/latestTime&amp;gt;
          &amp;lt;fieldForLabel&amp;gt;detail.formId&amp;lt;/fieldForLabel&amp;gt;
          &amp;lt;fieldForValue&amp;gt;detail.formId&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The problem I have is that I'm trying to link the Time Picker to the drop-down menu, so the values in the drop-down menu will depend on the time range selected.&lt;/P&gt;

&lt;P&gt;I've been working on this for some time now, but I can't get this to work.&lt;/P&gt;

&lt;P&gt;Could someone possibly look at this please and let me know where I'm going wrong?&lt;/P&gt;

&lt;P&gt;Many thanks and kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 08:11:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253664#M15826</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-10-05T08:11:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253665#M15827</link>
      <description>&lt;P&gt;I think the problem is in line 19 and 20&lt;BR /&gt;
You used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliestTime&amp;gt;$dashboardTime.earliest$&amp;lt;/earliestTime&amp;gt;
&amp;lt;latestTime&amp;gt;$dashboardTime.latest$&amp;lt;/latestTime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It needs to be:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;earliest&amp;gt;$dashboardTime.earliest$&amp;lt;/earliest&amp;gt;
&amp;lt;latest&amp;gt;$dashboardTime.latest$&amp;lt;/latest&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2015 08:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253665#M15827</guid>
      <dc:creator>aholzel</dc:creator>
      <dc:date>2015-10-05T08:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253666#M15828</link>
      <description>&lt;P&gt;Hi, thank you for coming back to me with this.&lt;/P&gt;

&lt;P&gt;I've made the changes as you suggest, but unfortunately this doesn't work because the dropdown menu doesn't re-populate when the date changes.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 08:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253666#M15828</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-10-05T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253667#M15829</link>
      <description>&lt;P&gt;Hi IRHM73,&lt;/P&gt;

&lt;P&gt;How about you put the "earliest" &amp;amp; "latest" tokens in your search query? Something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;query&amp;gt;detail.utr="*" earliest=$dashboardTime.earliest$ latest=$dashboardTime.latest$ | stats count by detail.formId&amp;lt;/query&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 05 Oct 2015 09:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253667#M15829</guid>
      <dc:creator>vincenteous</dc:creator>
      <dc:date>2015-10-05T09:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253668#M15830</link>
      <description>&lt;P&gt;Hi @vincenteous, thank you for taking the time to reply to my post. This works great.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 09:17:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253668#M15830</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-10-05T09:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253669#M15831</link>
      <description>&lt;P&gt;Please try&lt;BR /&gt;
&amp;lt;search&amp;gt;&lt;BR /&gt;
        &lt;QUERY&gt;Your query&lt;/QUERY&gt;&lt;BR /&gt;
        &lt;EARLIEST&gt;$form.earliest$&lt;/EARLIEST&gt;&lt;BR /&gt;
        &lt;LATEST&gt;$fort.latest&lt;/LATEST&gt;&lt;BR /&gt;
      &lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 16:50:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253669#M15831</guid>
      <dc:creator>afishkin_splunk</dc:creator>
      <dc:date>2015-10-05T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to populate a drop-down menu via selected values from a timepicker?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253670#M15832</link>
      <description>&lt;P&gt;Hi @afishkin, thank you very much for this.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Tue, 06 Oct 2015 06:56:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-populate-a-drop-down-menu-via-selected-values-from-a/m-p/253670#M15832</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-10-06T06:56:13Z</dc:date>
    </item>
  </channel>
</rss>

