Hi Every one ,
I am able to add check boxes to the each row of the table using https://splunkbase.splunk.com/app/4362/.
but here when i am browsing between two pages ,it is not working.
example : i selected 3 rows in first page
in second page i selected 2 rows then from here i go back to first page .
in first page i am not able to see selected 3 rows.
can someone help me here?
@ajayabburi508
I think you got the answer from below my comment.
Can you please replace the below code in JS?
Old:
var a = $('<div>').attr({"id":"chk-sourcetype"+cell.value,"value":cell.value}).addClass(checkbox_css).click(function() {
New:
var checkbox_css = selected_values_array.includes(cell.value) ? "checkbox checked" : "checkbox";
var a = $('<div>').attr({"id":"chk-sourcetype"+cell.value,"value":cell.value}).addClass(checkbox_css).click(function() {
If this resolved your issue then can you please accept it to close this question?
Thanks
KV
If any of my replies help you to solve the problem Or gain knowledge, an upvote would be appreciated.