Hook Request

This forum is for programmers who have questions about the source code.
Post Reply
User avatar
dcrider
Posts: 67
Joined: Sun Sep 29, 2019 11:03 am
Contact:

Hook Request

Post by 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.

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

Re: Hook Request

Post by 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

User avatar
dcrider
Posts: 67
Joined: Sun Sep 29, 2019 11:03 am
Contact:

Re: Hook Request

Post by 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.

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

Re: Hook Request

Post by 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

Post Reply