How to use the checkbox to achieve single selection in the table

How to use the checkbox to achieve single selection in the table

  

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".

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 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.



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?

Hey Tao,


Please check this link

Checkbox Select

Are you looking for this?

or  do you have some other scenario?


Thanks,

Keerthi

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


Processing Upload...

Hey tao,

please refer the attached oml


Thanks

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.


Keerthi Vasan wrote:

Hey tao,

please refer the attached oml


Thanks

Hi Keerthi,

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


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?




Solution

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



Solution