I have a customization on the UD103Entry and I need to have a validation on the delete operation for the UD103A dataview.
Actually, I have a BPM in Pre mode and I use the RowMod on the UD103A table to determine if the delete is for the UD103 or the UD103A table and depending on my validation, I raise an exception to abort the delete operation.
The BPM work perfectly except for one thing, when the delete operation start, the row in my UltraGrid who handle the UD103A data are remove for the collection and after the exception was raised, I need to call a refresh on the UI to get my row back.
if (oneRow.Updated()) // Updated…
{
msg = “Il est impossible de changer le statut de la relâche ou de changer la pièce si la ligne ou les composantes de celle-ci contiennent un no de BT ou une no de PO.”;
} else // Deleted…
{
msg = “Il est impossible de supprimer la ligne ou les composantes de celle-ci si ils contiennent un no de BT ou une no de PO.”;
}
throw new BLException(msg);
}
}
}
}
catch (Exception e)
{
throw new Ice.Common.BusinessObjectException(e.ToString());
}