Need a bit of help here. I am not able to see why the adapter is not returning any items. Here is the code along with the trace files. The good one is when I go into Serial Matching screen and click through. The idea is to do this all via code, process improvement task.
Here is my test function. I am just hard coding a ton of this to get it to work the first time.
The line that is not returning anything is
SMAdapter.ValidateAssembly(“014176-13-1”, intAssembly, out strOut1);
What am I missing to get my call from the function below to return an object vs. Epicor that is?
private void bntSerialMatch_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
bool blnReturn = false;
string strJob = string.Empty;
int intAssembly = 0;
string strSerialNum = string.Empty;
string strPartNum = string.Empty;
string strRevNum = string.Empty;
string strOut1 = string.Empty;
string strOut2 = string.Empty;
string ipType = "mtl";
SerialMatchingAdapter SMAdapter = new SerialMatchingAdapter(oTrans);
SMAdapter.BOConnect();
//blnReturn = SMAdapter.ChangeSerialNum(strSerialNum, strPartNum, strRevNum, strJob, intAssembly, out strOut1, out strOut2);
blnReturn = SMAdapter.ChangeSerialNum("003-5332357", "003-533", "", "014176-13-1", 0, out strOut1, out strOut2);
blnReturn = false;
SerialMatchingDataSet SMData = SMAdapter.SerialMatchingData;
SMData.SerialMatchHdr[0].RowMod = "U";
SMAdapter.ValidateAssembly("014176-13-1", intAssembly, out strOut1);
blnReturn = false;
// Dispose of item
SMAdapter.Dispose();
}
EpicorTraceNoReturn.xml (9.4 KB)
EpicorTraceGood.xml (18.1 KB)