<?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: link to another dashboard in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270146#M17133</link>
    <description>&lt;P&gt;You need to tell it which dashboard (or view name) to go to in this case. As an example if I had a dashboard called my_example_dash that took an input named examplein it would look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;drilldown&amp;gt;
            &amp;lt;link&amp;gt;
              &amp;lt;![CDATA[/app/search/my_example_dash?form.examplein=$click.value$]]&amp;gt;
            &amp;lt;/link&amp;gt;
  &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This documentation page may help clarify a bit more:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Viz/Dynamicdrilldownindashboardsandforms" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Viz/Dynamicdrilldownindashboardsandforms&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 07:33:28 GMT</pubDate>
    <dc:creator>swbodie</dc:creator>
    <dc:date>2020-09-29T07:33:28Z</dc:date>
    <item>
      <title>link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270143#M17130</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a simple table that has some values. All these have a corresponding dashboard with the same name. &lt;BR /&gt;
I want to navigate to the dashboard for the value clicked.&lt;/P&gt;

&lt;P&gt;Here is what I did and it did not work. (Any token value post the ? for passing values does work, but here my requirement is to replace the token for the value clicked before the ?)... Additionally, full link with IP address also works, but since it is a SHC, I don't want to hard code the URL.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;drilldown&amp;gt;
          &amp;lt;link&amp;gt;
            &amp;lt;/app/search/$click.value$]]&amp;gt;
          &amp;lt;/link&amp;gt;
&amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please help!&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ishaan&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 18:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270143#M17130</guid>
      <dc:creator>ishaanshekhar</dc:creator>
      <dc:date>2015-10-12T18:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270144#M17131</link>
      <description>&lt;P&gt;It looks like you attempted to use CDATA tags but didn't quite get the syntax right. Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;drilldown&amp;gt;
           &amp;lt;link&amp;gt;
             &amp;lt;![CDATA[/app/search/$click.value$]]&amp;gt;
           &amp;lt;/link&amp;gt;
 &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2015 18:24:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270144#M17131</guid>
      <dc:creator>swbodie</dc:creator>
      <dc:date>2015-10-12T18:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270145#M17132</link>
      <description>&lt;P&gt;That's a typo, We used  or &lt;CODE&gt;[CDATA[/app/search/$click.value$]]&lt;/CODE&gt; or &lt;CODE&gt;[CDATA[/app/search/$row.fieldname$]]&lt;/CODE&gt; only. but we we get a message saying: &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Invalid view name requested: "$row.fieldname$". View names may only contain alphanumeric characters.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 18:47:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270145#M17132</guid>
      <dc:creator>Dawson014</dc:creator>
      <dc:date>2015-10-12T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270146#M17133</link>
      <description>&lt;P&gt;You need to tell it which dashboard (or view name) to go to in this case. As an example if I had a dashboard called my_example_dash that took an input named examplein it would look something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;drilldown&amp;gt;
            &amp;lt;link&amp;gt;
              &amp;lt;![CDATA[/app/search/my_example_dash?form.examplein=$click.value$]]&amp;gt;
            &amp;lt;/link&amp;gt;
  &amp;lt;/drilldown&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This documentation page may help clarify a bit more:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.0/Viz/Dynamicdrilldownindashboardsandforms" target="_blank"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.0/Viz/Dynamicdrilldownindashboardsandforms&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:33:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270146#M17133</guid>
      <dc:creator>swbodie</dc:creator>
      <dc:date>2020-09-29T07:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270147#M17134</link>
      <description>&lt;P&gt;I'm sorry I misinterpreted your requirement, I did not realize the click value was the name of the dashboard you were trying to link too.&lt;/P&gt;

&lt;P&gt;You may be able to accomplish this through javascript with something like this. Not 100% sure on this though:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; require([
     'underscore',
     'jquery',
     'splunkjs/mvc',
     'splunkjs/mvc/tableview',
     'splunkjs/mvc/simplexml/ready!'
 ], function(_, $, mvc, TableView) {
     var CustomLinkRenderer = TableView.BaseCellRenderer.extend({
         canRender: function(cell) {
             return cell.field === 'column_name';
         },
         render: function($td, cell) {
             var link = cell.value;
             var a = $('&amp;lt;a&amp;gt;').attr("href", "/app/search/"+cell.value).attr("target", "_blank").text(cell.value);
             $td.addClass('table-link').empty().append(a);

             a.click(function(e) {
               e.preventDefault();
               window.open($(e.currentTarget).attr('href'));
             });
         }
     }); 

         // Get the table view by id
         mvc.Components.get('table_id').getVisualization(function(tableView){
         // Register custom cell renderer
         tableView.table.addCellRenderer(new CustomLinkRenderer());

         // Force the table to re-render
         tableView.table.render();
     });
 });
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2015 19:12:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270147#M17134</guid>
      <dc:creator>swbodie</dc:creator>
      <dc:date>2015-10-12T19:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270148#M17135</link>
      <description>&lt;P&gt;Great! Thanks, though we were trying to use javascript as a last resort. We'll try to implement it.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 19:35:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270148#M17135</guid>
      <dc:creator>Dawson014</dc:creator>
      <dc:date>2015-10-12T19:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270149#M17136</link>
      <description>&lt;P&gt;Hi Dawson014,&lt;BR /&gt;
I have similar problem to resolve. Did you get the solution for this?&lt;/P&gt;

&lt;P&gt;I am getting the same error "Invalid view name requested: "$row.fieldname$". View names may only contain alphanumeric characters." when using drilldown.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Rajnish Kumar &lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 09:57:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270149#M17136</guid>
      <dc:creator>rajnish1202</dc:creator>
      <dc:date>2015-10-27T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270150#M17137</link>
      <description>&lt;P&gt;Hi Rajnish,&lt;/P&gt;

&lt;P&gt;Yes, we did what swbodie suggested and resolved the issue, without using the drilldown feature. We used the script provided below by swbodie with some modifications as per our requirement.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 10:43:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270150#M17137</guid>
      <dc:creator>Dawson014</dc:creator>
      <dc:date>2015-10-28T10:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: link to another dashboard</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270151#M17138</link>
      <description>&lt;P&gt;Thanks for your response Dawson014. I will try the same.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 10:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/link-to-another-dashboard/m-p/270151#M17138</guid>
      <dc:creator>rajnish1202</dc:creator>
      <dc:date>2015-10-28T10:46:50Z</dc:date>
    </item>
  </channel>
</rss>

