<?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: How to clear dependent value when start new search in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343185#M5133</link>
    <description>&lt;P&gt;Create a &lt;CODE&gt;done&lt;/CODE&gt; section in the first panel and unset the token there, too.  That way when you select different field values and the first panel re-runs, it will unset the token.&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 14:59:15 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2017-08-01T14:59:15Z</dc:date>
    <item>
      <title>How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343181#M5129</link>
      <description>&lt;P&gt;Hi guys,&lt;BR /&gt;
please help me,&lt;BR /&gt;
I have 2 tables, one of them is hidden and shows contents when I click on parameter "time" in another table. It's means that second table has dependent from another, how it's look like in simple xml - &lt;BR /&gt;
But there is one problem. When I have passed the value to the parameter $Time$ at once it's stored for all time, I means that if I change all my inputs for dashboard and click submit button, first table will change, but second table will not be hidden and will not be change because it will store parameter from the previous one search's.&lt;/P&gt;

&lt;P&gt;So how can I clean parameter $Time$ when I click submit button or another way.&lt;/P&gt;

&lt;P&gt;P.S. I can clean $Time$ if I refresh all page via browser.&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 10:04:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343181#M5129</guid>
      <dc:creator>simmppllee</dc:creator>
      <dc:date>2017-07-31T10:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343182#M5130</link>
      <description>&lt;P&gt;Create an &lt;CODE&gt;init&lt;/CODE&gt; section and then &lt;CODE&gt;unset&lt;/CODE&gt; your dependent token from it.  You can find examples like this and many other tricky/clever things by going through the "Splunk 6.x Dashboard Examples" app:&lt;BR /&gt;
&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 15:31:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343182#M5130</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-31T15:31:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343183#M5131</link>
      <description>&lt;P&gt;Can you say me where I can find section which can help me in  "Splunk 6.x Dashboard Examples".&lt;BR /&gt;
I have seen "Token Customization", but here aren't any solution for my task.&lt;BR /&gt;
Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 09:06:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343183#M5131</guid>
      <dc:creator>simmppllee</dc:creator>
      <dc:date>2017-08-01T09:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343184#M5132</link>
      <description>&lt;P&gt;&lt;STRONG&gt;init&lt;/STRONG&gt; section can't be created inside panel, so I can't reset token.&lt;BR /&gt;
I have created &lt;STRONG&gt;init&lt;/STRONG&gt; section and &lt;STRONG&gt;unset&lt;/STRONG&gt; token in   section, but it hasn't helped&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 10:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343184#M5132</guid>
      <dc:creator>simmppllee</dc:creator>
      <dc:date>2017-08-01T10:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343185#M5133</link>
      <description>&lt;P&gt;Create a &lt;CODE&gt;done&lt;/CODE&gt; section in the first panel and unset the token there, too.  That way when you select different field values and the first panel re-runs, it will unset the token.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 14:59:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343185#M5133</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-08-01T14:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343186#M5134</link>
      <description>&lt;P&gt;@simmppllee, your intent in to clear the tokens on click of Submit button. You can leverage Simple XML JS Extension for this scenario.&lt;/P&gt;

&lt;P&gt;As per your description &lt;CODE&gt;Time token/s&lt;/CODE&gt; is/are being selected based on the row clicked in &lt;CODE&gt;table 1&lt;/CODE&gt; and then passed on to the &lt;CODE&gt;table 2&lt;/CODE&gt;. You want to reset the time token/s on click of Submit button. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Step 1&lt;/STRONG&gt;: Assuming your time tokens are &lt;CODE&gt;$EarliestTime$&lt;/CODE&gt; and &lt;CODE&gt;$LatestTime$&lt;/CODE&gt; set in Simple XML from table 1. Save the following JavaScript file &lt;CODE&gt;unset_token_on_submit.js&lt;/CODE&gt; under the &lt;CODE&gt;static&lt;/CODE&gt; folder of your Splunk &lt;CODE&gt;App&lt;/CODE&gt; (for example: &lt;CODE&gt;$SPLUNK_HOME\etc\app\&amp;lt;YourAppName&amp;gt;\appserver\static&lt;/CODE&gt;)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    "splunkjs/mvc",
    "jquery",
    "splunkjs/mvc/simplexml/eventhandler"
    ],
    function(
        mvc,
        $,      
        EventHandler
        ) {
        //jQuery to capture Submit button click event   
        $('#submit').on("click", function() {
            //Use EventHandler utiliy to unsetTokens
            EventHandler.unsetToken("EarliestTime");
            EventHandler.unsetToken("LatestTime");
        });
    }
);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 2:&lt;/STRONG&gt; Include the script file in your form&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="unset_token_on_submit.js"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Step 3:&lt;/STRONG&gt; Bump splunk (restart/refresh Splunk instance) and clear internet browser history for changes to reflect.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 17:36:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343186#M5134</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-01T17:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343187#M5135</link>
      <description>&lt;P&gt;Thanks, your answer has helped.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:30:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343187#M5135</guid>
      <dc:creator>simmppllee</dc:creator>
      <dc:date>2017-08-08T14:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343188#M5136</link>
      <description>&lt;P&gt;Thanks for your answer.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 14:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343188#M5136</guid>
      <dc:creator>simmppllee</dc:creator>
      <dc:date>2017-08-08T14:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343189#M5137</link>
      <description>&lt;P&gt;@simmppllee, if you have tried this and it worked for you please accept the answer.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Aug 2017 15:55:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343189#M5137</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-08T15:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343190#M5138</link>
      <description>&lt;P&gt;@simmppllee, can you mark this as answered if your issue is resolved?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 09:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343190#M5138</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-29T09:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to clear dependent value when start new search</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343191#M5139</link>
      <description>&lt;P&gt;So do you have it?  If so, come back and click &lt;CODE&gt;Answer&lt;/CODE&gt; somewhere and &lt;CODE&gt;UpVote&lt;/CODE&gt; any comments that helped.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Sep 2017 08:44:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-to-clear-dependent-value-when-start-new-search/m-p/343191#M5139</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-09-10T08:44:26Z</dc:date>
    </item>
  </channel>
</rss>

