I read on Google it should be a bug, but not sure the truth.
It is a responsive App. I have a container inside a gallery where I put my controls.
The problem is when I call the ForAll function, instead saving all records from the gallery it is duplicating the last record.
If I do the same without a container (only the Gallery) it works.
Checking the pictures you can see the container inside the gallery, then how it is organized on the screen Treeview, the result (duplicated of the collection "colAllDetails", and finally the body of the function associated to a OnSelect of a button.
Not sure, but as the controls are inside the Container, it can be the reason of the issue. I checked many tutorials on how to create responsive galleries and almost all of then are using the same approach, but none of them run a ForAll.
Does anyone can help me on that?
The code on the OnSelect of the button is below:
Clear(colAllDetails);
Select(Gallery4);
ForAll(
Gallery4.AllItems,
Collect(
colAllDetails,
{
Name: TextInput6.Text,
LastName: TextInput7.Text,
DOB: DatePicker1.SelectedDate,
RelationshipTo: Dropdown2.SelectedText,
BookingReference:TextInput10.Text
}
)
)
Thanks.