322
Views
10
Comments
Solved
checkbox in list group

Hi Team,

I want to put checkbox to select the particular row.Below is the block inside listgroup.

2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Ujwala,

I have attached URL and dummy OML for your Reference

https://akshayproject.outsystemscloud.com/Forumtest/Names?_ts=637728272427092548


Thanks and Regards,

Akshay Deshpande

Forumtest.oml
UserImage.jpg
Poonam Verma
Solution

Hi Ujwala,


I am attaching an OML with little diffrent approch. Go through it once. Hope this will help.

CheckBoxinList.oml
2020-11-13 07-48-15
Khuong Truong

Hi Ujwala,

I think you can add attribute (boolean) to the source of aggregate (or List). Then add checkbox widget to the list item with value is the new attribute.

Hope this helps,

Khuong

UserImage.jpg
Poonam Verma

Hi ujwala,


Create a structure with one attribute having data type as boolean. Add this structure as a source in your aggregate where you are fetching data. then add the checkbox widget to the list and bind it with that structure attribuite. 


Poonam

UserImage.jpg
ujwala

Hi,

Thanks,

I have done this as said,

How to select only one checkbox in list.

UserImage.jpg
Poonam Verma

Hi Ujwala,


Set the by default value as False of structure attribute. On clicking any of the checkbox, call a action that takes the id of the selected row as an input parameter.   With the help of this ID you can create your own  logic. 



2020-01-08 12-23-57
Jitender Gaur

Hi, 

If you are binding you list with Aggregate then, you just add new bool attribute "IsSelected" and assign the value is False. 


At the time of binding, you checkbox will be default uncheck because "IsSelected" is false. 


Now when you click on checkbox, that time update the True value for "IsSelected" attribute for the particular record. 


Thanks


UserImage.jpg
ujwala

Hi,

Please check the below,I have added as said on selection ,How the pass the Id.need to pass the current enterprise ID

UserImage.jpg
Poonam Verma

Hi Ujwala,


Call an action which takes the ID of selected row on "OnChange" event of checkbox, here the ID is your main source unique identifier.

UserImage.jpg
ujwala

Hi,

I have added the checkbox in structure attribute  and added that as a source in aggregate,

But If I select one checkbox,all will be selected.


UserImage.jpg
Poonam Verma
Solution

Hi Ujwala,


I am attaching an OML with little diffrent approch. Go through it once. Hope this will help.

CheckBoxinList.oml
2024-01-31 05-29-41
Akshay Deshpande
Solution

Hello Ujwala,

I have attached URL and dummy OML for your Reference

https://akshayproject.outsystemscloud.com/Forumtest/Names?_ts=637728272427092548


Thanks and Regards,

Akshay Deshpande

Forumtest.oml
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.