web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Application problem after adding code

(0) ShareShare
ReportReport
Posted on by

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

Zamowienie

there is a field in the collection to edit the number of the assortment added by the user

Default:

ThisItem.Liczba

OnChange:

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

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 655 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 391 Super User 2025 Season 2

#3
developerAJ Profile Picture

developerAJ 225

Last 30 days Overall leaderboard