Hi all. Need some help programming the Collect function.
I have used the following guide:
https://powerusers.microsoft.com/t5/Building-Power-Apps/Saving-all-data-from-Text-Input-fields-within-a-Gallery/td-p/620713
Below is my code:
Collect(Internordre;
ForAll('Gallery-Gen-ord'.AllItems;
{
OrdNo:Value('GenOrd-Body-OrdNr'.Text);
ProdNo:'GenOrd-Body-Prodno'.Text;
TrInf3:'GenOrd-Body-TilInfo'.Text;
Descr:'GenOrd-Body-Beskr'.Text;
NoInvoAb:'GenOrd-Body-Ant'.Text;
BestAv:'GenOrd-Body_BestAv'.Text
}));
UpdateContext({ResetItems:true})
My problem is that I get an error message (see marked area in the code).
The error message reads as follows: «A field named Descr was specified more than once in this record». I have now changed the name of the textinput field, but the error message remains.
How can I collect data from gallery that also has textinput fields?
Your help would be highly valued