<?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: Create a time picker in simple XML? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44096#M2145</link>
    <description>&lt;P&gt;You need to enclose your &lt;CODE&gt;inputs&lt;/CODE&gt; inside of a &lt;CODE&gt;fieldset&lt;/CODE&gt;, not a &lt;CODE&gt;row&lt;/CODE&gt;, and yes, you also need to make the view a &lt;CODE&gt;form&lt;/CODE&gt;, not a &lt;CODE&gt;dashboard&lt;/CODE&gt;. See the examples in the docs.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Jan 2012 21:28:55 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2012-01-04T21:28:55Z</dc:date>
    <item>
      <title>Create a time picker in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44093#M2142</link>
      <description>&lt;P&gt;I'm familiar with creating time range pickers in advanced XML.  I'm wondering if it is possible to use a time range picker in simple XML, and if so, what would the block of code look like?&lt;/P&gt;

&lt;P&gt;I've come across &lt;A href="http://splunk-base.splunk.com/answers/3814/real-time-option-in-time-range-picker-for-simple-xml"&gt;this answer&lt;/A&gt;, but when I add the following code, the xml does not parse correctly.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;?xml version='1.0' encoding='utf-8'?&amp;gt;
      &amp;lt;dashboard&amp;gt;
        &amp;lt;label&amp;gt;MYTEST TimePicker&amp;lt;/label&amp;gt;
          &amp;lt;row&amp;gt;
          &amp;lt;input type="time"/&amp;gt;    
          &amp;lt;input type="dropdown" token="timeSpan"&amp;gt;
              &amp;lt;label&amp;gt;Time span for charts&amp;lt;/label&amp;gt;
              &amp;lt;default&amp;gt;span=4h&amp;lt;/span&amp;gt;
              &amp;lt;choice value="span=5m"&amp;gt;5 Minute&amp;lt;/choice&amp;gt;
              &amp;lt;choice value="span=10m"&amp;gt;10 Minutes&amp;lt;/choice&amp;gt;
              &amp;lt;choice value="span=1h"&amp;gt;1 hour&amp;lt;/choice&amp;gt;
              &amp;lt;choice value="span=4h"&amp;gt;4 hours&amp;lt;/choice&amp;gt;
              &amp;lt;choice value="span=24h"&amp;gt;24 hours&amp;lt;/choice&amp;gt;    
           &amp;lt;/input&amp;gt;
          &amp;lt;/row&amp;gt;
          &amp;lt;row&amp;gt;
            &amp;lt;table&amp;gt;
              &amp;lt;searchName&amp;gt;blah blah blah&amp;lt;/searchName&amp;gt;
              ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2012 18:29:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44093#M2142</guid>
      <dc:creator>dang</dc:creator>
      <dc:date>2012-01-04T18:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time picker in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44094#M2143</link>
      <description>&lt;P&gt;I think this is possible but you probably need to use a form element to make the input form work correctly for a simple XML dashboard.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step2CustomizeForm"&gt;http://docs.splunk.com/Documentation/Splunk/latest/Developer/Step2CustomizeForm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 19:14:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44094#M2143</guid>
      <dc:creator>Kate_Lawrence-G</dc:creator>
      <dc:date>2012-01-04T19:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time picker in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44095#M2144</link>
      <description>&lt;P&gt;Thanks, Kate.  I'll need to do a little more digging into using forms in my searches if I choose to go down that route.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 20:55:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44095#M2144</guid>
      <dc:creator>dang</dc:creator>
      <dc:date>2012-01-04T20:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time picker in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44096#M2145</link>
      <description>&lt;P&gt;You need to enclose your &lt;CODE&gt;inputs&lt;/CODE&gt; inside of a &lt;CODE&gt;fieldset&lt;/CODE&gt;, not a &lt;CODE&gt;row&lt;/CODE&gt;, and yes, you also need to make the view a &lt;CODE&gt;form&lt;/CODE&gt;, not a &lt;CODE&gt;dashboard&lt;/CODE&gt;. See the examples in the docs.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2012 21:28:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44096#M2145</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2012-01-04T21:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a time picker in simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44097#M2146</link>
      <description>&lt;P&gt;This works. If you go into edit mode after this has been configured and drag the time picker out of the panel, it will reswizzle the dashboard to a form.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Hack:
    &amp;lt;dashboard&amp;gt;
        &amp;lt;label&amp;gt;Analytics&amp;lt;/label&amp;gt;
      &amp;lt;row&amp;gt;
       &amp;lt;panel&amp;gt;
        &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Time Range for All Panels&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
             &amp;lt;earliestTime&amp;gt;-60m@m&amp;lt;/earliestTime&amp;gt;
             &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
       &amp;lt;/panel&amp;gt;
      &amp;lt;/row&amp;gt;

After moving the time picker in edit mode (out of the panel to the top of the screen.)

    &amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;Analytics&amp;lt;/label&amp;gt;
      &amp;lt;fieldset submitButton="false" autoRun="true"&amp;gt;
        &amp;lt;input type="time" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
          &amp;lt;default&amp;gt;
            &amp;lt;earliestTime&amp;gt;-7d@d&amp;lt;/earliestTime&amp;gt;
            &amp;lt;latestTime&amp;gt;now&amp;lt;/latestTime&amp;gt;
          &amp;lt;/default&amp;gt;
        &amp;lt;/input&amp;gt;
      &amp;lt;/fieldset&amp;gt;
      &amp;lt;row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Jan 2015 14:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Create-a-time-picker-in-simple-XML/m-p/44097#M2146</guid>
      <dc:creator>Kyle_Jackson</dc:creator>
      <dc:date>2015-01-16T14:10:24Z</dc:date>
    </item>
  </channel>
</rss>

