Dashboards & Visualizations

Could I make the rangemap show Loading rather than N/A before it's search done?

flora123
Path Finder

Hi all,

I use rangemap to show results. Before the search goes done, the range will show [N/A].

Could I make the rangemap show [Loading] before it's search done?

Thanks a lot. 😃

Tags (1)
0 Karma
1 Solution

sideview
SplunkTrust
SplunkTrust

I had a similar problem when developing the Deployment Monitor app. While the circumstances were different and the reason I was getting the "N/A" were not the same, the patch I used would work for you I think.

If you put this in $SPLUNK_HOME/etc/apps/<appname>/appserver/static/application.js, you can basically change that N/A to whatever you like. Here I change it to "Loading...".

if (Splunk.Module.SingleValue) {
    Splunk.Module.SingleValue = $.klass(Splunk.Module.SingleValue, {
        renderResults: function($super, result) {
            var retVal = $super(result);
            if (result=="N/A") {
                $(this._result_element).text("Loading...");
            }
            return retVal;
        }
    });
}

View solution in original post

sideview
SplunkTrust
SplunkTrust

I had a similar problem when developing the Deployment Monitor app. While the circumstances were different and the reason I was getting the "N/A" were not the same, the patch I used would work for you I think.

If you put this in $SPLUNK_HOME/etc/apps/<appname>/appserver/static/application.js, you can basically change that N/A to whatever you like. Here I change it to "Loading...".

if (Splunk.Module.SingleValue) {
    Splunk.Module.SingleValue = $.klass(Splunk.Module.SingleValue, {
        renderResults: function($super, result) {
            var retVal = $super(result);
            if (result=="N/A") {
                $(this._result_element).text("Loading...");
            }
            return retVal;
        }
    });
}

flora123
Path Finder

Thanks a lot.It's so cool!

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...