Dashboards & Visualizations

SingleValue module not populating

HallDev
New Member

I am having trouble building an advanced dashboard per Developer Manual: Build Advanced Views. When I attempt to populate a SingleValue module with a HiddenSavedSearch all I see in the view is the SingleValue widget with "..."; however, if I use the simple dashboard XML everything works fine. Any pointers or ideas on what could be going on? This could be and instance of Single Value Not Working Since 4.2, but I don't think it applies as I only have the one SingleValue.

<view refresh="300" template="dashboard.html">
    <label>View Title</label>

    <module name="AccountBar" layoutPanel="appHeader">
        <param name="mode">lite</param>
    </module>
    <module name="AppBar" layoutPanel="navigationHeader"/>

    <module name="HiddenSavedSearch" layoutPanel="panel_row1_col1_grp1" group="Panel Title">
        <param name="savedSearch">My_Saved_Search</param>
        <module name="SingleValue">
            <param name="classField">range</param>
        </module>
    </module>
</view>

Edit: Thanks to Draineh's template, it looks like I was missing autoRun="True" as an attribute of HiddenSavedSearch

0 Karma
1 Solution

Drainy
Champion
<module name="HiddenSavedSearch" layoutPanel="panel_row1_col1" group="My Saved Search" autoRun="True">
    <param name="savedSearch">My_Saved_Search</param>
    <param name="groupLabel">My Saved Search</param>
    <module name="ViewstateAdapter">
      <param name="savedSearch">My_Saved_Search</param>
      <module name="HiddenFieldPicker">
        <param name="strictMode">True</param>
        <module name="JobProgressIndicator">
          <module name="SingleValue">
            <param name="classField">range</param>
          </module>
        </module>
      </module>
    </module>
  </module>

To save time I have pasted my singlevalues 🙂
That is the template I use for every saved search, if it still fails then please update your question with the saved search string.

View solution in original post

Drainy
Champion
<module name="HiddenSavedSearch" layoutPanel="panel_row1_col1" group="My Saved Search" autoRun="True">
    <param name="savedSearch">My_Saved_Search</param>
    <param name="groupLabel">My Saved Search</param>
    <module name="ViewstateAdapter">
      <param name="savedSearch">My_Saved_Search</param>
      <module name="HiddenFieldPicker">
        <param name="strictMode">True</param>
        <module name="JobProgressIndicator">
          <module name="SingleValue">
            <param name="classField">range</param>
          </module>
        </module>
      </module>
    </module>
  </module>

To save time I have pasted my singlevalues 🙂
That is the template I use for every saved search, if it still fails then please update your question with the saved search string.

Drainy
Champion

Good to hear 🙂 Happy Splunking

0 Karma

HallDev
New Member

This template works for me. Thanks. Edit: After working with this template, it looks like my problem was missing the autoRun attribute of the HiddenSavedSearch module

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...