In my customization I’ve got some code to open the A/R Invoice Tracker, passing a specific invoice number to be opened:
void WebView_InvoiceTracker(object sender, JSExtInvokeArgs e) {
string InvoiceNum = e.Arguments[0] as string;
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ValueIn = InvoiceNum;
ProcessCaller.LaunchForm(oTrans, “SVTK1050”, lfo);
}
This works fine if the invoice tracker isn’t open, or if it is open but isn’t currently showing an invoice. But if it is, it completely ignores the parameter I pass and doesn’t show the invoice number I have passed.
My thought was that perhaps LaunchFormOptions has a property flag which can be used to control things like whether or not an existing screen gets reused and if so whether or not to update it with the new data I am passing. However, I can’t seem to find the documentation on this class anywhere.
Can anybody tell me where I could find this documentation, or how I could get this call to work if Invoice Tracker is already open with a different invoice when it is invoked again? Thanks!