Using Splunk 5.0.1
I have been having an issue with TimeRangePicker not remembering its setting when you either
In both instances the TimeRangePicker resets back to 'in the last hour'.
<module name="Search" layoutPanel="panel_row1_col1" autoRun="True">
<param name="search">| inputlookup stations.csv | search REGIONID="SA1" OR REGIONID="NSW1" | fields REGIONID station</param>
<param name="earliest">-1hour</param>
<param name="latest">now</param>
<module name="Pulldown">
<param name="name">station</param>
<param name="label">Station</param>
<param name="template">station="$value$"</param>
<param name="float">left</param>
<param name="valueField">$name$</param>
<module name="TimeRangePicker" autoRun="True">
<param name="searchWhenChanged">True</param>
<module name="SubmitButton">
<param name="label">Search</param>
<param name="updatePermalink">True</param>
<param name="allowSoftSubmit">True</param>
<param name="visible">False</param>
<module name="Search" layoutPanel="panel_row2_col1" autoRun="True" group="Proposal triggers">
I also tried adding a default and selected as well but these had no effect either.
<param name="default">Last 24 hours</param>
<param name="selected">Last 24 hours</param>
Lastly my view description also contains the isSticky value as well.
<view autoCancelInterval="90" isVisible="true" objectMode="SimpleForm" onunloadCancelJobs="true" template="dashboard.html" isSticky="true">
Any ideas what is going wrong here?
Is there a way to have TimeRangePicker remember what it was set to when other form elements are changed or when the page is returned to?
Its funny how verbalising or putting a question down on paper/forum can let you see the resolution.
The culprit is the earliest and latest in the first Pulldown
<param name="earliest">-1hour</param>
<param name="latest">now</param>
I removed these and it works perfectly now.
Thanks me!
Its funny how verbalising or putting a question down on paper/forum can let you see the resolution.
The culprit is the earliest and latest in the first Pulldown
<param name="earliest">-1hour</param>
<param name="latest">now</param>
I removed these and it works perfectly now.
Thanks me!