In the Invoice (Customer) window, there is no option to "Create Lines from" available in order to create an invoice from a SO.
you can get isSOTrx from record as below
isSOTrx = (Boolean) gridTab.getField("isSoTrx").getValue()
I haven't described well my issue.
I create a new CreateFrom panel which will be used on AR invoice (based on new specific tables) and i placed it in a plugin.
And sometimes, it is the 'core' which is displayed. And sometimes it is the one from the plugin.
That's why i wanted to add a field on AD_Tab to precise which panel has to be displayed, according to the tab.
In your case, i guess you will modify current CreateFromInvoice so that it can handle PO and SO, right ? So that enhancement should be useless.
And just for information (i haven't tested) : is it possible to override WCreateFromInvoiceUI in a plugin ?
Nicolas, maybe a button linked to a form can do the trick?
It is not good idea to use jira for this kind of discussion. Better we discuss this on google group.
As I understand you want to show form from core for certain window while your extension from some new window defined on same table, And you want to make this configurable from tab.
One option is to use toolbar features on window,Tab and Field as suggested by carlos.
If toolbar do not work for you then you can add logic in extension form to either load core form panel or your new one based on condition.