Hi,
I used patch with thisitem (in onselect of my + icon & input test --> default is set to thisitem.linecost) , to update my field details into datasource, but for some reason the values of linecost and line item are not updated. Need your suggestion?
Attaching screenshot
Hi @TM777 ,
A couple of fundamental questions. Where is this code being used (in a Gallery or Form as you have used ThisItem ) and is the data source (what is the type) updating but not displaying or simply not updating ?
Can you please also include the Item of the Form or the Items of the Gallery.
now its not including the last entry into datasource while patching? Any idea how to resolve it?
Unable to check and tried hardcoded values but still datasource is not updating.
To check if there is any error with patch ..try to add the below formula which would display error message if patch fails
Patch(
defectnumber,
thisitem,
{ lineost: 444, lineitem: 464 }
);
If(
IsError(Errors(defectnumber)),
Notify("Error updating record: " & Errors(defectnumber).Message, NotificationType.Error)
);
cheers
WarrenBelz
109
Most Valuable Professional
Michael E. Gernaey
76
Super User 2025 Season 1
mmbr1606
71
Super User 2025 Season 1