03-30-2016 02:08 PM
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 ??
03-31-2016 06:49 PM
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
03-31-2016 06:49 PM
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
03-31-2016 07:38 PM
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???
04-01-2016 04:50 AM
04-09-2016 02:36 PM
04-11-2016 04:15 AM
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
04-15-2016 04:46 PM