I can successfully capture when a new Item Class is created and retrieve the Item Class Code and Description
public void Initialize()
{
Dynamics.Forms.IvClassMaintenance.IvClassMaintenance.SaveRecord.Change += new EventHandler(SaveRecord_Change);
}
public void SaveRecord_Change
{
var code = Dynamics.Forms.IvClassMaintenance.IvClassMaintenance.ItemClassCode;
var desc = Dynamics.Forms.IvClassMaintenance.IvClassMaintenance.ItemClassDescription;
if (Dynamics.Forms.IvClassMaintenance.IvClassMaintenance.IsChanged && !String.IsNullOrWhiteSpace(code))
{
// Do something...
}
}
I considered attaching an event handler to one of the DeleteButton events, but this does not apply in all instances (for example when someone presses the Delete button and then Cancel.)
Dynamics.Forms.IvClassMaintenance.IvClassMaintenance.DeleteButton.ClickAfterOriginal += new EventHandler(DeleteButton_ClickAfterOriginal);
Should there be a "DeleteRecord" event that I am missing here??
*This post is locked for comments