2382
Views
12
Comments
Solved
How to use the checkbox to achieve single selection in the table
Discussion

Hi All,

When using the checkbox in the table, how do you select one of the records while the other records are displayed as unselectable? 

Any thoughts appreciated and I apologize if this is a simple issue but I am an OutSystems "newbie".

2026-02-19 02-54-36
Keerthi Vasan V
Solution

du tao wrote:

Keerthi Vasan wrote:

Hey tao,

please refer the attached oml


Thanks

Hi Keerthi,

I didn't see the attachment. Can you upload it again?




Samples.oml
2026-02-19 02-54-36
Keerthi Vasan V

Hey tao,

Use an extra attribute in the aggregate as boolean

and in the checkbox on change action assign other value as false


Thanks,

Keerthi



UserImage.jpg
du tao

Keerthi Vasan wrote:

Hey tao,

Use an extra attribute in the aggregate as boolean

and in the checkbox on change action assign other value as false


Thanks,

Keerthi


Hi  Keerthi

    I tried this method. My problem is that I can only select one record. How do I ensure that the other record status is not selectable at the same time?


How to set some of the above properties and action?
2018-07-03 08-33-54
Tiago Gafeira
Champion

Hi Du Tao,

Just to clear the use case:

  • Is it possible to select just one record, or multiple ones?
  • All records are selectible?

Cheers,

Tiago.



2026-02-19 02-54-36
Keerthi Vasan V

Hey Tao,


Please check this link

Checkbox Select

Are you looking for this?

or  do you have some other scenario?


Thanks,

Keerthi

UserImage.jpg
du tao

Keerthi Vasan wrote:

Hey Tao,


Please check this link

Checkbox Select

Are you looking for this?

or  do you have some other scenario?


Thanks,

Keerthi

Hi Keerthi,

  Is this a similar effect, can this implementation logic let me refer to it? My implementation logic has some problems. When I implement this logic, when I refresh the page, sometimes the subscript reports an error. Sometimes, the selected record is refreshed to the initial state, or all the records are changed to not. Select the status.

Thanks


2026-02-19 02-54-36
Keerthi Vasan V

Hey tao,

please refer the attached oml


Thanks

Samples.oml
UserImage.jpg
du tao

Keerthi Vasan wrote:

Hey tao,

please refer the attached oml


Thanks

Hi Keerthi,

I didn't see the attachment. Can you upload it again?


2026-02-19 02-54-36
Keerthi Vasan V
Solution

du tao wrote:

Keerthi Vasan wrote:

Hey tao,

please refer the attached oml


Thanks

Hi Keerthi,

I didn't see the attachment. Can you upload it again?




Samples.oml
UserImage.jpg
du tao

Keerthi Vasan wrote:

du tao wrote:

Keerthi Vasan wrote:

Hey tao,

please refer the attached oml


Thanks

Hi Keerthi,

I didn't see the attachment. Can you upload it again?



Thank you! The problem has been solved



2018-07-03 08-33-54
Tiago Gafeira
Champion

If you just want to select 1 record aat a time I suggest that you use a radio button instead as it is much simpler, 


In this case, the Id of MyEntity in the selected line is kept in the local variable.


UserImage.jpg
PEM

I have order status entity.

If I click "Closed" checkbox, Others 4 are unchecked.

If I click something from Others 4 checkboxs(cancelled,new,shipped,pending), closed is unchecked.

Please kindly help me.


2026-06-05 12-38-17
Eduardo Jauch

Hello PEM, 

The solution was already provided above.

1. Use radio buttons, not check box, associated with a local variable and having as values the record id. 

2. If wants to use the check box appearance, use css to style radio button as checkbox

3. If you really want checkbox, use the OnChange event to deselect other checkboxes. 

Cheers 

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