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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...