04-03-2008 08:33 PM
04-04-2008 02:02 PM - edited 04-04-2008 02:03 PM
private void AfterLogon(object Sender, System.EventArgs e) { try { //events AddMenuItem("act-ui://com.act/application/menu/tools/Test", "Trap", new Act.UI.CommandHandler(this.Test01)); ActApp.ActFramework.Database.BeforeDatabaseLock += new Act.Framework.Database.DatabaseLockHandler(this.BeforeDatabaseLock); ActApp.CurrentContactChanged += new EventHandler(ActApp_CurrentContactChanged); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } } void ActApp_CurrentContactChanged(object sender, EventArgs e) { ActApp.ApplicationState.CurrentContact.Fields.FieldChanged +=
new Act.Framework.MutableEntities.MutableEntity.FieldCollection.FieldChangedHandler(Fields_FieldChanged); } void Fields_FieldChanged(string fieldName) { switch (fieldName) { case "TBL_CONTACT.EXAMPLE":
///ETC....
04-05-2008 11:14 AM
04-28-2008 09:45 AM
Hiya,
Maybe you could use the Act.MutatableEntities.MutatableEntity.Update Event? Act.Framework.Contact inherits from MutatableEntity. I think the Update event is fired when the Contact is commited to the dB so this would be after the Save is accepted fro the Contact.
HTH
Vivek