Dashboards & Visualizations

How to create a table with checkboxes in my HTML dashboard to select individual rows and save the values?

sfatnass
Contributor

Hi

I want to create a table search in my HTML dashboard where I can use a checkbox to select a line.

If any body has an idea, please share

Thx

0 Karma
1 Solution

klsio
Explorer

check BaseCellRenderer.. http://dev.splunk.com/view/webframework-developapps/SP-CAAAEUB

add class like this.

$td.addClass('icon').html(_.template('', { }));

View solution in original post

0 Karma

bheemireddi
Communicator

sfatnass: was the solution work for you? I am trying for the similar requirement and when I try to use the function td.addClass('icon'), I get the checkbox icon, but that is static, not a clickable one. Wondering if you had it working and if so can you share the details on how you got it working?

0 Karma

yogushelly
Explorer

Hope you got things worked out, can you share the result/output. Wre you able to achieve it. IF yes please share the sample source code : yogu.shelly@gmail.com

sfatnass
Contributor

i changed i system and i use pictures and i switch between them :

 if(condition == true) {
                                           $td.addClass('range-cell').addClass('range-unchecked');
                                   }
                                   else{
                                           $td.addClass('range-cell').addClass('range-checked');
                                   }

i can show you a source code demo, if you can wait the weekend ^^

0 Karma

bheemireddi
Communicator

Hi sfatnass,can you share your email-id, I can send you what I am working on, so can share examples?

you can reach me at bheemireddi@gmail.com

0 Karma

klsio
Explorer

check BaseCellRenderer.. http://dev.splunk.com/view/webframework-developapps/SP-CAAAEUB

add class like this.

$td.addClass('icon').html(_.template('', { }));
0 Karma

woodcock
Esteemed Legend

Download the Splunk 6 Dashboard Examples app and look around:

https://splunkbase.splunk.com/app/1603/

0 Karma

yogushelly
Explorer

Hope you got things worked out, can you share the result/output. Wre you able to achieve it. IF yes please share the sample source code : yogu.shelly@gmail.com

0 Karma

sfatnass
Contributor

I have the application and there is no solution and no example for me.

0 Karma

woodcock
Esteemed Legend

You have asked a vague question and so you will probably get vague answers. You need to show sample events and then describe EXACTLY what your final output should look like, preferably with a mockup.

0 Karma

sfatnass
Contributor

i need something like this

alt text

0 Karma

woodcock
Esteemed Legend

But what will it DO when you click the checkboxes? In any case, this cannot be done in SImple XML so you wlll have to switch to HTML or Advanced XML.

0 Karma

sfatnass
Contributor

yes my dashboard is an html content.
when i click on the checkbox i need to save all fields value of current line.

so first question:
1) how can i do to get a column of checkbox like the example?
2) how can i do to get all fields value in a json object (i think it's better way to use json) ?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Observe and Secure All Apps with Splunk

 Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What's New in Splunk Observability - August 2025

What's New We are excited to announce the latest enhancements to Splunk Observability Cloud as well as what is ...

Introduction to Splunk AI

How are you using AI in Splunk? Whether you see AI as a threat or opportunity, AI is here to stay. Lucky for ...