190
Views
6
Comments
Solved
 List with checkboxes, where I can only select one option. Debug works, UI doesn't.
Question
Application Type
Reactive
Service Studio Version
11.12.5 (Build 51077)

I'm developing a list where each element is composed of a number and a checkbox. I use a structure where I have the item data and a Boolean variable that determines which option is chosen.

I have a For each that goes through item by item and I set all to false when we are not facing the selected item. When we are, the variable changes its value. When debugging and traversing all items, the variables are marked as false, but in the UI the checkbox does not change its value visually, although it is already false.

How can I overcome this problem? Attached is an image of how I'm changing the value of the checkboxes.


ListAndCheckboxes.png
2024-07-09 13-46-34
Tiago Oliveira Matos
Solution

Hello @Khuong Truong and @Tousif khan

First of all, thank you very much for your immediate help. Fortunately, I found the solution to my problem in the how can i select only one of check box | OutSystems  question. I was also committing another problem namely: I was getting a list from a service, it turns out that the source of my list was that same list and not the local list, in which I was working and changing the values of the checkbox. 

Best regards,

Tiago Oliveira Matos

2020-11-13 07-48-15
Khuong Truong

Hi Tiago,

Can you share your .oml and we can know more detail about the issue.

Regards,

Khuong

2024-07-09 13-46-34
Tiago Oliveira Matos

Hello Khuong Truong,

Unfortunately I can't do this because of confidentiality issues, but I would really appreciate your help. 

If you have any ideas, I would appreciate it immensely. 

Best regards, Tiago Matos.

2020-11-13 07-48-15
Khuong Truong

Hi Tiago,

This is RWA, so I think you can re-check your screen that variable is correctly assign to each checkbox?

Or you can try to make a simple screen with similar code and if issue still there you can share with us.

Regards,

Khuong

UserImage.jpg
Johny William

Hello Tiago Oliveira Matos,

Make sure your Structure attribute in your Aggregate have a Default Boolean value = False for each record, and your checkbox must be bind to that attribute,

Hope this works,

Best Reagrds

Tousif


2024-07-09 13-46-34
Tiago Oliveira Matos

Hi Tousif Khan,

I am already doing that, but even though doesn't change the value. 

It has to be something else...

Thank you for your quick answer.

Tiago Matos.


ValueFalse.png
2024-07-09 13-46-34
Tiago Oliveira Matos
Solution

Hello @Khuong Truong and @Tousif khan

First of all, thank you very much for your immediate help. Fortunately, I found the solution to my problem in the how can i select only one of check box | OutSystems  question. I was also committing another problem namely: I was getting a list from a service, it turns out that the source of my list was that same list and not the local list, in which I was working and changing the values of the checkbox. 

Best regards,

Tiago Oliveira Matos

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