Hi all,
I have Editable Grid in gallery and I'm trying to patch the changes to the datasource (SP List), when I'm clicking on save it is adding new items to the list with the changes instead of updating the item.
Edit/save Icon Onselect:
If(vareditSOC,Patch('ListName',colGridDataSOC));Select(BtnLoadDataSOC); Set(vareditSOC,!vareditSOC)
Datacards Onchange:
Select(Parent)
Gallery Onselect:
Patch(
colGridDataSOC,
ThisItem,
{
Title: Title.Text,
'Customer Name': CustomerName.Text,
'Project ID': ProjectID.Selected,
'Service Name': ServiceName.Selected,
'Hours Spent': Value(HoursSpent.Text),
'Request Date': RequestDate.SelectedDate,
'Approval Date': ApprovalDate.SelectedDate,
'Execution Date': ExecutionDate.SelectedDate,
Comments: commentsdata.Text
}
)