I made a customization on the UI that if the user manually changed this value, it would set a UD checkbox to true.
Then I had two data directives to watch for this change.
One look to see if the PrintAs value changed from N to C and if the UD checkbox was true then the data directive would leave PrintAs alone and clear the UD checkbox.
If PrintAs when from N to C and the UD checkbox was false then that meant the Epicor changed the value and the data directive would change it back to N.
Here is the code I have for the UI
private static void POHeader_AfterFieldChange(object sender, DataColumnChangeEventArgs args)
{
// ** Argument Properties and Uses **
// args.Row("[FieldName]")
// args.Column, args.ProposedValue, args.Row
// Add Event Handler Code
switch (args.Column.ColumnName)
{
case "PrintAs":
if (args.ProposedValue.ToString() == "C")
{
if (Convert.ToBoolean(edvPOHeader.dataView[0]["Approve"]) == true)
{
MessageBox.Show("Cannot change to 'Print Order As Changed' when PO is Approved");
}
else
{
edvPOHeader.dataView[0].BeginEdit();
edvPOHeader.dataView[0]["CheckBox03"] = true;
edvPOHeader.dataView[0].EndEdit();
}
}
if (args.ProposedValue.ToString() == "N")
{
if (Convert.ToBoolean(edvPOHeader.dataView[0]["CheckBox03"].ToString()))
{
edvPOHeader.dataView[0].BeginEdit();
edvPOHeader.dataView[0]["CheckBox03"] = false;
edvPOHeader.dataView[0].EndEdit();
}
}
break;
default:
break;
}
}
The syntax for the data directives are:
DD1
Condition: the ttPOHeader.PrintAs field has been changed from 'N' to 'C'
and the POHeader.CheckBox03 field of the changed row is equal to the false expression
Action: set the POHeader.PrintAs field of the changed row to the 'N' expression
DD2
Condition: the ttPOHeader.PrintAs field has been changed from 'N' to 'C'
and the POHeader.CheckBox03 field of the changed row is equal to the true expression
Action: set the POHeader.CheckBox03 field of the changed row to the false expression
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
addr: 37 Shuman Ave | Stoughton | Ma | 02072-3734
jrojas@... | www.matsinc.com
Ask us about our clean, green and beautiful matting and flooring
[cid:973781.png@6cb4fd3b.419f2b59]
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Steve
Sent: Friday, January 17, 2014 2:07 PM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Keep PO Marked as Print As New
Thanks for the response. I will try the same thing.
Steve
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of Greg Payne
Sent: Friday, January 17, 2014 9:14 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] E9: Keep PO Marked as Print As New
I added a checkbox labeled allow change. If the buyer leaves unchecked, then I have a DD that sets the print as back to new when allow change is false.
Greg
From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com] On Behalf Of Steve
Sent: Friday, January 17, 2014 9:09 AM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Keep PO Marked as Print As New
Does anyone have a fix for this?
Thanks
Steve
From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com] On Behalf Of Joe Rojas
Sent: Tuesday, December 10, 2013 1:52 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: RE: [Vantage] E9: Keep PO Marked as Print As New
I’ll give that a shot.
Thanks Arul!
From: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com> [mailto:vantage@yahoogroups.com] On Behalf Of Arul Shankar
Sent: Tuesday, December 10, 2013 2:44 PM
To: vantage@yahoogroups.com<mailto:vantage@yahoogroups.com>
Subject: Re: [Vantage] E9: Keep PO Marked as Print As New
Hi Joe,
It's changed by PO Print program and not BO. Try with Data Directive.
Regards,
Arul
On Wednesday, 11 December 2013 6:06 AM, Joe Rojas <jrojas@...<mailto:jrojas@...>> wrote:
Hello,
In 9.05.702, after you print a purchase orders, the "Print Options" flag
toggles to "Print Order As Changed" automatically.
We would like this to stay as "Print Order As New" unless manually
toggled.
I know that last part might be tricky but I'm having a hard time
figuring out what triggers this toggle.
All my tracing is not showing anything that changes this value.
Any idea where I can find where this is triggered?
I did a BO trace and added an AfterAdapter message box with no luck.
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com> Ask us about our clean, green and beautiful matting and flooring
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
[Non-text portions of this message have been removed]
Joe Rojas | Director of Information Technology | Mats Inc
dir: 781-573-0291 | cell: 781-408-9278 | fax: 781-232-5191
jrojas@...<mailto:jrojas@...> | www.matsinc.com<http://www.matsinc.com> Ask us about our clean, green and beautiful matting and flooring
This message is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
[Non-text portions of this message have been removed]
________________________________
CONFIDENTIALITY NOTICE
The information contained in this communication, including attachments, is privileged and confidential. It is intended only for the exclusive use of the addressee. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us at 727-578-6280 and immediately delete the communication.
"This (document/presentation) may contain technical data as defined in the International Traffic In Arms Regulations (ITAR) 22 CFR 120.10. Export of this material is restricted by the Arms Export Control Act (22 U.S.C. 2751 et seq.) and may not be exported to foreign persons without prior approval form the U.S. Department of State."
[Non-text portions of this message have been removed]