Creditor Chq pay emailing  Topic is solved

Discussions relating to plugin development, and the Jiwa API.

Creditor Chq pay emailing

Postby DannyC » Wed Jan 09, 2019 1:00 pm

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?
User avatar
DannyC
Senpai
Senpai
 
Posts: 638
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Creditor Chq pay emailing

Postby Mike.Sheen » Wed Jan 09, 2019 1:57 pm

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: Creditor Chq pay emailing  Topic is solved

Postby DannyC » Wed Jan 09, 2019 4:51 pm

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.
User avatar
DannyC
Senpai
Senpai
 
Posts: 638
Joined: Fri Mar 22, 2013 12:23 pm
Topics Solved: 30

Re: Creditor Chq pay emailing

Postby Mike.Sheen » Thu Jan 10, 2019 9:00 am

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!
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 16 guests