<?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 How to get all results from multi page search results table? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-all-results-from-multi-page-search-results-table/m-p/600318#M49292</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I have a dashboard that has search input fields that allow to run a search and the results are displayed on the table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a custom button to act on the data from the search. &lt;STRONG&gt;I don't want to repeat the search using tokens and searchmanager.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to load the full results from the table on javascript in the case of a multi page table like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkhmcv_0-1654185936540.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19922i0D0228BC5939878A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkhmcv_0-1654185936540.png" alt="splunkhmcv_0-1654185936540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I know it's possible to download a .csv file using the SID from the search but I want to know if there is other way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can extract the data from the table page that's currently rendered on the dashboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2022 17:46:11 GMT</pubDate>
    <dc:creator>splunkhmcv</dc:creator>
    <dc:date>2022-06-02T17:46:11Z</dc:date>
    <item>
      <title>How to get all results from multi page search results table?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-all-results-from-multi-page-search-results-table/m-p/600318#M49292</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I have a dashboard that has search input fields that allow to run a search and the results are displayed on the table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to create a custom button to act on the data from the search. &lt;STRONG&gt;I don't want to repeat the search using tokens and searchmanager.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Is it possible to load the full results from the table on javascript in the case of a multi page table like this :&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="splunkhmcv_0-1654185936540.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/19922i0D0228BC5939878A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="splunkhmcv_0-1654185936540.png" alt="splunkhmcv_0-1654185936540.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I know it's possible to download a .csv file using the SID from the search but I want to know if there is other way to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can extract the data from the table page that's currently rendered on the dashboard.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-all-results-from-multi-page-search-results-table/m-p/600318#M49292</guid>
      <dc:creator>splunkhmcv</dc:creator>
      <dc:date>2022-06-02T17:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to get all results from multi page search results table ?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-all-results-from-multi-page-search-results-table/m-p/600323#M49294</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/246426"&gt;@splunkhmcv&lt;/a&gt;&amp;nbsp;- You can do it with the search id.&lt;/P&gt;&lt;P&gt;Assign id to search in XML, like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;table&amp;gt;
  &amp;lt;search id="my_search"&amp;gt;
    &amp;lt;query&amp;gt;....&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And you can read the same results in the JS like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;// Imports
require([
        'splunkjs/mvc', 
...


// read the same search results
let mySearchManager = mvc.Components.get("my_search");
let myResults = mySearchManager.data("results");
        myResults.on("data", function () {
            resultArray = myResults.data().rows;
            $.each(resultArray, function (index, value) {
                console.log(value);
            });
        });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 17:42:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-get-all-results-from-multi-page-search-results-table/m-p/600323#M49294</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2022-06-02T17:42:32Z</dc:date>
    </item>
  </channel>
</rss>

