Hi guys,
in this situation I have a Gallery(Gallery5) inside another Gallery (Gallery4).
Where Title1 contains the "Dosatore" Value.
As you can see there is a toggle inside the Gallery5, which is connected to a Yes/no field in the Datasource called "Attivo".
I need to set the OnCheck property of the toggle collecting the toggle status and the ID of my items, in order to patch the new toggle configuration in the datasource.
I need to collect all the items because before patching, I need to modify them in order of the costraint that for each item of gallery4 (the father), only one value of "Attivo" can be setted tu Yes. This means that easch "Dosatore" can have only 1 origin.
My problem is that if I try with a test button using the code:
ClearCollect(
ColTest;
Gallery5.AllItems
)
it returns no value. If I try with Gallery4.AllItems, it returns a table as aspected.
I'm afraid that this is connected to the fact that Gallery5 is nested inside Gallery4.
Any suggestion to solve this?
Thanks.