Dashboards & Visualizations
Highlighted

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

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
Highlighted

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

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
Highlighted

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

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