Disable Part on the Fly at Sales Order Entry

From my experience it is better to do a BPM than a Customization as the BPM's fire at the server end (where there are more resources) and Customizations fire at the client end (so are dependent on the client machine)
Anyone know how to disable part on the fly at sales order entry?  We want only established inventory items on sales orders.
10.0.700.4


Bpm on part change method

On Mar 23, 2015 5:35 PM, "alkiluver7@... [vantage]" <vantage@yahoogroups.com> wrote:

Â
<div>
  
  
  <p>Anyone know how to disable part on the fly at sales order entry?  We want only established inventory items on sales orders.<br>10.0.700.4<br><br><p><span><br></span></p>

</div>
 


<div style="color:#fff;min-height:0;"></div>

Jose,

 

Thanks for advice. I figured BPM was a solution…just wanted to make sure I wasn’t missing a buried setup option.

 

Thank you

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, March 23, 2015 9:00 PM
To: Vantage
Subject: Re: [Vantage] Disable Part on the Fly at Sales Order Entry

 

 

Bpm on part change method

On Mar 23, 2015 5:35 PM, "alkiluver7@... [vantage]" <vantage@yahoogroups.com> wrote:

 

Anyone know how to disable part on the fly at sales order entry?  We want only established inventory items on sales orders.
10.0.700.4

 

Hi Everyone,

 

Is this possible in version 9.05.605?

 

Regards,

Sigfredo.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Tuesday, March 24, 2015 11:37 AM
To: vantage@yahoogroups.com
Subject: RE: [Vantage] Disable Part on the Fly at Sales Order Entry

 

 

I like to do mine as a BeforeFieldChange Event in a screen customization

 

                private void OrderDtl_BeforeFieldChange(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 "PartNum":

                                                                if(args.ProposedValue != "")

                                                                {

                                                                                string val = (string)args.ProposedValue;

                                                                                string whereClause = "PartNum = '" + val + "'";

                                                                                bool recSelected;

                                                                                DataSet dsSearch;

                                                                               

                                                                                if(val != string.Empty)

                                                                                {

                                                                                                dsSearch = SearchFunctions.listLookup(this.oTrans,"PartAdapter",out recSelected,false,whereClause);

                                                                                               

                                                                                                if(!recSelected)

                                                                                                {                                                                                             

                                                                                                                MessageBox.Show("Part does not exist");

                                                                                                                throw new UIException();

                                                                                                }

                                                                                }

                                                                }

                                                                break;

                                }

                }

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Monday, March 23, 2015 9:00 PM
To: Vantage
Subject: Re: [Vantage] Disable Part on the Fly at Sales Order Entry

 

 

Bpm on part change method

On Mar 23, 2015 5:35 PM, "alkiluver7@... [vantage]" <vantage@yahoogroups.com> wrote:

 

Anyone know how to disable part on the fly at sales order entry?  We want only established inventory items on sales orders.
10.0.700.4