Dashboards & Visualizations

How to add check boxes to each row in CustomViz Multiselect Table?

ajayabburi508
Path Finder

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? 

Labels (1)
0 Karma

kamlesh_vaghela
SplunkTrust
SplunkTrust

@ajayabburi508 

I think you got the answer from below my comment.

https://community.splunk.com/t5/Splunk-Search/How-to-insert-checkboxes-in-a-simple-statistics-result...

 

 

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.

 

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  &#x1f680; Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...