All Apps and Add-ons

Simple XML - Drilldown to new window

Communicator

Good day Splunkers,

I have been learning drilldowns on simple xml using Splunk 6 Dashboard Examples. I got a simple question about how can I open the new drilldown page as a new window instead of turning to the link page? Do I need a javascript on this?

Thanks,

-crt89

0 Karma
1 Solution

Motivator

Is this what you are looking for?

 <drilldown target="My New Window">
      <link>
         /app/dashboard_examples/form_table2?form.sourcetype=$row.sourcetype$
       </link>
 </drilldown>   

http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/Dynamicdrilldownindashboardsandforms

Within the tag, optionally specify a target= attribute if you wish to direct the drilldown destination. (defaults to: target="_self" - and the link will open in the current window)

View solution in original post

Builder

https://answers.splunk.com/answers/129148/simple-xml-drilldown-to-new-window.html

this works if I already have a visual item.. I can then set the redirect on that item to a new page.
I have it working on many of my dashboards.

my issue is that when I select an option from drop down , suppose drop down has 2 options 1 and 2. and if I select 1 from the drop down it should redirect to a new page.. is that possible ? I hope my question is understood..

0 Karma

Motivator

Is this what you are looking for?

 <drilldown target="My New Window">
      <link>
         /app/dashboard_examples/form_table2?form.sourcetype=$row.sourcetype$
       </link>
 </drilldown>   

http://docs.splunk.com/Documentation/Splunk/6.0.2/Viz/Dynamicdrilldownindashboardsandforms

Within the tag, optionally specify a target= attribute if you wish to direct the drilldown destination. (defaults to: target="_self" - and the link will open in the current window)

View solution in original post

Communicator

Thanks @melonman, tried it. Sorry I missed that in the docs

0 Karma

Path Finder

I know that the topic is old. But I want to add one nuance
When I use:

<drilldown target="My New Window">

then only the first drilldown open a new window, next clicking drilldowns on original page opens in the same window where the first drilldown was opened.
So that, if you want to open all drilldowns in new windows use:

<drilldown target="_blank">