<?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 Is there a way to allow time picker sharing for dropdown input options on dashboards? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228479#M14147</link>
    <description>&lt;P&gt;hii ,&lt;/P&gt;

&lt;P&gt;I have been trying to find ways to enable time picker sharing for the dropdown input options that is available in Dashboards in order to populate field values based on time range selected. Currently time sharing is available only in panels during edit mode and not in any of the field selection options like drop down, multiselect or checkbox options.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 19:38:55 GMT</pubDate>
    <dc:creator>asunder123</dc:creator>
    <dc:date>2016-11-14T19:38:55Z</dc:date>
    <item>
      <title>Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228479#M14147</link>
      <description>&lt;P&gt;hii ,&lt;/P&gt;

&lt;P&gt;I have been trying to find ways to enable time picker sharing for the dropdown input options that is available in Dashboards in order to populate field values based on time range selected. Currently time sharing is available only in panels during edit mode and not in any of the field selection options like drop down, multiselect or checkbox options.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:38:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228479#M14147</guid>
      <dc:creator>asunder123</dc:creator>
      <dc:date>2016-11-14T19:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228480#M14148</link>
      <description>&lt;P&gt;I don't think that feature is available (assigning shared time-range picker for Dynamic options of the form inputs) as of 6.5.0. I think it would be good feature to be requested in future releases.&lt;/P&gt;

&lt;P&gt;You can file an enhancement request by submitting a Priority 4 - Enhancement Request ticket at &lt;A href="http://www.splunk.com/index.php/submit_issue"&gt;http://www.splunk.com/index.php/submit_issue&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 20:16:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228480#M14148</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2016-11-14T20:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228481#M14149</link>
      <description>&lt;P&gt;I think there is a way by editing the xml and using the token. &lt;BR /&gt;
Name your timepicker's token, say &lt;CODE&gt;myTimePickerToken&lt;/CODE&gt;, in the first line of xml code of timepicker input &lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true" token="myTimePickerToken"&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Then use this token's &lt;CODE&gt;earliest&lt;/CODE&gt; and &lt;CODE&gt;latest&lt;/CODE&gt; properties in dropdown's dynamic query to populate the results based on the time range selected by the user as  &lt;CODE&gt;&amp;lt;earliest&amp;gt;$myTimePickerToken.earliest$&amp;lt;/earliest&amp;gt;&lt;/CODE&gt; and &lt;CODE&gt;&amp;lt;latest&amp;gt;$myTimePickerToken.latest$&amp;lt;/latest&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Code snippet is below for dropdown, you may try others:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;input type="time" searchWhenChanged="true" token="myTimePickerToken"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;default&amp;gt;
        &amp;lt;earliest&amp;gt;-4h@m&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" searchWhenChanged="true" token="myDropDownToken"&amp;gt;
      &amp;lt;label&amp;gt;Front End&amp;lt;/label&amp;gt;
      &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;index=myIndex sourcetype=mySourcetype | Stats count by myField1&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;$myTimePickerToken.earliest$&amp;lt;/earliest&amp;gt;
        &amp;lt;latest&amp;gt;$myTimePickerToken.latest$&amp;lt;/latest&amp;gt;
      &amp;lt;/search&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;myField1&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;myField1&amp;lt;/fieldForValue&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Nov 2016 01:03:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228481#M14149</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-11-15T01:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228482#M14150</link>
      <description>&lt;P&gt;In order to use earliest and latest time in the search for &lt;STRONG&gt;Dynamic Option&lt;/STRONG&gt; you would have to explicitly define the token within the &lt;STRONG&gt;Search String&lt;/STRONG&gt;.&lt;/P&gt;

&lt;P&gt;Assuming your time control has token &lt;STRONG&gt;globalTime&lt;/STRONG&gt; then, in the &lt;STRONG&gt;Search String&lt;/STRONG&gt; for the drop down your can write your search as follows:&lt;/P&gt;

&lt;P&gt;index=&amp;lt;yourIndex&amp;gt; sourcetype=&amp;lt;yourSourceType&amp;gt; &lt;STRONG&gt;earliest=$globalTime.earliest$ latest=$globalTime.latest$&lt;/STRONG&gt; | &amp;lt;Your reaming Search Goes here&amp;gt;&lt;/P&gt;

&lt;P&gt;Please let me know if you need example.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2016 06:07:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228482#M14150</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2016-11-15T06:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228483#M14151</link>
      <description>&lt;P&gt;@asunder123 - Did one of the answers below help provide a solution your question? If yes, please click “Accept” below the best answer to resolve this post. If no, please leave a comment with more feedback. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 03:36:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228483#M14151</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2016-11-30T03:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228484#M14152</link>
      <description>&lt;P&gt;Hi niketnilay, would it be possible to get an example for the Dynamic Option?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:44:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/228484#M14152</guid>
      <dc:creator>adamcoquim</dc:creator>
      <dc:date>2019-08-09T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to allow time picker sharing for dropdown input options on dashboards?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/618300#M50777</link>
      <description>&lt;P&gt;I used your example code and got the results as expected.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 04:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-a-way-to-allow-time-picker-sharing-for-dropdown-input/m-p/618300#M50777</guid>
      <dc:creator>SR_70</dc:creator>
      <dc:date>2022-10-26T04:17:46Z</dc:date>
    </item>
  </channel>
</rss>

