getMethodTriggerFormName returning wrong name

Hi,

Working on 2.2 RC2, I’m experiencing the following: I have a button on a form. When the button is clicked the first time, in it’s attached method, the getMethodTriggerFormName function returns the correct formname. In that same method, a formIndialog is opened.

When the FormInDialog is closed and the same button is clicked again, the getMethodTriggerFormName function returns the name of the form that was shown in the Dialog (note: the dialog is closed!!).

This looks like a bug to me.

Now, the precise situation is difficult to explain, since I have forms in tabless pannels, which are in JSplitpanes, which in itself are in JSpitpanes again, which are on main forms… If needed, I can send you my solution…

Paul

some more investigation revealed the following:

application.output('start0: '+application.getMethodTriggerFormName())
forms[application.getMethodTriggerFormName()].controller.newRecord(true)
application.output('start: '+application.getMethodTriggerFormName())

The code above is attached to the button clicked. When run, the application output will read:

start0: products
start: AE_products

Conclusion:

forms[application.getMethodTriggerFormName()].controller.newRecord(true)

seems to alter the MethodTriggerFormName value…

As said before, when the button is pressed for the furst time, it works correctly, when pressed the second time, it doesn’t anymore.

Paul

Anything on this?

It’s screwing up my navigation logic quite a bit… :(

Paul