All Apps and Add-ons

Simple XML - Drilldown to new window

crt89
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

melonman
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

jiaqya
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

melonman
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)

crt89
Communicator

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

0 Karma

shbagautdinov
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">
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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