I’ve been digging around and can’t figure it out, so I’m crying for help… again lol.
I created a button, on the job adjustment screen, that calls a baq report form. I’d like to pass the Job Number and the selected Assembly/Operation numbers from the customized Job Adjustment screen (Laser Op List) to the Option fields on my BAQ Report (Part Tags) form.
Here’s the code I’m using on the Job Adjustment Button
public void btnmtl_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.IsModal = true;
System.Collections.Generic.Dictionary<string, string> mylist = new System.Collections.Generic.Dictionary<string, string>();
mylist.Add("JobNum", tbJobNum.ToString());
mylist.Add("Asm", cboAsmSeq.ToString());
mylist.Add("OprSeq", cboOper.ToString());
lfo.ContextValue = mylist;
ProcessCaller.LaunchForm(oTrans, "UDPARTAG", lfo);
}
I don’t have any code on the BAQ report that opens. This is where I’m getting lost.
How would I put the values from mylist into the text box option fields on the baq report screen?
All I need to pass is the Job Number, Assembly Sequence and the Operation Sequence to the corresponding controls\fields. Not sure if the code on my button is correct either. Any help is appreciated.
I actually managed to figure it out yesterday, using LaunchFormOptions on the button that opens the receiving form. I was having issues splitting my substring on the receiving form but it’s all working now. I still can’t get it work on a form load event though, I have to use a button on receiving form.
Code from Job Adjustment (sending form)
public void btnmtl_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.IsModal = false;
lfo.ValueIn = (tbJobNum.Text + "~" + cboAsmSeq.Value + "~" + cboOper.Value);
ProcessCaller.LaunchForm(oTrans, "UDPARTAG", lfo);
}