
Announcements
Hello, I have a problem - I am just learning powerapps and with the help of various guides I have created something to collect orders. I have a collection to which I add products with a button.
button OnSelect:
Collect(Zamowienie;{Nazwa:ThisItem.'Nazwa asortymentu';Liczba:liczba.Text;Jednostka:ThisItem.'j.m.';Ind:ThisItem.Indeks});;
Reset(liczba)the gallery looks like this:
Items
Zamowieniethere is a field in the collection to edit the number of the assortment added by the user
Default:
ThisItem.LiczbaOnChange:
Patch(Zamowienie;ThisItem;{Liczba:Value(Self.Text)})everything works in this form, but I wanted to add row numbering to the gallery and found on the internet a code that I put in items instead of "Zamowienie"
Ungroup(
ForAll(
Sequence(CountRows(Zamowienie));
{
myRecord: Table(Last(FirstN(Zamowienie;Value)));
RowNumber: Value
}
);
"myRecord"
)and at this point there is a problem with
Patch(Zamowienie;ThisItem;{Liczba:Value(Self.Text)})error: column RowNumber does not exist
Please Help