<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: URL in dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136944#M8181</link>
    <description>&lt;P&gt;Well here is how i did it through Javascript&lt;BR /&gt;
I simply use jquery .on to say if what they clicked on in the detail table is myfirstfield, then open the value which is the URL etc, i use Window.Open and pass a name of the window so they don't open a million popups.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunkjs.mvc.Components.getInstance("example-table-detail").on("click", function (e) {
if(e.field === "Values"){

if(e.data["click.value"] === "MyFirstField")  
{
    if(e.data["click.value2"] != "" &amp;amp;&amp;amp; e.data["click.value2"] != null ){
    window.open(e.data["click.value2"],"NameOfWindow");}
}

if(e.data["click.value"] === "MySecondField"){
    if(e.data["click.value2"] != "" &amp;amp;&amp;amp; e.data["click.value2"] != null ){
    window.open(e.data["click.value2"],"NameOfWindowTwo");}
}

}
 });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 11 Nov 2013 22:58:33 GMT</pubDate>
    <dc:creator>aelliott</dc:creator>
    <dc:date>2013-11-11T22:58:33Z</dc:date>
    <item>
      <title>URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136939#M8176</link>
      <description>&lt;P&gt;I have a text which is a URL.  I am grouping my results and showing in a dashboard.&lt;/P&gt;

&lt;P&gt;sourcetype="xyz" | stats count by AppName, URL&lt;/P&gt;

&lt;P&gt;Now when I click on the URL, i want it to redirect to that specific URL page either in the same or new window.&lt;BR /&gt;
How do I mention the link in my XML?&lt;/P&gt;

&lt;P&gt;Lets say I have &lt;A href="http://www.google.com"&gt;www.google.com&lt;/A&gt; on my URL field value ... when i click it ... i want google to be opened.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 16:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136939#M8176</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-11-11T16:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136940#M8177</link>
      <description>&lt;P&gt;You may have to look at using the API to build your own dashboard with clickable links like that. Any of the &lt;A href="http://dev.splunk.com/view/sdks/SP-CAAADP7"&gt;SDK&lt;/A&gt; options or the &lt;A href="http://dev.splunk.com/view/rest-api-overview/SP-CAAADP8"&gt;REST API&lt;/A&gt; will do that quite nicely for you.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:26:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136940#M8177</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-11-11T22:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136941#M8178</link>
      <description>&lt;P&gt;I have this functionality in an app I just created. I used SplunkJS to accomplish using the Web Framework, you can intercept the click and call javascript to open a new window.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:29:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136941#M8178</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-11-11T22:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136942#M8179</link>
      <description>&lt;P&gt;You should answer in more detail as a separate answer to help the original poster!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:36:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136942#M8179</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2013-11-11T22:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136943#M8180</link>
      <description>&lt;P&gt;Thanks jtrucks.&lt;BR /&gt;
aelliott ... can you give me more info.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:58:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136943#M8180</guid>
      <dc:creator>nandipatisunil</dc:creator>
      <dc:date>2013-11-11T22:58:31Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136944#M8181</link>
      <description>&lt;P&gt;Well here is how i did it through Javascript&lt;BR /&gt;
I simply use jquery .on to say if what they clicked on in the detail table is myfirstfield, then open the value which is the URL etc, i use Window.Open and pass a name of the window so they don't open a million popups.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;splunkjs.mvc.Components.getInstance("example-table-detail").on("click", function (e) {
if(e.field === "Values"){

if(e.data["click.value"] === "MyFirstField")  
{
    if(e.data["click.value2"] != "" &amp;amp;&amp;amp; e.data["click.value2"] != null ){
    window.open(e.data["click.value2"],"NameOfWindow");}
}

if(e.data["click.value"] === "MySecondField"){
    if(e.data["click.value2"] != "" &amp;amp;&amp;amp; e.data["click.value2"] != null ){
    window.open(e.data["click.value2"],"NameOfWindowTwo");}
}

}
 });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Nov 2013 22:58:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136944#M8181</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-11-11T22:58:33Z</dc:date>
    </item>
    <item>
      <title>Re: URL in dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136945#M8182</link>
      <description>&lt;P&gt;posted an example above&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2013 15:49:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/URL-in-dashboard/m-p/136945#M8182</guid>
      <dc:creator>aelliott</dc:creator>
      <dc:date>2013-11-12T15:49:16Z</dc:date>
    </item>
  </channel>
</rss>

