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!

Optimize Cloud Monitoring

  TECH TALKS Optimize Cloud Monitoring Tuesday, August 13, 2024  |  11:00AM–12:00PM PST   Register to ...

What's New in Splunk Cloud Platform 9.2.2403?

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

Stay Connected: Your Guide to July and August Tech Talks, Office Hours, and Webinars!

Dive into our sizzling summer lineup for July and August Community Office Hours and Tech Talks. Scroll down to ...