[CustomForm]
public partial class CMSModuleLoader
{
private class CustomForm : CMSLoaderAttribute
{
public override void Init()
{
//base.Init();
ObjectEvents.Insert.After += Insert_After;
DocumentEvents.Insert.Before += Document_Insert_Before;
}
private void Insert_After(object sender, ObjectEventArgs e)
{
switch (e.Object.ObjectType.ToLower())
{
case "bizformitem.bizform.yourbizformcodename":
string columnValue = e.Object.GetStringValue("ColumnName", "");
e.Object.Update();
// do your work
break;
}
}
The above events is not executed when saving the form. I don't know whether we need to configure the even handler or not ?