Purchase Order - Email Options

Discussions relating to breakout scripting, .NET and COM programming with Jiwa objects.

Purchase Order - Email Options

Postby neil.interactit » Wed Dec 02, 2015 2:51 pm

Hi guys,

I have a requirement to preset the subject line on the "Email Options" form, when emailing a purchase order. I have tried various plugins handling JiwaEmailTemplatesUI.MainForm, JiwaEmailTemplatesUI.MainForm.EmailTemplate, JiwaApplication.JiwaEmailUI.MainForm, JiwaApplication.JiwaEmailUI.MainForm.EmailObject, etc ... but have not been able to intercept successfully.

Can you point me in the right direction?

Cheers,
Neil.
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6

Re: Purchase Order - Email Options

Postby Scott.Pearce » Wed Dec 02, 2015 4:13 pm

Purchase order emailing is controlled by a plugin called "Purchase Order Custom Email" by default. Can you perhaps just copy that plugin, disable the original, enable the copy, and then modify it?
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Purchase Order - Email Options

Postby Scott.Pearce » Wed Dec 02, 2015 4:37 pm

Oh dear. This is for version 6 - forget my previous post. I'll set up an v6 environment and get back to you.
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Purchase Order - Email Options

Postby Scott.Pearce » Thu Dec 03, 2015 8:03 am

OK, so you should enter your code at breakout point "Form Email Purchase Order Clicked". I used this code to set the subject:

Code: Select all
Subject = "Test"


The "Subject" variable is passed in to the breakout point by reference, so can be manipulated.

Now I've re-read your original post I'm confused. Are we talking v6 or v7? The post is in the v6 section but you are referring to v7 objects.

In any case, now you have answers for both versions!
Scott Pearce
Senior Analyst/Programmer
Jiwa Financials
User avatar
Scott.Pearce
Senpai
Senpai
 
Posts: 742
Joined: Tue Feb 12, 2008 11:27 am
Location: New South Wales, Australia
Topics Solved: 221

Re: Purchase Order - Email Options

Postby neil.interactit » Tue Dec 08, 2015 11:33 am

All good. Many thanks.
neil.interactit
Kohai
Kohai
 
Posts: 227
Joined: Wed Dec 03, 2014 2:36 pm
Topics Solved: 6


Return to Technical / Programming

Who is online

Users browsing this forum: No registered users and 3 guests