Dashboards & Visualizations

Displaying results table in tab switcher tab, BEFORE clicking on drilldown field in panel above

tgeer123
Path Finder

I have a dashboard with two panels. The first panel contains a table which is a drilldown table. When the value is clicked, the second panel has three tabs with different searches, for the filtered by the clicked item. The drilldown and intention, etc all work fine. The problem is before you click, the second panel is hidden, or blank. The customer would like there to be a default search results shown (as if it were clicked!)
I unfortunately cannot use sideview utils and all its wonderfulness 😞

12/23/2013 UPDATED XML:

<view autoCancelInterval="90" isVisible="True" objectMode="SimpleDashboard" onunloadCancelJobs="True" refresh="60" template="dashboard.html" stylesheet="remotemon.css">
<script type="text/javascript" src="/static/app/SystemMonitor/application.js"></script>
<label>Status of Remote Libraries</label>
<module name="AccountBar" layoutPanel="appHeader" />
<module name="AppBar" layoutPanel="navigationHeader" />
<module name="Message" layoutPanel="messaging">
    <param name="filter">*</param>
    <param name="clearOnJobDispatch">false</param>
    <param name="maxSize">1</param>
</module>
<module name="StaticContentSample" layoutPanel="panel_row2_col1">
    <param name="text">Remote Library Monitor Summary</param>
</module>
<module name="StaticContentSample" layoutPanel="panel_row2_col1_grp2">
    <param name="text">Subsystems</param>
</module>
<module name="HiddenSavedSearch" layoutPanel="panel_row2_col1_grp2" group=" " autoRun="True">
    <param name="savedSearch">remote_level1_subsys</param>
    <module name="ModifiedSimpleResultsTable">
        <param name="showResetButton">false</param>
        <param name="isSortEnabled">false</param>
        <param name="displayRowNumbers">false</param>
        <module name="EnablePreview">
            <param name="enable">True</param>
            <param name="display">false</param>
        </module>
    </module>
    <module name="StaticContentSample" layoutPanel="panel_row2_col1_grp3">
        <param name="text">Functional</param>
    </module>
    <module name="HiddenSavedSearch" layoutPanel="panel_row2_col1_grp3" group=" ">
        <param name="savedSearch">remote_level1_functional</param>
        <module name="ModifiedSimpleResultsTable">
            <param name="showResetButton">false</param>
            <param name="isSortEnabled">false</param>
            <param name="displayRowNumbers">false</param>
            <module name="EnablePreview">
                <param name="enable">True</param>
                <param name="display">false</param>
            </module>
        </module>
        <module name="StaticContentSample" layoutPanel="panel_row2_col1_grp4">
            <param name="text">BIT</param>
        </module>
        <module name="HiddenSavedSearch" layoutPanel="panel_row2_col1_grp4" group=" ">
            <param name="savedSearch">remote_level1_bit</param>
            <module name="ModifiedSimpleResultsTable">
                <param name="showResetButton">false</param>
                <param name="isSortEnabled">false</param>
                <param name="displayRowNumbers">false</param>
                <module name="EnablePreview">
                    <param name="enable">True</param>
                    <param name="display">false</param>
                </module>
            </module>
            <!--  End HiddenSavedSearch  -->
        </module>
        <!--  End HiddenSavedSearch  -->
    </module>
    <!--  End HiddenSavedSearch  -->
</module>
<!--  End HiddenSavedSearch  -->
<module name="StaticContentSample" layoutPanel="panel_row2_col1_grp1">
    <param name="text">Library</param>
</module>
<module name="HiddenSavedSearch" layoutPanel="panel_row2_col1_grp1" group=" " autoRun="True">
  <param name="savedSearch">remote_level1_lib</param>
    <module name="ModifiedSimpleResultsTable">
        <param name="showResetButton">false</param>
        <param name="isSortEnabled">false</param>
        <param name="drilldown">all</param>
        <param name="displayRowNumbers">false</param>
        <module name="EnablePreview">
            <param name="enable">True</param>
            <param name="display">false</param>
            <module name="ConvertToIntention">
                <param name="settingToConvert">libname_setting</param>
                <param name="intention">
                    <param name="name">stringreplace</param>
                    <param name="arg">
                        <param name="libname">
                            <param name="value">$target$</param>
                        </param>
                    </param>
                </param>
                <module name="TabSwitcher" layoutPanel="panel_row4_col1">
                    <param name="mode">independent</param>
                    <param name="selected">Subsystems</param>
                    <!-- First switcher -->
                    <module name="HiddenSearch" layoutPanel="panel_row4_col1_grp1" group="Subsystem2">
                        <param name="search">
              sourcetype="remotemon_subsys" 
              | stats first(Errors) AS latesterrors, first(Cores) AS latestcores, first(LastErrorTime) AS lerrortime, first(subreset) AS lreset by libname, subsystemname
              | convert ctime(lreset)
              | table libname, subsystemname, latesterrors, latestcores, lerrortime, lreset
              | rename subsystemname AS "Subsystem Name" lerrortime AS "Last Error Time", latesterrors AS Errors, latestcores AS Cores, lreset AS "Last Reset"
              | fillnull Errors, Cores
            </param>
                        <module name="Paginator">
                            <param name="count">25</param>
                            <param name="entityName">results</param>
                            <param name="maxPages">10</param>
                            <module name="HiddenFieldPicker">
                                <param name="strictMode">True</param>
                                <module name="ModifiedSimpleResultsTable" layoutPanel="panel_row4_col1">
                                    <param name="showResetButton">false</param>
                                    <param name="allowTransformedFieldSelect">True</param>
                                </module>
                            </module>
                        </module>
                    </module>
                    <!-- Second switcher -->
                    <module name="HiddenSearch" layoutPanel="panel_row4_col1_grp2" group="Functional2" autoRun="True">
                        <param name="search">
    sourcetype="remotemon_func" 
            | stats first(fivemin) AS l5min, first(thirtymin) AS l30min, first(hour) AS lhour, first(twentyfourhr) AS l24hr, first(failed) AS lFail first(catreset) AS lcatreset by libname, function
            | convert ctime(lcatreset)
            | table libname, function, l5min, l30min, lhour, l24hr, lFail, lcatreset
            | rename libname AS "Library Name" function AS "ASP Function", l5min AS "5 Mins", l30min AS "30 mins", lhour AS "1 Hour", l24hr AS "24 hours", lFail AS "Failed", lcatreset AS "Last Reset"
            | fillnull "5 Mins", "30 mins", "1 Hour", "24 hours", "Failed" 
            </param>
                        <module name="Paginator">
                            <param name="count">25</param>
                            <param name="entityName">results</param>
                            <param name="maxPages">10</param>
                            <module name="HiddenFieldPicker">
                                <param name="strictMode">True</param>
                                <module name="ModifiedSimpleResultsTable" layoutPanel="panel_row4_col1">
                                    <param name="showResetButton">false</param>
                                    <param name="allowTransformedFieldSelect">True</param>
                                </module>
                            </module>
                        </module>
                    </module>
                    <!--  Third switcher -->
                    <module name="HiddenSearch" layoutPanel="panel_row4_col1_grp3" group="BIT2" autoRun="True">
                        <param name="search">
              sourcetype="remotemon_bit" 
              | stats first(errors) AS lbiterrors, first(runs) AS lruns, first(BITReset) AS lBITReset by libname, bit
              | convert ctime(lBITReset)
              | table libname, bit, lruns, lbiterrors, lBITReset
              | rename libname AS "Library Name", bit AS "BIT Name" lruns AS "Runs", lbiterrors AS "Failed", lBITReset AS "Last Reset"
              | fillnull "Runs", "Failed" 
            </param>
                        <module name="Paginator">
                            <param name="count">25</param>
                            <param name="entityName">results</param>
                            <param name="maxPages">10</param>
                            <module name="HiddenFieldPicker">
                                <param name="strictMode">True</param>
                                <module name="ModifiedSimpleResultsTable" layoutPanel="panel_row4_col1">
                                    <param name="showResetButton">false</param>
                                    <param name="allowTransformedFieldSelect">True</param>
                                </module>
                            </module>
                        </module>
                    </module>
                </module>
            </module>
        </module>
    </module>
</module>

sideview
SplunkTrust
SplunkTrust

without Sideview Utils.... probably but again you'd have to patch source code. 😃 With Sideview Utils it would be easy! At the risk of sounding like a sales guy - there is a licensing faq and often the cost of OEM licensing is far less than people had expected. http://sideviewapps.com/apps/sideview-utils/licensing-faq/

0 Karma

tgeer123
Path Finder

ahhh - ok ! So I added it to application.js. When the page loads, I now see the three tabs, the static header shows "null" since nothing has been clicked. The tab says no results found, until I click, which gives me the correct data. Now all I need is to show a default set of data in the tab.....not just the tab. Can I set the $click.value$ to a default?

0 Karma

sideview
SplunkTrust
SplunkTrust

Sorry - no, it's a module patch so you put it as-is into application.js. What'll happen is that when that view loads ("some_special_view"), the SimpleResultsTable modules in that view will have that behavior instead of the default behavior.

tgeer123
Path Finder

Does this code replace the existing "isReadyForContextPush" code in my modifiedsimpleresultstable module? Currently I see this-

isReadyForContextPush: function($super) {
if (!this._selection) {
return Splunk.Module.CANCEL;;
}
return $super();
},

thanks!

0 Karma

tgeer123
Path Finder

Would love to be able to use Sideview, as I use it on another project and its really fantastic!
Unfortunately I am not allowed to use it in this particular project. I have a modified SimpleResultsTable already so I will give this a try! Thanks!

0 Karma

tgeer123
Path Finder

Thanks for the suggestion, unfortunately that didn't work. This has frustrated me for weeks!

0 Karma

somesoni2
Revered Legend

Try changing the autorun=\"True\" to autorun=\"False\" for switcher modules Functional and BIT (leave the autorun value to true for 'SubSystem' as its the default selected tab).

0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...