Hello everyone,
As described above, I have a listview with containers. In the first container I have defined that a button sets itself to hidden at the push of a button. This works in the first 2 containers and also in many containers later, but not at all in containers 3 to 8, for example. The script runs the same in all containers due to the list view, or am I wrong?
Small addendum:
It only affects containers 3 to 10. In 1 & 2, as well as from listItem 11 it works perfectly
Hi Phillipp!
Would you mind sharing screenshots of how you're setting the setHide value?
Definitely!
There is no direct reference to an element in my script, because in Retool the scope within a list view first refers to the item. The script also works smoothly with almost all containers.
No reference to an index of an Element*
I'm having trouble reproing this. Would you mind sharing a simple app export?
Hi,
I have the same problem with a grid view component. Toggling the checkbox with an event which toggles the checkbox component works fine but when you try to toggle the checkbox with a run script event it only works for the first 2 checkboxes.
You can find an example of this in my included app export.
Robby.json (39.3 KB)
Do you get an error message?
Yes, I get the error "checkbox1 does not exist" for every button I click except the first 2.
Hi,
When will this bug be solved? I don't see a workaround for this so I'm stuck on this for the moment.
I've reach out to our engineers about this bug. Looks like the functions of contained components aren't accessible in the the scripts of the gridview, but reading properties is working. Thanks for sharing this issue. I'll let you know as soon as I hear back with an update.
I did find a workaround by using a variable and using this to set the value of the checkbox in the gridview.
But it would be great if contained components could also be changed in the script of the gridview so hopefully this will be fixed in the future.