All Apps and Add-ons

TimeRangePicker not retain(sticky) selected value on dashboard

phoenixdigital
Builder

Using Splunk 5.0.1

I have been having an issue with TimeRangePicker not remembering its setting when you either

  1. Leave the dashboard and return
  2. Change the pulldown just before the TimeRangePicker

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?

0 Karma
1 Solution

phoenixdigital
Builder

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!

View solution in original post

0 Karma

phoenixdigital
Builder

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!

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...