<?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: Inbuilt Panel reference with token in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656394#M54073</link>
    <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;says, it looks like you can't use tokens in references. This is likely because the structure of the dashboard needs to be known when the dashboard is loaded, and while it appears to be static in your example, the value of the token could be changed during the running of the dashboard, so to prevent this, the reference has to be static.&lt;/P&gt;&lt;P&gt;So, the question now is, why are you trying to do this? Perhaps there is another way to solve your usecase!&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 09:13:06 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-09-01T09:13:06Z</dc:date>
    <item>
      <title>Inbuilt Panel reference with token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656349#M54069</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;Very first question.&lt;BR /&gt;I have created an inbuilt panel and I didn't want to hardcode the name in the ref parameter&lt;BR /&gt;Splunk doesn't like the following&lt;BR /&gt;any ideas? or advice?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;lt;init&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;set token="PageName"&amp;gt;help_for_toy&amp;lt;/set&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/init&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;panel id="help" ref="$PageName$" &amp;gt;&amp;lt;/panel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/row&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 03:44:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656349#M54069</guid>
      <dc:creator>TotalNoobie</dc:creator>
      <dc:date>2023-09-01T03:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Inbuilt Panel reference with token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656366#M54070</link>
      <description>&lt;P&gt;Interesting, it does look like you can't use a token as an attribute value in XML. Not sure if that can be changed&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 06:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656366#M54070</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-09-01T06:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: Inbuilt Panel reference with token</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656394#M54073</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;says, it looks like you can't use tokens in references. This is likely because the structure of the dashboard needs to be known when the dashboard is loaded, and while it appears to be static in your example, the value of the token could be changed during the running of the dashboard, so to prevent this, the reference has to be static.&lt;/P&gt;&lt;P&gt;So, the question now is, why are you trying to do this? Perhaps there is another way to solve your usecase!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 09:13:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Inbuilt-Panel-reference-with-token/m-p/656394#M54073</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-09-01T09:13:06Z</dc:date>
    </item>
  </channel>
</rss>

