Is there a way to add checkboxes to a data table widget similar to the list view in the platform?

YenGar
Mega Sage

Hi all, 

I've been asked to provide a checkbox functionality in the portal to approve/update multiple records at a time similar to the list view in the platform. I'm wondering if this can be done using a data table widget so the user can select all the items they want to update and then just click a button to execute. Has anyone done this before? If so, would you be able to provide some assistance in the html/server part of the widget? If it's not possible in a data table, do you have some suggestions for a custom widget that could provide this same functionality?

find_real_file.png

 

Data table where this could possibly be added to:

find_real_file.png

 

Thank you! 

Yen

1 ACCEPTED SOLUTION

Thank you Jason! Sorry for getting back to you so late! I did add the checkboxes in the table. I decided to create a new widget instead. This is how it's looking. I still have to adjust some column widths to prevent the titles from wrapping. I also need to figure out how to uncheck the check all box when the user clicks it and then removes a check box from the list.

find_real_file.png

 

I did go to SNHackery website but didn't end up using the table he had however, i took some design ideas from him so thank you for sharing the website!!!

 

Yeny

View solution in original post

13 REPLIES 13

Hi!

After you clone the Data Table From Instance Definition widget, how do you set it to point at my cloned Data Table widget.

Thank you!

 

Rebeca Oprea

I have created the checkbox and update button using your HTML 

But I am unable to perform the server and Clint side scripting

My requirement is when I click the update button it should change the state of the selected record in the checkbox 

Field -state

Table-incident

bhushan11
Tera Contributor

Quick question :

 

the approve UI action is a button on html code or is there any way we can show list action or list choice on portal

Hi there, 

In the widget I have, it's a button on the html code. I don't think there is away to show list choice or actions the way they are displayed in the platform side. You'd probably have to use something like an iframe for that. Not entirely sure how that would work but for my widget, I just added the buttons in the html. 

Yen