Hello,
I have a multiscan barcode reader app that patches to a SQL DB. I am trying to add the success and error notifications that are working on the single scan version of the app.
I receive an 'Error. Cannot update' notification in the app but in the app Monitor (as well as on the SQL DB) I have all successes.
If(
IsEmpty(
Errors(
ForAll(
Gallery1.AllItems,
Patch(SQLDB, Defaults(SQLDB),
{SerialNumber: lbl_Scans.Text,
Status: lbl_default_Status_1.Text,
Location: dd_Location_2.Selected.Value,
Model: dd_SelectItem_3.Selected.Value,
Manufacturer: dd_SelectItem_3.Selected.Manufacturer,
ScanDate: Now(),
ScannedBy: User().FullName,
AssignedTo:lbl_IT_Storage_1.Text,
OSName: dd_SelectItem_3.Selected.OSName,
Type: dd_SelectItem_3.Selected.Type})
)
)
),
Notify("Update Successful",NotificationType.Success; 1);Set(SuccessNotify,true),
Notify("Error. Cannot update.",NotificationType.Error);Set(ErrorNotify, true)
)