Community
Showing results for 
Search instead for 
Do you mean 
Reply

CurrentContact.Updated Event not fired

Copper Contributor
Posts: 26
Country: Switzerland

CurrentContact.Updated Event not fired

In the plugin I want to trigger when any data on Act! contact is updated. I use the CurrentContact.Updated event to trigger.

But it seems, the event does not fire.

 

Here is my code:

 

    Private Sub ACTAPP_AfterLogon(ByVal sender As Object, ByVal e As System.EventArgs) Handles ACTAPP.AfterLogon

        AddHandler ACTAppState.CurrentContact.Updated, AddressOf c_updated

    End Sub

    Private Sub c_updated()

        MsgBox("update event fired")

    End Sub

I also tried to add the handler in the ACTAPP_CurrentContactChanged event, but then the update event also is fired every time when I change the view to another contact whithout doing changes:

 

    Private Sub ACTAPP_AfterLogon(ByVal sender As Object, ByVal e As System.EventArgs) Handles ACTAPP.AfterLogon

        AddHandler ACTAPP.CurrentContactChanged, AddressOf ACTAPP_CurrentContactChanged

    End Sub

    Private Sub ACTAPP_CurrentContactChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ACTAPP.CurrentContactListChanged

        AddHandler ACTAppState.CurrentContact.Updated, AddressOf c_updated

    End Sub

    Private Sub c_updated()

        MsgBox("update event fired")

    End Sub

 

Stefan Koehli
ACT! Cerified Consultant
KÖHLI INFORMATIK AG