Hook Request

This forum is for programmers who have questions about the source code.
Post Reply
coolprep25
Posts: 6
Joined: Fri Nov 19, 2010 10:01 am

Hook Request

Post by coolprep25 »

Class: AutomationL.cs
Method: public static bool Trigger<T>(AutomationTrigger trigger,List<string> procCodes,long patNum,long aptNum=0,T triggerObj=default(T))

Please add Hook at the beginning of the case "PopUpThenDisable10Min" statement.

Thanks!
PatrickC
Posts: 56
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Post by PatrickC »

Here's what I have for the hook at this point.

Code: Select all

case AutomationAction.PopUpThenDisable10Min:
	Plugins.HookAddCode(null,"AutomationL.Trigger_PopUpThenDisable10Min_begin");
	long automationNum=listAutomations[i].AutomationNum;
If that looks like what you're envisioning, I'll go ahead and add it to the next update.
Patrick Carlson
Open Dental Software
http://www.opendental.com
coolprep25
Posts: 6
Joined: Fri Nov 19, 2010 10:01 am

Re: Hook Request

Post by coolprep25 »

Please pass following arguments into the method call: listAutomations, List<string> procCodes, long patNum

Plugins.HookAddCode(listAutomations,List<string> procCodes,long patNum, "AutomationL.Trigger_PopUpThenDisable10Min_begin");
PatrickC
Posts: 56
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Post by PatrickC »

Here is the updated hook request, which has been committed to (soon-to-be)beta version 19.2.2

Code: Select all

Plugins.HookAddCode(null,"AutomationL.Trigger_PopUpThenDisable10Min_begin",listAutomations[i],procCodes,patNum);
This is an AddCode hook, and I wanted to confirm that this is the desired functionality over a Method hook.
Patrick Carlson
Open Dental Software
http://www.opendental.com
coolprep25
Posts: 6
Joined: Fri Nov 19, 2010 10:01 am

Re: Hook Request

Post by coolprep25 »

Please change it to Method hook...Thanks!
User avatar
cmcgehee
Posts: 711
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Hook Request

Post by cmcgehee »

coolprep25,

Could you write out the code for the hook, including several lines before and after the hook? This will help us make sure we get the exact form that will be helpful to you.
Chris McGehee
Open Dental Software
http://www.opendental.com
Post Reply