I am using a Maintenance form and the only thing that is set on the BO is the required fields collection. Here are some of the methods on the BO itself.
private void SFCategoryBO_CheckRulesOnCurrentRow(CheckRulesEventArgs e)
{
if (!this.CategoryDescriptionIsUnique())
this.AddBrokenRule(SFCategoryBOFieldNames.CatDesc,
Localization.RetrieveTextValue("DuplicateCategoryDescription"));
}
private void SFCategoryBO_SetDefaultValues()
{
this.Created = DateTime.Now;
this.CreatedUsrID = oApp.oUser.UserID;
}
private void SFCategoryBO_BeforeSave(MicroFour.StrataFrame.Data.BeforeSaveUndoEventArgs e)
{
System.Console.WriteLine("Before Save Event - " + DateTime.Now.ToString());
this.LastUpd = DateTime.Now;
this.LastUpdUsrID = oApp.oUser.UserID;
}
I end up with two "Before Save Event" messages in the console.