getMethodTriggerFormName() with createNewFormInstance()

I hav created a form instance with the following code:

application.createNewFormInstance(“forma”, “formb”);
I have added the formb to a related tab something like as follows:

tabObj.addTab(forms[“form”], “newTab”, “”, null, null, “”, “”, frmObjXX[“relationName”].foundset);

Now when I click a button from formb (which is an instance of forma) the application.getMethodTriggerFormName() return the name of the form as forma. I want it to return as formb since we are using the form instance formb.

Dear Servoyians,

Any comments on this? I really like the method application.createNewFormInstance() which is very useful. I am using it in my methods. Just this little issue causing me some trouble.

Thanks for your help.

Did you file a case in the support system together with sample solution?

Paul

Sorry I will do it shortly.

Will be fixed in Servoy 3.5 rc3, thanks for reporting.

Has this been fixed in RC3?

It seems not fixed. Can you please confirm?

Thanks a lot.

application.getMethodTriggerFormName() will return the correct name (the new instance name)

it seems to work sometime and other times not

1> works when the triggering button has no name and the focus is on the button

2> does not work when the triggering button has no name and the focus is not on the button

3> does not work when the triggering button has a name and either the focus is on or off

Please help!

You are correct, will be fixed in next Servoy 3.5 release