Hi friends. I’ve built a simple form customization with a custom button that takes data from text boxes on my form and also from a BAQ that I called in the customization and then formats the data into a string. Then I call the standard Epicor “MtlTags” form (dll) and pass this string to it. This all works great except I cannot seem to get the JobNum value passed into the string. I have the data for JobNum (which I can prove with a pop-up message), but can’t seem to find where in the string to put it. When I add it at the beginning of the string (or in the middle), it yells about not having the right data in column “PORel” (for example). So, I’m pretty sure the first 11 segments of the string are listed in the correct order below. If I put the JobNum value at the end, it completely ignores it. My resulting material tag (processed through Bartender) has all the appropriate data in the correct place except for JobNum.
Has anyone had any luck calling the MtlTags form this way? If so, what string position was the JobNum value in?
My code is posted below.
Thanks!
-Sharla
private void btnPrintTag_Click(object sender, System.EventArgs args)
{
string currentVal = getParametersForMtlTags();
ProcessCaller.LaunchForm(oTrans, “Erp.UIRpt.MtlTags”, currentVal);
}
private string getParametersForMtlTags()
{
string str = “~”;
StringBuilder builder = new StringBuilder(string.Empty);
//PartNum
builder.Append(txtPartNum.Text);
builder.Append(str);
//PartDesc
builder.Append(txtPartDesc.Text);
builder.Append(str);
//Qty
builder.Append(txtQty.Text);
builder.Append(str);
//TagTitle
builder.Append(“WIP”);
builder.Append(str);
//UOM
builder.Append(txtUOM.Text);
builder.Append(str);
//VendorNum
builder.Append(“0”);
builder.Append(str);
//PONum
builder.Append(“0”);
builder.Append(str);
//POLine
builder.Append(“0”);
builder.Append(str);
//PORel
builder.Append(“0”);
builder.Append(str);
//WhseCode
builder.Append(txtWhse.Text);
builder.Append(str);
//BinNum
builder.Append(txtBin.Text);
builder.Append(str);
return builder.ToString();
}