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.
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
Hi Tiago,
Can you share your .oml and we can know more detail about the issue.
Regards,
Khuong
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.
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.
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
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.