Dashboards & Visualizations

How to validate values in a drilldown page and execute a search based on the value received from the master dashboard?

saransakthi83
New Member

I have passed few values to drilldown page. I have executed more than one query in drilldown page. For that, I have validate values which I received from master dashboard, in drilled down page. Please let me know how validate the values?

0 Karma

aaraneta_splunk
Splunk Employee
Splunk Employee

@saransakthi83 - Did the answer provided by zshainsky help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!

0 Karma

zshainsky
Splunk Employee
Splunk Employee

It looks like you could use JS to do your drilldown validation before sending the values to the next dashboard http://dev.splunk.com/view/SP-CAAAEME.

If we use an example from the above link, we could do something like this:

mytable=new TableView({
     id: "example-table",
     managerid: "subsearch2",
     pageSize: 3,
    wrap: true,
    drilldown: "cell",
    el: $("#mytable")
}).render();

// DO ALL VALIDATION HERE
// e.data is going to be the value that is selected by the user
mytable.on("click", function(e) {
      // Bypass the default behavior
      e.preventDefault();

     // Displays a data object in the console
     console.log("Clicked the table:", e.data);

    // Implement validation logic here...

});
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...