Hook Request

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

Hook Request

Post by coolprep25 » Wed Jun 26, 2019 10:25 am

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: 40
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Post by PatrickC » Wed Jun 26, 2019 4:07 pm

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 11:01 am

Re: Hook Request

Post by coolprep25 » Mon Jul 01, 2019 6:41 am

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: 40
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Post by PatrickC » Mon Jul 01, 2019 12:26 pm

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 11:01 am

Re: Hook Request

Post by coolprep25 » Tue Jul 09, 2019 3:22 pm

Please change it to Method hook...Thanks!

User avatar
cmcgehee
Posts: 659
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon

Re: Hook Request

Post by cmcgehee » Tue Jul 09, 2019 4:15 pm

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