<?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 reload a single panel with javascript in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/551129#M38083</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am looking for the same.&amp;nbsp; I am not good at javascript. I have tried below but its not working&lt;BR /&gt;&lt;BR /&gt;require([&lt;BR /&gt;"splunkjs/mvc",&lt;BR /&gt;"splunkjs/mvc/simplexml/ready!"&lt;BR /&gt;], function(&lt;BR /&gt;mvc&lt;BR /&gt;) {&lt;BR /&gt;mvc.Components.get("my_search").startSearch();&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;Can someone pls help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 18:56:52 GMT</pubDate>
    <dc:creator>AKG1_old1</dc:creator>
    <dc:date>2021-05-10T18:56:52Z</dc:date>
    <item>
      <title>How to reload a single panel with javascript?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433322#M28558</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;I'm developing a custom dashboard and it's required that when a button is clicked, the associated panel reloads &lt;BR /&gt;(only that panel, not the entire dashboard). Is there a way of doing it through javascript??&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 17:16:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433322#M28558</guid>
      <dc:creator>pbalbasm</dc:creator>
      <dc:date>2022-03-03T17:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433323#M28559</link>
      <description>&lt;P&gt;Hi @pbalbasm,&lt;/P&gt;

&lt;P&gt;There's already a refresh button under every panel in Splunk. Is that what you are trying to recreate ?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jun 2019 19:47:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433323#M28559</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-18T19:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433324#M28560</link>
      <description>&lt;P&gt;Yes, it's something similar what I need to do.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 06:36:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433324#M28560</guid>
      <dc:creator>pbalbasm</dc:creator>
      <dc:date>2019-06-19T06:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433325#M28561</link>
      <description>&lt;P&gt;@pbalbasm &lt;BR /&gt;
Can you please try this?&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Assign &lt;CODE&gt;id&lt;/CODE&gt; to your panels search. like &lt;CODE&gt;id="my_search"&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;Execute this statement on click of the button.
&lt;CODE&gt;mvc.Components.get("my_search").startSearch();&lt;/CODE&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 07:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433325#M28561</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-06-19T07:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433326#M28562</link>
      <description>&lt;P&gt;Hi, that totally work! Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:32:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433326#M28562</guid>
      <dc:creator>pbalbasm</dc:creator>
      <dc:date>2019-06-19T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433327#M28563</link>
      <description>&lt;P&gt;Great @pbalbasm. Can you please upvote and accept to close this question?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 08:38:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433327#M28563</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-06-19T08:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433328#M28564</link>
      <description>&lt;P&gt;It works! Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 15:56:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/433328#M28564</guid>
      <dc:creator>afranciiine</dc:creator>
      <dc:date>2019-07-30T15:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/551129#M38083</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I am looking for the same.&amp;nbsp; I am not good at javascript. I have tried below but its not working&lt;BR /&gt;&lt;BR /&gt;require([&lt;BR /&gt;"splunkjs/mvc",&lt;BR /&gt;"splunkjs/mvc/simplexml/ready!"&lt;BR /&gt;], function(&lt;BR /&gt;mvc&lt;BR /&gt;) {&lt;BR /&gt;mvc.Components.get("my_search").startSearch();&lt;BR /&gt;});&lt;BR /&gt;&lt;BR /&gt;Can someone pls help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 18:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/551129#M38083</guid>
      <dc:creator>AKG1_old1</dc:creator>
      <dc:date>2021-05-10T18:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587411#M48180</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Did not work for me &lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is as below:&lt;/P&gt;&lt;P&gt;$("#submit_button").click(function($){&lt;BR /&gt;if(typeof submittedTokens.get("element") === 'undefined'){&lt;BR /&gt;mvc.Components.get("panel_id").startSearch();&lt;BR /&gt;}&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 10:21:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587411#M48180</guid>
      <dc:creator>sdhiaeddine</dc:creator>
      <dc:date>2022-03-03T10:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587415#M48181</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243486"&gt;@sdhiaeddine&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share your sample code?&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 11:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587415#M48181</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-03-03T11:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587434#M48182</link>
      <description>&lt;P&gt;This is the xml part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;form script="script.js" &amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;App&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel&amp;gt;&lt;BR /&gt;&amp;lt;html depends="$hide$"&amp;gt;&lt;BR /&gt;&amp;lt;style&amp;gt;&lt;BR /&gt;#submit_button{&lt;BR /&gt;width:80px !important;&lt;BR /&gt;}&lt;BR /&gt;#submit_button div[data-component="splunk-core:/splunkjs/mvc/components/LinkList"]{&lt;BR /&gt;width:80px !important;&lt;BR /&gt;}&lt;BR /&gt;#submit_button button{&lt;BR /&gt;padding: 6px 15px !important;&lt;BR /&gt;border-radius: 3px !important;&lt;BR /&gt;font-weight: 500 !important;&lt;BR /&gt;background-color: #5cc05c !important;&lt;BR /&gt;border: transparent !important;&lt;BR /&gt;color: #fff !important;&lt;BR /&gt;}&lt;BR /&gt;#submit_button button:hover{&lt;BR /&gt;background-color: #40a540 !important;&lt;BR /&gt;border-color: transparent !important;&lt;BR /&gt;}&lt;BR /&gt;&amp;lt;/style&amp;gt;&lt;BR /&gt;&amp;lt;/html&amp;gt;&lt;BR /&gt;....&lt;BR /&gt;&amp;lt;input type="link" id="submit_button"&amp;gt;&lt;BR /&gt;&amp;lt;label&amp;gt;&amp;lt;/label&amp;gt;&lt;BR /&gt;&amp;lt;choice value="submit"&amp;gt;Submit&amp;lt;/choice&amp;gt;&lt;BR /&gt;&amp;lt;/input&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;row&amp;gt;&lt;BR /&gt;&amp;lt;panel id="panel_id"&amp;gt;&lt;BR /&gt;&amp;lt;table&amp;gt;&lt;BR /&gt;&amp;lt;search&amp;gt;&lt;BR /&gt;&amp;lt;query&amp;gt;index=*&lt;BR /&gt;| stats latest(element) by value&amp;lt;/query&amp;gt;&lt;BR /&gt;&amp;lt;earliest&amp;gt;$earliest$&amp;lt;/earliest&amp;gt;&lt;BR /&gt;&amp;lt;latest&amp;gt;$latest$&amp;lt;/latest&amp;gt;&lt;BR /&gt;&amp;lt;/search&amp;gt;&lt;BR /&gt;&amp;lt;option name="refresh.display"&amp;gt;progressbar&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/table&amp;gt;&lt;BR /&gt;&amp;lt;/panel&amp;gt;&lt;BR /&gt;&amp;lt;/row&amp;gt;&lt;BR /&gt;&amp;lt;/form&amp;gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 13:11:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587434#M48182</guid>
      <dc:creator>sdhiaeddine</dc:creator>
      <dc:date>2022-03-03T13:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587481#M48183</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/243486"&gt;@sdhiaeddine&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You should define id for search tag Not panel tag.&lt;/P&gt;&lt;P&gt;like..&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;panel&amp;gt;
&amp;lt;table&amp;gt;
&amp;lt;search id="panel_id"&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:17:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587481#M48183</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2022-03-03T16:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to reload a single panel with javascript</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587961#M48233</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;Thank you, it works now&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 14:24:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-reload-a-single-panel-with-javascript/m-p/587961#M48233</guid>
      <dc:creator>sdhiaeddine</dc:creator>
      <dc:date>2022-03-08T14:24:44Z</dc:date>
    </item>
  </channel>
</rss>

