Hello All,
I’m on E10.2.200.11 and I’m trying to intercept a price change on the SalesOrderEntry form and can’t for the life of me figure out how to grab it (UI Customization). I need to display a message to the user if a condition is met.
In a trace, I can see the Erp.Proxy.BO.SalesOrderImpl.ChangeUnitPrice method being called, but I can’t seem to access it via either the Before or After adapter method test.
this.oTrans_ordAdapter = ((EpiBaseAdapter)(this.csm.TransAdaptersHT["oTrans_ordAdapter"]));
this.oTrans_ordAdapter.AfterAdapterMethod += new AfterAdapterMethod(this.oTrans_ordAdapter_AfterAdapterMethod);
this.OrderHed_Column.ColumnChanged += new DataColumnChangeEventHandler(this.OrderHed_AfterFieldChange);
this.oTrans_ordAdapter.BeforeAdapterMethod += new BeforeAdapterMethod(this.oTrans_ordAdapter_BeforeAdapterMethod);
// End Wizard Added Variable Initialization
I then follow with BOTH an ‘after’ and a ‘before’ method test. Here’s the ‘After’:
private void oTrans_ordAdapter_AfterAdapterMethod(object sender, AfterAdapterMethodArgs args)
{
EpiMessageBox.Show(args.MethodName);
switch (args.MethodName)
{
case "ChangeUnitPrice":
MessageBox.Show("Unit price changed");
break;
The case is never reached, and the EpiMessageBox never displays ‘ChangedUnitPrice’. I know that the action works - as the number changes on the form and the ‘qty available’ check (core Epicor) occurs. I can’t trap those either, othws I’d use that.
BUT… the trace does show a method being executed…
I just can’t figure it out.
If anyone has a thought on this, I’d certainly appreciate e-hearing it.