Hook Request

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

Hook Request

Postby dcrider » Mon Sep 30, 2019 7:43 am

Good morning! We need the following hooks added please:

Code: Select all
if(Plugins.HookMethod(this, "FormPayPlan.butAdj_Click_beginning", PatCur, _listAdjustments, _listPayPlanCharges, _payPlanCur))
{
     return;
}

Plugins.HookAddCode(this, "FormPayPlan.Load_end", PatCur, IsNew);

Plugins.HookAddCode(this, "FormPayPlan.butDelete_Click_end", PatCur, _payPlanCur);

Plugins.HookAddCode(this, "FormPayPlanChargeEdit.Load_end", PatCur);

Plugins.HookAddCode(this, "ContrAccount.AddAdjustmentToSelectedProcsHelper_beginning", PatCur, gridPayPlan);


Please let me know if there's any additional information I need to provide.
dcrider
 
Posts: 3
Joined: Sun Sep 29, 2019 11:03 am

Re: Hook Request

Postby PatrickC » Wed Oct 02, 2019 10:10 am

I have the hooks added as is, except for the fourth hook.

Code: Select all
Plugins.HookAddCode(this, "FormPayPlanChargeEdit.Load_end", PatCur);


PatCur isn't available in that class.

PayPlanChargeCur provides member variables PayPlanChargeCur.PatNum and PayPlanChargeCur.Guarantor which are Foreign Keys to the Patient Table.
https://www.opendental.com/OpenDentalDo ... plancharge
Patrick Carlson
Open Dental Software
http://www.opendental.com
PatrickC
 
Posts: 24
Joined: Thu Jun 06, 2019 11:37 am

Re: Hook Request

Postby dcrider » Fri Oct 04, 2019 8:35 am

That's fine. I don't actually need it, I just added it in case anyone else wanted to leverage that. You can just add that hook without PatCur.
dcrider
 
Posts: 3
Joined: Sun Sep 29, 2019 11:03 am

Re: Hook Request

Postby PatrickC » Fri Oct 04, 2019 11:29 am

Hooks have been added to beta release 19.3.9.
Patrick Carlson
Open Dental Software
http://www.opendental.com
PatrickC
 
Posts: 24
Joined: Thu Jun 06, 2019 11:37 am


Return to Developers

Who is online

Users browsing this forum: No registered users and 2 guests