Good morning,
I am trying to crack this tough nut again. See previous users attempts here:
I have a custom form that I use to add operations to a part method master. The custom form works great, but I would like to add a button to open the methods tracker form. That way a user can quickly check to see that the part has been updated correctly.
As you can see in the second post linked above, I attempted to create a button on my custom form like this:
private void epiButtonC2_Click(object sender, System.EventArgs args)
{
// ** Place Event Handling Code Here **
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ContextValue = "PartNum, RevisionNum";
ProcessCaller.LaunchForm(oTrans, "UDGO3000", lfo);
}
Just like other users have said, this opens the Engineering Workbench instead of Method Tracker. @josecgomez, you said this is not a trivial form to open due to the constraints required. Can you elaborate on how one might pass the right parameters, and get the methods master form to open via a button click on a custom form?
12/3/20 EDIT: I have run several traces, and I canât seem to find the BO that is used to open a form. The action seems to be taking place within the GenXDataImpl BO. But it looks like they are all GetByID or GetByList methods. Does the trace document the call to open the method tracker form?
12/9/20 EDIT: Still no lock launching the method form, I always get the engineering workbench. I modified the title of this post a bit to be more inclusive. Perhaps someone could get me started by explaining how to open any form from a button click. Is ProcessCaller.LaunchForm the only/best way?
Thanks a bunch for your time!
Nate