Community
Showing results for 
Search instead for 
Do you mean 
Reply

How can use fields change event

sns
Loyal Listener
Posts: 33
Country: United States

How can use fields change event

Hi,

 

How can use fields change event 

AddHandler ActApp.ApplicationState.CurrentContact.Fields.FieldChanged, AddressOf FieldChanged

 

 

I can not use this .

 

Saket Dwivedi

 

SNS

Employee
Posts: 1,163
Country: USA

Re: How can use fields change event

Where are you signing up for this event? Are you getting an error message? Stack trace?

 

Here's my example that works, I sign up for the event in the ContactChanged event

 

 

void ActApp_CurrentContactChanged(object sender, EventArgs e)
        {
            ActApp.ApplicationState.CurrentContact.Fields.FieldChanged
                    += new MutableEntity.FieldCollection.FieldChangedHandler(Fields_FieldChanged);
        }

        void Fields_FieldChanged(string fieldName)
        {
            MessageBox.Show(fieldName.ToString());
        }
Matthew Wood
Act! SDK Support
Community Moderator