If you open form from X++ in different company you expect that it will work in the company you stated?
static void startForm(Args _args)
args = new Args();
formRun = ClassFactory::formRunClassOnClient(args);
TestForm is simple form without datasource and only one button which displays infolog with current company:
Bad thing is that it will not work as expected and if you change the window to the form which is in other company and then switch back and press the button to diplsay current company you surprisingly will not see usmf, instead there will be company of another form.
Other forms like CustTable will work as expected. And the problem is in datasource. All form without datasource will not work as expected.
There is property on form Design which is called
which should "Set the default company each time the form is activated", but unfortunately it does not work for forms without datasource.