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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Updating Table

(0) ShareShare
ReportReport
Posted on by 105

Hi,

Would someone advise me about how to update tables?

 

I have a purchase form that the user should add the list of items there.

Setayesh2_1-1660043076803.png

 

Plus icon -> OnSelect is:

Collect(
tblPurchaseCollection,
{
CSerialNumber: Text(Last(tblPurchaseCollection).CSerialNumber + 1),
CProductName: txtProductNameInput.Text,
CProductQuantity: Value(txtQuantity.Text),
CProductPrice: Value(txtPrice.Text),
CProductCategory: ddCategory.SelectedText
}
);

 

Cancel icon -> OnSelect is: 

RemoveIf(
tblPurchaseCollection,
CSerialNumber = ThisItem.CSerialNumber
);

 

DataTable1 -> Items is:

Filter(PurchaseCollection,ThisItem.'P.O.'=PO)

PurchaseCollection is a SharePoint list (Columns: Quantity, Category, PO, Price, ProductName)

 

 

My question is that how can I update the tblPurchaseCollection if the user typed some values by mistake? Right now user should remove that row and add it again. I tried with a patch but unsuccessful

Setayesh2_2-1660043318768.png

Also, I have a Sum textbox to calculate Price * quantity, but I get a delegation warning:

 

If(SharePointForm1.Mode=FormMode.New,Text(Sum(tblPurchaseCollection,CProductPrice * CProductQuantity)),Text(Sum(Filter(PurchaseCollection,ThisItem.'P.O.'=PO),Price * Quantity)) ) & " " & DataCardValue14.Selected.Value //,"[$-en-US]$#,###.00")

 

Thanks in Advance

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,720 Super User 2026 Season 1 on at

    Hi @Setayesh2 ,

     

    If you use a gallery instead of a DataTable, you can actually edit the items inside the control. Let's say you add TextInputs to display all the fields (Default = ThisItem.Column). You can then use the OnChange property to save any changes directly as they are made (OnChange = Patch(DataSource,ThisItem,{Column: Self.Text}).

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard