<?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: Resetting Dashboard Tokens using XML in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/618694#M50814</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249388"&gt;@SR_70&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Oct 2022 06:34:48 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2022-10-28T06:34:48Z</dc:date>
    <item>
      <title>How to reset dashboard tokens using XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504857#M33441</link>
      <description>&lt;P&gt;In the past I once knew how to create a single radio button that, when selected, would reset all desired dashboard tokens, by using XML. This button would also reset itself back to being de-selected (not filled).&amp;nbsp; Does anyone know how to do this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I learned how to do this previously in one Splunk's courses but I am not entirely sure which course it was. (SF 1-3 or Adv. DB Creation)&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 14:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504857#M33441</guid>
      <dc:creator>amcb90</dc:creator>
      <dc:date>2022-10-28T14:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Dashboard Tokens using XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504903#M33445</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/176034"&gt;@amcb90&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I took this solution from answers:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;  &amp;lt;fieldset submitButton="false" autoRun="false"&amp;gt;
    &amp;lt;input type="radio" token="resetTokens" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;
      &amp;lt;choice value="reset"&amp;gt;Reset Inputs&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="retain"&amp;gt;Retain&amp;lt;/choice&amp;gt;
      &amp;lt;default&amp;gt;retain&amp;lt;/default&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition value="reset"&amp;gt;
          &amp;lt;unset token="token1"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;unset token="token2"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;unset token="form.token1"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;unset token="form.token2"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;set token="resetTokens"&amp;gt;retain&amp;lt;/set&amp;gt;
          &amp;lt;set token="form.resetTokens"&amp;gt;retain&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
    &amp;lt;/input&amp;gt;
  &amp;lt;/fieldset&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adding this code to the input section (Fieldset).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 06:53:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504903#M33445</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-18T06:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Dashboard Tokens using XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504938#M33449</link>
      <description>&lt;P&gt;the answer I used is from&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/201110"&gt;@niketn&lt;/a&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Archive/Clear-or-hide-old-drilldown-panel-results-from-new-filter-search/td-p/344240" target="_blank"&gt;https://community.splunk.com/t5/Archive/Clear-or-hide-old-drilldown-panel-results-from-new-filter-search/td-p/344240&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 10:17:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/504938#M33449</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-06-18T10:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Dashboard Tokens using XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/505076#M33460</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/176034"&gt;@amcb90&lt;/a&gt;&amp;nbsp;if you do not want to use JS you can also create and anchor html tag which would reload itself in the same browser, hence resetting the form tokens. Try by adding the following html panel in your existing dashboard and test.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;panel id="panelRefresh"&amp;gt;
      &amp;lt;html&amp;gt;
        &amp;lt;div style="float:right"&amp;gt;
          &amp;lt;a href="/app/$env:app$/$env:page$" style="display:flex"&amp;gt;
            &amp;lt;i class="icon-rotate"/&amp;gt;
            &amp;lt;div style="padding-left:5px;"&amp;gt;Reset&amp;lt;/div&amp;gt;
          &amp;lt;/a&amp;gt;
        &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it works you can format the panel content as per your needs and then create a pre built panel as per one of my older answers:&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-tokens-for-all-filters-and-set-to-their-default/td-p/500443" target="_blank"&gt;https://community.splunk.com/t5/Dashboards-Visualizations/How-to-unset-tokens-for-all-filters-and-set-to-their-default/td-p/500443&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jun 2020 20:21:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/505076#M33460</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-06-18T20:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Dashboard Tokens using XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/618631#M50807</link>
      <description>&lt;P&gt;Thank you! I was able add reset feature to my dashboard.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 19:21:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/618631#M50807</guid>
      <dc:creator>SR_70</dc:creator>
      <dc:date>2022-10-27T19:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Resetting Dashboard Tokens using XML</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/618694#M50814</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249388"&gt;@SR_70&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Please accept one answer for the other people of Community&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 06:34:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reset-dashboard-tokens-using-XML/m-p/618694#M50814</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-10-28T06:34:48Z</dc:date>
    </item>
  </channel>
</rss>

