<?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: Varying behavior when assigning same value to different tokens in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315818#M20277</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/189181"&gt;@AKG1_old1&lt;/a&gt;, use &lt;CODE&gt;&amp;lt;eval&amp;gt;&lt;/CODE&gt; instead of &lt;CODE&gt;&amp;lt;set&amp;gt;&lt;/CODE&gt; to set the token since you are evaluating expression.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;eval token="graph_time_earliest"&amp;gt;$graph_time_earliest$ - 1500&amp;lt;/eval&amp;gt; 
   &amp;lt;eval token="selection.earliest_GC"&amp;gt;$selection.earliest_GC$ - 1500&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm. If it does not work, do give more detailed sample of your Simple XML code as to where, $graph_time_earliest$ and $selection.earliest_GC$ tokens are being set. BTW, is it $selection.earliest$ or $selection.earliest_GC$?&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 16:19:33 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2020-09-29T16:19:33Z</dc:date>
    <item>
      <title>Varying behavior when assigning same value to different tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315817#M20276</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am updating two different token with same value but I am seeing differernt behavior. (probably its taking as different datatype)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;set token="graph_time_earliest"&amp;gt;$graph_time_earliest$ - 1500&amp;lt;/set&amp;gt; 
      &amp;lt;set token="selection.earliest_GC"&amp;gt;$selection.earliest_GC$ - 1500&amp;lt;/set&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Initial Value is same for both token.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;graph_time_earliest = 1506990840
selection.earliest_GC = 1506990840
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OutPut:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$graph_time_earliest$  =  1506990840 - 1500
$selection.earliest_GC$ =  1506989700
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In $selection.earliest_GC$, its subtracting the specified value and update output. but in $graph_time_earliest$ it just append as a string. I am not sure why its taking one token as a string. Can we specify data type or its automatic?&lt;/P&gt;

&lt;P&gt;Please suggest if I am missing something. Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:19:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315817#M20276</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2020-09-29T16:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: Varying behavior when assigning same value to different tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315818#M20277</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/189181"&gt;@AKG1_old1&lt;/a&gt;, use &lt;CODE&gt;&amp;lt;eval&amp;gt;&lt;/CODE&gt; instead of &lt;CODE&gt;&amp;lt;set&amp;gt;&lt;/CODE&gt; to set the token since you are evaluating expression.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;eval token="graph_time_earliest"&amp;gt;$graph_time_earliest$ - 1500&amp;lt;/eval&amp;gt; 
   &amp;lt;eval token="selection.earliest_GC"&amp;gt;$selection.earliest_GC$ - 1500&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please try out and confirm. If it does not work, do give more detailed sample of your Simple XML code as to where, $graph_time_earliest$ and $selection.earliest_GC$ tokens are being set. BTW, is it $selection.earliest$ or $selection.earliest_GC$?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 16:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315818#M20277</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Varying behavior when assigning same value to different tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315819#M20278</link>
      <description>&lt;P&gt;silli mistake &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; . Thank you @Niketnilay  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Please convert it to answer so I can accept it.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:37:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315819#M20278</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2017-10-17T17:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Varying behavior when assigning same value to different tokens</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315820#M20279</link>
      <description>&lt;P&gt;@agoyal, we all have been there &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Glad I was able to help out!&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 17:47:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Varying-behavior-when-assigning-same-value-to-different-tokens/m-p/315820#M20279</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-17T17:47:23Z</dc:date>
    </item>
  </channel>
</rss>

