Hook Request

This forum is for programmers who have questions about the source code.

Hook Request

Postby 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!
coolprep25
 
Posts: 6
Joined: Fri Nov 19, 2010 11:01 am

Re: Hook Request

Postby 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
PatrickC
 
Posts: 21
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Postby coolprep25 » Mon Jul 01, 2019 6:41 am

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

Plugins.HookAddCode(listAutomations[i],List<string> procCodes,long patNum, "AutomationL.Trigger_PopUpThenDisable10Min_begin");
coolprep25
 
Posts: 6
Joined: Fri Nov 19, 2010 11:01 am

Re: Hook Request

Postby 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
PatrickC
 
Posts: 21
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Postby coolprep25 » Tue Jul 09, 2019 3:22 pm

Please change it to Method hook...Thanks!
coolprep25
 
Posts: 6
Joined: Fri Nov 19, 2010 11:01 am

Re: Hook Request

Postby 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
User avatar
cmcgehee
 
Posts: 602
Joined: Tue Aug 25, 2015 5:06 pm
Location: Salem, Oregon


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests