We upgraded from 10.2.200.27 to 10.2.400.5 this weekend. This is about our only outstanding issue.
This customization opens up a trimmed down version of customer tracker so that order entry can verify customer notes. This opens up from order entry after a customer is selected.
We now receive an error message when the form opens. The form still opens and the record is retrieved but . . ?
Any ideas?
I appreciate the help.
Form Load of the customer tracker form:
private void CustomerTrackerForm_Load(object sender, EventArgs args)
{
CustomerAdapter adCustomer = new CustomerAdapter(this.oTrans);
//also need to add a reference for this
//Erp.Adapters.Customer
string inCustNum;
adCustomer.BOConnect();
if (CustomerTrackerForm.LaunchFormOptions != null)
{
if (CustomerTrackerForm.LaunchFormOptions.ValueIn != null)
{
inCustNum = Convert.ToString(CustomerTrackerForm.LaunchFormOptions.ValueIn);
if (oTrans.CustomerAdapter.GetByCustID(inCustNum,true) == true)
{
SearchOptions searchOpts = new SearchOptions(SearchMode.AutoSearch);
bool blnMorePages = true;
searchOpts.DataSetMode = DataSetMode.RowsDataSet;
searchOpts.PreLoadSearchFilter = "CustID = '" + inCustNum + "'";
oTrans.InvokeSearch(searchOpts);
oTrans.CustomerAdapter.GetRows(searchOpts, out blnMorePages);
searchOpts = null;
}
}
}
adCustomer.Dispose();
}
Order Entry Form:
private void epiTextBoxC2_ValueChanged(object sender, System.EventArgs args)
{
/**/
string cust = epiTextBoxC2.Text;
EpiTextBox soTextBox =(EpiTextBox)csm.GetNativeControlReference("4fceeeec-518c-4256-932e-34a4c1a584ee");
if (cust.Length != 0 & soTextBox.Text == "0" & cust!="1005596")
{
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ValueIn=cust;
lfo.IsModal = true;
ProcessCaller.LaunchForm(oTrans, "UDCustTr",lfo);
}
}