Dashboards & Visualizations

Share data betwen views

sarumjanuch
Path Finder

I have 5 views and each of them have date picker, is there any way to share date picker between all views, so when i navigate from one to other, time remain as i selected.

Tags (2)
0 Karma

royimad
Builder

Try to use ValueSetter module to drilldown to other views, hope that this will help you.

 <module name="TimeRangePicker" layoutPanel="panel_row1_col1" autoRun="True">
            <param name="searchWhenChanged">True</param>
            <param name="selected">Last 30 days</param>  


    <module name="ValueSetter">
        <param name="name">stashedEarliest</param>
        <param name="value">$search.timeRange.earliest$</param>
        <module name="ValueSetter">
          <param name="name">stashedLatest</param>
          <param name="value">$search.timeRange.latest$</param>

         <!-- ... now anywhere downstream from here you can use `$stashedEarliest$` and `$stashedLatest$`.
    Thus $stashedEarliest$ and $stashedLatest$, downstream from that point, will always represent the time arguments as they came out of TimeRangePicker. 
           -->

    <!--  EXAMPLE BEGIN  -->
    <module name="Search" layoutPanel="panel_row1_col1" autoRun="True">
    <param name="search">
    |...........................
    <param name="earliest">$stashedEarliest$</param>
        <param name="latest">$stashedLatest$</param>
0 Karma

sarumjanuch
Path Finder

Hmm the problem is that i use simple XML..

0 Karma
Get Updates on the Splunk Community!

Explore the Latest Educational Offerings from Splunk [January 2025 Updates]

At Splunk Education, we are committed to providing a robust learning experience for all users, regardless of ...

Developer Spotlight with Paul Stout

Welcome to our very first developer spotlight release series where we'll feature some awesome Splunk ...

State of Splunk Careers 2024: Maximizing Career Outcomes and the Continued Value of ...

For the past four years, Splunk has partnered with Enterprise Strategy Group to conduct a survey that gauges ...