Community
Showing results for 
Search instead for 
Do you mean 
Reply

On Activity Closure

Accepted Solution Solved
Copper Super Contributor
Posts: 478
Country: Australia
Accepted Solution

On Activity Closure

Hi all

 

I am looking to write some new code that will create file notes when a activity is closed based on the activity type

 

Does any one know the different handles for closing of activities ??


Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6

Accepted Solutions
Solution
Accepted by topic author JasonD
‎04-01-2016 12:56 PM
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: On Activity Closure

There is no event for when the 'edit activity' form opens or closes or any form in ACT!.
I requested that years ago and it fell upon death ears. It would be cool to know when the form is opened or closed.

 

The second best thing in ACT! is you can hook into these events

     AddHandler HostFramework.Activities.CreateActivityComplete, AddressOf ActivityCreateComplete
     AddHandler HostFramework.Activities.UpdateActivityComplete, AddressOf ActivityUpdateComplete
     AddHandler HostFramework.Activities.DeleteActivityComplete, AddressOf ActivityDeleteComplete
     AddHandler HostFramework.Activities.ActivityCleared, AddressOf ActivityCleared
     AddHandler HostFramework.Activities.ActivityUncleared, AddressOf ActivityUnCleared

 

BTW- If you are using the Impact Suite SDK you can hook into our form OPEN and CLOSE events on any custom table.

 

  AddHandler Durkin.Common.Classes.frmSubEntityItemEditDurkin.frmSubEntityItemEditDurkinClose, AddressOf frmSubEntityItemEditDurkinClose
  AddHandler Durkin.Common.Classes.frmSubEntityItemEditDurkin.frmSubEntityItemEditDurkinOpen, AddressOf frmSubEntityItemEditDurkinOpen

Hope this helps

-- Jim Durkin

 

View solution in original post


All Replies
Solution
Accepted by topic author JasonD
‎04-01-2016 12:56 PM
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: On Activity Closure

There is no event for when the 'edit activity' form opens or closes or any form in ACT!.
I requested that years ago and it fell upon death ears. It would be cool to know when the form is opened or closed.

 

The second best thing in ACT! is you can hook into these events

     AddHandler HostFramework.Activities.CreateActivityComplete, AddressOf ActivityCreateComplete
     AddHandler HostFramework.Activities.UpdateActivityComplete, AddressOf ActivityUpdateComplete
     AddHandler HostFramework.Activities.DeleteActivityComplete, AddressOf ActivityDeleteComplete
     AddHandler HostFramework.Activities.ActivityCleared, AddressOf ActivityCleared
     AddHandler HostFramework.Activities.ActivityUncleared, AddressOf ActivityUnCleared

 

BTW- If you are using the Impact Suite SDK you can hook into our form OPEN and CLOSE events on any custom table.

 

  AddHandler Durkin.Common.Classes.frmSubEntityItemEditDurkin.frmSubEntityItemEditDurkinClose, AddressOf frmSubEntityItemEditDurkinClose
  AddHandler Durkin.Common.Classes.frmSubEntityItemEditDurkin.frmSubEntityItemEditDurkinOpen, AddressOf frmSubEntityItemEditDurkinOpen

Hope this helps

-- Jim Durkin

 

Copper Super Contributor
Posts: 478
Country: Australia

Re: On Activity Closure

Thanks Jim

 

The Cleared event may do the job, or at least similar job

 

Do you know if it is different from clearing it in task list or via the form or does it not matter where or how its cleared just if its cleared???


Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: On Activity Closure

It does not matter where in the UI the users clears the activity.

ACT will always raise the event.

-- Jim 

Copper Super Contributor
Posts: 478
Country: Australia

Re: On Activity Closure

Hey Jim any reason you can not add these event to Plugin OnLoad the same way you would other events....???

I am getting nothing but errors

Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6
Bronze Super Contributor
Posts: 1,231
Country: USA

Re: On Activity Closure

Yes, in the ONLOAD event you are not log into the DB yet so you are probable getting an 'object null' error.

 

In the ONLOAD event add these three handlers

 

AddHandler HostApplication.BeforeLogoff, AddressOf ACTAPP_BeforeLogoff
AddHandler HostApplication.UIClosing, AddressOf ACTAPP_UIClosing
AddHandler HostApplication.AfterLogon, AddressOf ACTAPP_AfterLogon

 

Then use the AfterLogon to add other handlers such as the activity events and the BeforeLogoff to remove those handlers. I use the UIClosing to remeove menu items and other toolbar items.

 

 

Hope this helps

-- Jim Durkin

 

 

 

Copper Super Contributor
Posts: 478
Country: Australia

Re: On Activity Closure

Thanks for that Jim it makes sense given what its meant to trigger

Unfortunetly after spending a few days to work it out i am no closure solving it and making it work

Jason Dawson Financial Planning
Brisbane | Australia - JDFP Home Page

Act Ver - Act! Premium Version 17.1.169.0, Hot Fix 3
OS - Windows 7 (stand alone machine)
MS Office - Enterprise 2007
Phone - Samsung Galaxy s6