<?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 Is there an attribute that that identifies if the dashboard has focus in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395003#M25851</link>
    <description>&lt;P&gt;Hi I am fairly new to Splunk and for my project I  have a collection of 6 dashboards. I am trying to find out if there is an attribute I can set or check that tells me that the dashboard has been clicked on. The reason being if the dashboard has been selected and is being displayed I want that one and only that one to auto refresh.  And if I select another dashboard the newly selected one goes auto refresh and the previous one doesn't. I know how to set the auto-refresh attribute,&lt;/P&gt;

&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Apr 2019 09:58:58 GMT</pubDate>
    <dc:creator>PBerry7538</dc:creator>
    <dc:date>2019-04-10T09:58:58Z</dc:date>
    <item>
      <title>Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395003#M25851</link>
      <description>&lt;P&gt;Hi I am fairly new to Splunk and for my project I  have a collection of 6 dashboards. I am trying to find out if there is an attribute I can set or check that tells me that the dashboard has been clicked on. The reason being if the dashboard has been selected and is being displayed I want that one and only that one to auto refresh.  And if I select another dashboard the newly selected one goes auto refresh and the previous one doesn't. I know how to set the auto-refresh attribute,&lt;/P&gt;

&lt;P&gt;I hope that makes sense.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 09:58:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395003#M25851</guid>
      <dc:creator>PBerry7538</dc:creator>
      <dc:date>2019-04-10T09:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395004#M25852</link>
      <description>&lt;P&gt;What do you mean with "dashboard has focus"?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:04:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395004#M25852</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-04-10T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395005#M25853</link>
      <description>&lt;P&gt;So i have six individual dashboards that comprise  my App. Each one represents an area of the business. So if i click on one of the dashboards  that dashboard displays on the screen. that is what i meant by focus ..&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395005#M25853</guid>
      <dc:creator>PBerry7538</dc:creator>
      <dc:date>2019-04-10T10:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395006#M25854</link>
      <description>&lt;P&gt;@PBerry7538 &lt;BR /&gt;
you can identify a particular dashboard when dashboard loads by using checking &lt;STRONG&gt;dashboard title&lt;/STRONG&gt; OR &lt;STRONG&gt;dashboard page&lt;/STRONG&gt;. &lt;/P&gt;

&lt;P&gt;It would be good if your details are more by providing the exact use case,&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:10:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395006#M25854</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-10T10:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395007#M25855</link>
      <description>&lt;P&gt;@PBerry7538 &lt;BR /&gt;
You can use javascript, &lt;CODE&gt;dashboard.js&lt;/CODE&gt;, and check &lt;STRONG&gt;dashboard title&lt;/STRONG&gt; OR &lt;STRONG&gt;dashboard page&lt;/STRONG&gt; for your purpose.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:13:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395007#M25855</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-10T10:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395008#M25856</link>
      <description>&lt;P&gt;Only the dashboard on the screen will use the auto-refresh. if the dashboard its not open in the browser it won't refresh. Does this makes sense?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395008#M25856</guid>
      <dc:creator>diogofgm</dc:creator>
      <dc:date>2019-04-10T10:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395009#M25857</link>
      <description>&lt;P&gt;@kamlesh_vaghela &lt;BR /&gt;
Would you be able to give me an example of how to check the &lt;STRONG&gt;dashboard title&lt;/STRONG&gt; or &lt;STRONG&gt;dashboard page&lt;/STRONG&gt; has loaded? Or where they are found in the splunk docs ?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:21:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395009#M25857</guid>
      <dc:creator>PBerry7538</dc:creator>
      <dc:date>2019-04-10T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395010#M25858</link>
      <description>&lt;P&gt;The dashboard will only refresh if it is opened in the browser.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:22:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395010#M25858</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-10T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395011#M25859</link>
      <description>&lt;P&gt;Let me clear my self.&lt;BR /&gt;
You have 6 dashboards and you want to auto-refresh it. RIght? In Splunk, you can refresh the whole dashboard OR particular panel. What you want ot do?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 10:24:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395011#M25859</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-10T10:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395012#M25860</link>
      <description>&lt;P&gt;@PBerry7538&lt;/P&gt;

&lt;P&gt;Below is the sample javascript you can use for getting dashboard title or dashboard page.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require(["jquery", "splunkjs/mvc", "splunkjs/mvc/simplexml/ready!"], function($, mvc) {

    //GET TITLE
    console.log($(".dashboard-header-title").text());

    // SET TITLE
    $(".dashboard-header-title").text("ANY TITLE");

    // GET Page name
    var path = window.location.pathname;
    var page = path.split("/").pop();
    console.log( page );



});
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Apr 2019 05:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395012#M25860</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-11T05:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395013#M25861</link>
      <description>&lt;P&gt;@kamlesh_vaghela  Thanks very much indeed &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 10:22:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395013#M25861</guid>
      <dc:creator>PBerry7538</dc:creator>
      <dc:date>2019-04-11T10:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395014#M25862</link>
      <description>&lt;P&gt;@PBerry7538&lt;/P&gt;

&lt;P&gt;If this answer helps you with your question then please accept to close this question. And if let us know if you require further assistance.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Happy Splunking&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 11:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395014#M25862</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-11T11:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395015#M25863</link>
      <description>&lt;P&gt;@kamlesh_vaghela this can done in SimpleXML also using global environment token for current page. &lt;CODE&gt;$env:page$&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/tokens#Use_global_tokens_to_access_environment_information"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.5/Viz/tokens#Use_global_tokens_to_access_environment_information&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 12:33:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395015#M25863</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-04-11T12:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there an attribute that that identifies if the dashboard has focus</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395016#M25864</link>
      <description>&lt;P&gt;@niketnilay Agree. We can use &lt;CODE&gt;$env:page$&lt;/CODE&gt; also.&lt;/P&gt;

&lt;P&gt;@PBerry7538  Check above provided link for global tokens to access environment information.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2019 12:39:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Is-there-an-attribute-that-that-identifies-if-the-dashboard-has/m-p/395016#M25864</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-11T12:39:11Z</dc:date>
    </item>
  </channel>
</rss>

