Calling 'Open With...' How Does It Work?

“Open With…” uses the Like extended property on the field in question. For example, let’s say you add a UD field on the OrderHed table, called OrigOrderNum_c, that contains the order number of the original that this order was duplicated from. If you add a Like extended property to your UD field containing “Erp.OrderHed.OrderNum”, then Epicor knows that this field points to the primary key for an order, and is able to suggest screens that can open orders. This only works with tables with a single primary key.

What Epicor does to open the screen, is to call the screen and pass it parameters using LaunchFormOptions:

Ice.Lib.Framework.LaunchFormOptions lfo = new Ice.Lib.Framework.LaunchFormOptions();
lfo.ValueIn = // Object, contains parameters for the screen, usually separated by a tilde ~
lfo.Sender = this;
lfo.IsModal = false;
ProcessCaller.LaunchForm(oTrans, "SOMEMENUID", lfo);

Of course, this only works client-side, there is no way to open a form from server code.

2 Likes