<?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: multiselect table rows in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337427#M100113</link>
    <description>&lt;P&gt;@mwdbhyat  did u get the solution to have check box which will select all.?&lt;BR /&gt;
Please help me , even i m looking for such kind of requirement  &lt;/P&gt;</description>
    <pubDate>Wed, 21 Aug 2019 13:43:19 GMT</pubDate>
    <dc:creator>vasanthi77</dc:creator>
    <dc:date>2019-08-21T13:43:19Z</dc:date>
    <item>
      <title>multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337407#M100093</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am currently trying to multi-select table rows. So basically  I want to select multiple rows and on selction ,selected rows fields values get store(like in SQL using select query) and below table one button will be present .On clicking that button, the selected rows (field values) get stored in lookup (using outputlookup query).&lt;BR /&gt;
Is it Possible in Splunk.&lt;BR /&gt;
Any pointers to this will really help.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 08:22:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337407#M100093</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-10-29T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337408#M100094</link>
      <description>&lt;P&gt;I hope the question is related to front-end UI ?&lt;/P&gt;

&lt;P&gt;If yes, we had done similar using &lt;BR /&gt;
- multiselect input element&lt;BR /&gt;
- Display a table to end user and provide a multiselect input option with table column headers in the list. Let the user select the multiple headers and this can be passed to a search&lt;BR /&gt;
- And on the button, enable the search with outputlook to csv file.&lt;/P&gt;

&lt;P&gt;You can install the S&lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;plunk Dashboard Example&lt;/A&gt; app to see how the multi-select element works.&lt;BR /&gt;
hope this helps&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 10:31:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337408#M100094</guid>
      <dc:creator>koshyk</dc:creator>
      <dc:date>2017-10-29T10:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337409#M100095</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;

&lt;P&gt;To select row is not direclty possible but yes you can achieve this.&lt;/P&gt;

&lt;P&gt;1) In the table view, add one more column which will display the checkbox for each row. (using javascript) &lt;BR /&gt;
2) Declare a javascript variable, like array type, which store table row value on tick and remove on untick of checkbox.&lt;BR /&gt;
3) Add a button below table view and define a onclick  function, which executes &lt;CODE&gt;outputlookup&lt;/CODE&gt; search for selected table rows( which is stored into javascript vaiable) and stores it into lookup.&lt;/P&gt;

&lt;P&gt;Is this approach ok for you?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 10:32:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337409#M100095</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-29T10:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337410#M100096</link>
      <description>&lt;P&gt;Thanks @kamlesh_vaghela&lt;BR /&gt;
I am not familiar with javascript. Could you please explain in details to store row value on click of multiselect checkbox.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 13:56:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337410#M100096</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-10-29T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337411#M100097</link>
      <description>&lt;P&gt;@493669 while ideally it should be done via JavaScript so that you have better control of data, validations and event actions.&lt;BR /&gt;
However, I am giving a run anywhere dashboard examples purely in Simple XML just for the heck of it just because @kamlesh_vaghela's comment &lt;CODE&gt;not directly possible&lt;/CODE&gt; got me thinking &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/3748i990ED68806F3D7D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Following is the run anywhere Dashboard Example (PS: I have purposely not used &lt;CODE&gt;depends&lt;/CODE&gt; attribute for various panels to ensure that demo shows how temporary csv and final csv gets modified with various events).&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;Move Selected row/s from one table to another&amp;lt;/label&amp;gt;
  &amp;lt;!-- Query to run in background to clear temporary cvs on selecting discard option --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;$tokQueryClearTempLookup$
    &amp;lt;/query&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;!-- Unsets clear temp table query once search completes --&amp;gt;
      &amp;lt;unset token="tokQueryClearTempLookup"&amp;gt;&amp;lt;/unset&amp;gt;
      &amp;lt;!-- Once Temporary CSV is cleaned up the same should be updated in the table view (for No Rsults found) --&amp;gt;
      &amp;lt;set token="tokRowData"&amp;gt;| inputlookup tempRowData.csv | table component ERROR WARN | dedup component ERROR WARN | outputlookup tempRowData.csv&amp;lt;/set&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;&amp;lt;/fieldset&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;!-- Table with Sample data. Following is run anywhere search of Splunk Errors with first 10 rows by component name --&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Source Table (Splunk Component Errors head 10)&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal sourcetype=splunkd log_level!="INFO"
|  chart count over component by log_level
|  head 10&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="percentagesRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="totalsRow"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;!-- Set the query for updating the temporary CSV when a row is selected in the Table. All table columns are accessed with $row.&amp;lt;fieldname&amp;gt;$ predefined table drilldown token --&amp;gt;
          &amp;lt;set token="tokRowData"&amp;gt;| inputlookup tempRowData.csv | append [| makeresults | eval component="$row.component$",ERROR="$row.ERROR$",WARN="$row.WARN$"] | table component ERROR WARN | dedup component ERROR WARN | outputlookup tempRowData.csv&amp;lt;/set&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="radio" token="chkSaveResult" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;(Clicking save with empty temporary csv will clear Final Table as well)&amp;lt;/label&amp;gt;
        &amp;lt;choice value="save"&amp;gt;Save&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="discard"&amp;gt;Discard&amp;lt;/choice&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;!-- On click of Save radio button, set the query for saving data from Temporary CSV to Final CSV --&amp;gt;
          &amp;lt;!-- Clean Radio Button token after click to give button like behavior i.e. Event on every click --&amp;gt;
          &amp;lt;condition value="save"&amp;gt;
            &amp;lt;set token="tokQuerySaveFinalLookup"&amp;gt;| inputlookup tempRowData.csv | outputlookup finalLookup.csv&amp;lt;/set&amp;gt;
            &amp;lt;unset token="chkSaveResult"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;unset token="form.chkSaveResult"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;!-- On click of Discard radio button, set the query for clearing Temporary CSV and unset the final save query token--&amp;gt;
          &amp;lt;!-- Clean Radio Button token after click to give button like behavior i.e. Event on every click --&amp;gt;
          &amp;lt;condition value="discard"&amp;gt;
            &amp;lt;set token="tokQueryClearTempLookup"&amp;gt;|  makeresults |  fields - _time | outputlookup tempRowData.csv&amp;lt;/set&amp;gt;
            &amp;lt;unset token="chkSaveResult"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;unset token="form.chkSaveResult"&amp;gt;&amp;lt;/unset&amp;gt;
            &amp;lt;unset token="tokQuerySaveFinalLookup"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;!-- Text box to provide Lookup File to save the final Output. temp.csv is default final file--&amp;gt;
      &amp;lt;input type="text" token="tokFileName" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Final Lookup File Name&amp;lt;/label&amp;gt;
        &amp;lt;initialValue&amp;gt;temp.csv&amp;lt;/initialValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;!-- Table to Show Temporary CSV --&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Temporary Table Based on Selected Values (tempRowData.csv)&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokRowData$
          &amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;!-- Table to show content of Final Output csv file--&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;Final Table ($tokFileName$)&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokQuerySaveFinalLookup$
          &amp;lt;/query&amp;gt;
          &amp;lt;done&amp;gt;
            &amp;lt;!-- After saving to Final Output File Clear out content of Temporary CSV, reset the Final CSV name to temp.csv and clear the Save Query--&amp;gt;
            &amp;lt;!-- Since Saving results to final CSV clears the Temporary table. Clicking again on Save radio option will set the Final csv with empty values. So it is better to provide custom file name rather that temp.csv before saving. --&amp;gt;   
            &amp;lt;set token="tokQueryClearTempLookup"&amp;gt;| makeresults |  fields - _time | outputlookup tempRowData.csv&amp;lt;/set&amp;gt;
            &amp;lt;set token="form.tokFileName"&amp;gt;temp.csv&amp;lt;/set&amp;gt;
            &amp;lt;unset token="tokQuerySaveFinalLookup"&amp;gt;&amp;lt;/unset&amp;gt;
          &amp;lt;/done&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 29 Oct 2017 14:43:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337411#M100097</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-29T14:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337412#M100098</link>
      <description>&lt;P&gt;@493669, what you have request is like a web form kind of functionality and for best behavior and control you must include JavaScript. Submit button should have JavaScript based functionality. So pick up on Simple XML CSS Extension and JS Extension followed by Splunk JS Stack in case you want to have more control over your dashboards and specially if Use Cases are out of what Splunk provides in the box.&lt;/P&gt;

&lt;P&gt;Just FYI, I have provided a complete Simple XML Solution with Run anywhere Dashboard Example which you can try out and confirm.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 14:47:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337412#M100098</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-29T14:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337413#M100099</link>
      <description>&lt;P&gt;Thanks @niketnilay .&lt;BR /&gt;
It will select one row at a time but I want to select multiple rows simultaneously and after that clicking on button will &lt;CODE&gt;|outputlookup&lt;/CODE&gt;  all select rows (field values)&lt;/P&gt;

&lt;P&gt;Thats why I might need to use javascript&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 15:32:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337413#M100099</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-10-29T15:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337414#M100100</link>
      <description>&lt;P&gt;Sure. Although for selecting one row you need to click each time. However, temporary table which builds up with individual rows get saved only if you click on Save radio button option. For Simultaneous selection if you are planning on coding &lt;CODE&gt;drag&lt;/CODE&gt; event then you can do the same only through JavaScript. Even check box option will work based on clicking one row at a time.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Oct 2017 15:42:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337414#M100100</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-10-29T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337415#M100101</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I have created sample dashboard for you.&lt;/P&gt;

&lt;P&gt;Can you please try below code?&lt;/P&gt;

&lt;P&gt;mydashboard.xml&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form script="my.js" stylesheet="my.css"&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;table id="myTable"&amp;gt;
        &amp;lt;title&amp;gt;My Table&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | stats count by sourcetype | eval checkbox=sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="*"&amp;gt;

          &amp;lt;/condition&amp;gt;
          &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;html&amp;gt;
      &amp;lt;div&amp;gt;
        &amp;lt;input type="button" id="mybutton" value="My Button" /&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/html&amp;gt;
  &amp;lt;/row&amp;gt;
  &amp;lt;row&amp;gt;
     &amp;lt;panel&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;title&amp;gt;My Selected Value&amp;lt;/title&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;| makeresults | eval myvalue="$mytoken$" | makemv delim="," myvalue | stats count by myvalue | table myvalue&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my.js&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;require([
    'underscore',
    'jquery',
    'splunkjs/mvc',
    'splunkjs/mvc/tableview',
    'splunkjs/mvc/simplexml/ready!'
], function(_, $, mvc, TableView) {
    // Access the "default" token model
    var tokens = mvc.Components.get("default");
    var selected_values_array = [];
    var submittedTokens = mvc.Components.get('submitted');

    var CustomRangeRenderer = TableView.BaseCellRenderer.extend({
        canRender: function(cell) {
            return _(['checkbox']).contains(cell.field);
        },
        render: function($td, cell) {
            var a = $('&amp;lt;div&amp;gt;').attr({"id":"chk-sourcetype"+cell.value,"value":cell.value}).addClass('checkbox').click(function() {
                // console.log("checked",$(this).attr('class'));
                // console.log("checked",$(this).attr('value'));
                if($(this).attr('class')==="checkbox")
                {
                    selected_values_array.push($(this).attr('value'));
                    $(this).removeClass();
                    $(this).addClass("checkbox checked");
                }
                else {
                    $(this).removeClass();
                    $(this).addClass("checkbox");
                    var i = selected_values_array.indexOf($(this).attr('value'));
                    if(i != -1) {
                        selected_values_array.splice(i, 1);
                    }
                    // Change the value of a token $mytoken$
                }
                console.log(selected_values_array);
            }).appendTo($td);
        }
    });

    //List of table IDs
    var tableIDs = ["myTable"];
    for (i=0;i&amp;lt;tableIDs.length;i++) {
        var sh = mvc.Components.get(tableIDs[i]);
        if(typeof(sh)!="undefined") {
            sh.getVisualization(function(tableView) {
                // Add custom cell renderer and force re-render
                tableView.table.addCellRenderer(new CustomRangeRenderer());
                tableView.table.render();
            });
        }
    }
    $(document).ready(function () {
        $("#mybutton").on("click", function (e) {
            e.preventDefault();
            console.log("in");
            tokens.set("mytoken", selected_values_array.join());
            submittedTokens.set(tokens.toJSON());
        });
    });
});
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;my.css&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/* The standalone checkbox square*/
.checkbox {
  width:20px;
  height:20px;
  border: 1px solid #000;
  display: inline-block;
}

/* This is what simulates a checkmark icon */
.checkbox.checked:after {
  content: '';
  display: block;
  width: 4px;
  height: 7px;

  /* "Center" the checkmark */
  position:relative;
  top:4px;
  left:7px;

  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here I have created javascript and Css (my.js and my.css). &lt;BR /&gt;
Keep both file in SPLUNK_HOME/etc/apps/MYAPP/appserver/static/ path.&lt;/P&gt;

&lt;P&gt;There are two tables in dashboard. First for selection and seconf for selected value.&lt;BR /&gt;
I have stored value in javascript variable &lt;CODE&gt;selected_values_array&lt;/CODE&gt; and splunk token &lt;CODE&gt;mytoken&lt;/CODE&gt;.&lt;BR /&gt;
You can use splunk token &lt;CODE&gt;mytoken&lt;/CODE&gt; in any search. &lt;BR /&gt;
2nd table is an example of using splunk token &lt;CODE&gt;mytoken&lt;/CODE&gt;. You can use this token for store in lookup.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 08:40:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337415#M100101</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-30T08:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337416#M100102</link>
      <description>&lt;P&gt;Thats Great....Thanks @kamlesh_vaghela &lt;/P&gt;

&lt;P&gt;I dont understand use of below ... Could you please help to understand&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;//List of table IDs
     var tableIDs = ["myTable"];
     for (i=0;i&amp;lt;tableIDs.length;i++) {
         var sh = mvc.Components.get(tableIDs[i]);
         if(typeof(sh)!="undefined") {
             sh.getVisualization(function(tableView) {
                 // Add custom cell renderer and force re-render
                 tableView.table.addCellRenderer(new CustomRangeRenderer());
                 tableView.table.render();
             });
         }
     }
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I was just thinking if I can disable the "MyButton" after one click to avoid double click...If you could help me...&lt;BR /&gt;
else I will be accepting your answer&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:21:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337416#M100102</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-10-30T13:21:45Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337417#M100103</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
Above code is for accessing table view using ID and applying custom render for that table view.&lt;/P&gt;

&lt;P&gt;Yes, you can disable button. &lt;/P&gt;

&lt;P&gt;Just replace onclick with below code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$(document).ready(function () {
        $("#mybutton").on("click", function (e) {
            e.preventDefault();
            console.log("in");
            tokens.set("mytoken", selected_values_array.join());
            submittedTokens.set(tokens.toJSON());
           $("#mybutton").attr('disabled',true);
        });
    });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have just added &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;$("#mybutton").attr('disabled',true);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please accept this ans to close this question.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 13:35:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337417#M100103</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-10-30T13:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337418#M100104</link>
      <description>&lt;P&gt;correct it will disable it but I want to enable it after table search query runs..&lt;/P&gt;

&lt;P&gt;$("#mybutton").attr('disabled',false);&lt;/P&gt;

&lt;P&gt;it will enable it but how I can know if table query search is completed.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337418#M100104</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-10-30T15:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337419#M100105</link>
      <description>&lt;P&gt;Hi @493669,&lt;BR /&gt;
Yes, we can do it.&lt;/P&gt;

&lt;P&gt;Can you please add &lt;CODE&gt;id="mysearch"&lt;/CODE&gt; in second &lt;CODE&gt;search&lt;/CODE&gt; tag in xml file?? like..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;search id="mysearch"&amp;gt;
    &amp;lt;query&amp;gt;| makeresults | eval myvalue="$mytoken$" | makemv delim="," myvalue | stats count by myvalue | table myvalue&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
&amp;lt;/search&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please Remove previously added code &lt;CODE&gt;$("#mybutton").attr('disabled',true);&lt;/CODE&gt; from javascript &amp;amp; add below code above the &lt;CODE&gt;$(document).ready(function () {&lt;/CODE&gt; code.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    var mysearch = mvc.Components.get('mysearch');
 mysearch.on('search:start', function(properties) {
    $("#mybutton").attr('disabled',true);
 });

 mysearch.on('search:done', function(properties) {
    $("#mybutton").attr('disabled',false);
 });


 $(document).ready(function () {
     $("#mybutton").on("click", function (e) {
         e.preventDefault();
         console.log("in");
         tokens.set("mytoken", selected_values_array.join());
         submittedTokens.set(tokens.toJSON());
         // $("#mybutton").attr('disabled',true); // Remove this line.

     });
 });
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;BR /&gt;
Happy Splunking &lt;/P&gt;</description>
      <pubDate>Wed, 01 Nov 2017 16:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337419#M100105</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-11-01T16:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337420#M100106</link>
      <description>&lt;P&gt;Thanks  kamlesh_vaghela&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 09:14:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337420#M100106</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2017-11-08T09:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337421#M100107</link>
      <description>&lt;P&gt;i seriously could not upvote this enough. you should package this up and put it out on splunkbase as a custom viz. saved me so much time. you are amazing.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Oct 2018 22:25:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337421#M100107</guid>
      <dc:creator>cmerriman</dc:creator>
      <dc:date>2018-10-17T22:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337422#M100108</link>
      <description>&lt;P&gt;This is awesome and works like a pro!! @kamlesh_vaghela&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 07:23:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337422#M100108</guid>
      <dc:creator>Sankavi</dc:creator>
      <dc:date>2019-02-27T07:23:33Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337423#M100109</link>
      <description>&lt;P&gt;@cmerriman&lt;/P&gt;

&lt;P&gt;&lt;A href="https://splunkbase.splunk.com/app/4362/"&gt;https://splunkbase.splunk.com/app/4362/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 10:05:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337423#M100109</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-02T10:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337424#M100110</link>
      <description>&lt;P&gt;@kamlesh_vaghela this is awesome!..Is there a way to create a "select all" checkbox that would select everything and dump to another table ?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 08:37:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337424#M100110</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2019-04-30T08:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337425#M100111</link>
      <description>&lt;P&gt;@mwdbhyat&lt;/P&gt;

&lt;P&gt;Yes, you can do that. In this case, you have to use the first table's search in the second table with the filter with &lt;CODE&gt;mytoken&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Can you please try?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 09:19:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337425#M100111</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2019-04-30T09:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: multiselect table rows</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337426#M100112</link>
      <description>&lt;P&gt;@kamlesh_vaghela im more after an actual checkbox above the first table(or at the top) so if I tick it, it selects all the boxes below it and then adds to the second table?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 08:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multiselect-table-rows/m-p/337426#M100112</guid>
      <dc:creator>mwdbhyat</dc:creator>
      <dc:date>2019-05-02T08:18:41Z</dc:date>
    </item>
  </channel>
</rss>

