Does Acumatica have a built-in button to undo changes in Data Entry Grids?
Best answer by aaghaei
View originalDoes Acumatica have a built-in button to undo changes in Data Entry Grids?
Best answer by aaghaei
View originalMaybe I’m not fully understanding your question but to undo any changes on a page, just hit the Cancel button. If you want to undo changes to the current field (regardless of whether in a grid or not), just hit Escape.
Hi,
Once we started editing the changes like insert/delete/update the records and all these changes are available only in the Cache (Inserted/Deleted/Updated) blocks, once you click on the Undo/Cancel button Cache will be cleared (inserted/deleted/updated) data.
Yes
You can show a warning message when the user trying to delete the item by writing the logic in the RowDeleting event.
But, this warning will be shown when user tries to delete the item from the keyboard and the (X) button click manually as well.
As a work around I may end up adding a flag to document header to show the deletion dialog based on that flag. Or you might have a better suggestion.
Here I added an event handler but either I click on Yes or No, system anyways deletes the record. What I’m doing wrong?
protected void PMCostProjectionLine_RowDeleting(PXCache cache, PXRowDeletingEventArgs e, PXRowDeleting InvokeBaseHandler)
{
var row = e.Row as PMCostProjectionLine;
if (row == null) return;
if (Base.Details.Ask(PMMessages.DeleteCostProjectionLine, MessageButtons.YesNo) != WebDialogResult.Yes) return;
if (InvokeBaseHandler != null) InvokeBaseHandler(cache, e);
}
Hi
Considering it wasn’t an urgent need I was postponing it. I just gave it another try as follows and made it work.
protected virtual void PMCostProjectionLine_RowDeleting(PXCache cache, PXRowDeletingEventArgs e, PXRowDeleting BaseHandler)
{
var row = e.Row as PMCostProjectionLine;
if (row == null) return;
if (Base.Details.Ask(PMMessages.DeleteCostProjectionLine, MessageButtons.YesNo) != WebDialogResult.Yes)
{
e.Cancel = true;
return;
}
else
{
BaseHandler?.Invoke(cache, e);
}
}
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.