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!

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 ...