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!

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, ...

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...