Page 1 of 1

Creditor Chq pay emailing

PostPosted: Wed Jan 09, 2019 1:00 pm
by DannyC
Hi,

I've had the following in place at a client for a while
viewtopic.php?f=26&t=657
but they've recently upgraded to 7.2 and it's not picking up the contact email address - not erroring either, just getting the default creditor email.

I am fairly sure it's because of the line
Code: Select all
AddHandler JiwaApplication.Manager.Instance.DialogFactory.AfterDialogStart, AddressOf AfterDialogStart


but I've tried a few different syntaxes but all throw an error "Object reference not set to an instance of an object".
I've tried
Code: Select all
AddHandler Plugin.Manager.DialogFactory.AfterDialogStart, AddressOf AfterDialogStart

and
Code: Select all
AddHandler JiwaForm.Manager.DialogFactory.AfterDialogStart, AddressOf AfterDialogStart


Can you help with the correct syntax for 7.2?

Re: Creditor Chq pay emailing

PostPosted: Wed Jan 09, 2019 1:57 pm
by Mike.Sheen
Hi Danny,

I don't have a problem with that plugin using the 1st change you tried.

I've attached the updated to plugin to the forum post it came from - try that to see if it works for you or not.

Mike

Re: Creditor Chq pay emailing  Topic is solved

PostPosted: Wed Jan 09, 2019 4:51 pm
by DannyC
Found the issue.
It was with the line
Code: Select all
With JiwaApplication.Manager.Instance.Database
(for 7.0.157) when changed to
Code: Select all
With creditorChequePaymentForm.Manager.Database
it errored, but this works
Code: Select all
With JiwaDialog.Manager.Database


Thansk for the fast response.

Re: Creditor Chq pay emailing

PostPosted: Thu Jan 10, 2019 9:00 am
by Mike.Sheen
DannyC wrote:Found the issue.
It was with the line
Code: Select all
With JiwaApplication.Manager.Instance.Database
(for 7.0.157) when changed to
Code: Select all
With creditorChequePaymentForm.Manager.Database
it errored, but this works
Code: Select all
With JiwaDialog.Manager.Database


Thansk for the fast response.


Well I didn't have a hope of diagnosing that because that line is not in the plugin we supplied in that forum post!