Page 1 of 1

Purchase Order - Email Options

PostPosted: Wed Dec 02, 2015 2:51 pm
by neil.interactit
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.

Re: Purchase Order - Email Options

PostPosted: Wed Dec 02, 2015 4:13 pm
by Scott.Pearce
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?

Re: Purchase Order - Email Options

PostPosted: Wed Dec 02, 2015 4:37 pm
by Scott.Pearce
Oh dear. This is for version 6 - forget my previous post. I'll set up an v6 environment and get back to you.

Re: Purchase Order - Email Options

PostPosted: Thu Dec 03, 2015 8:03 am
by Scott.Pearce
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!

Re: Purchase Order - Email Options

PostPosted: Tue Dec 08, 2015 11:33 am
by neil.interactit
All good. Many thanks.