Window problems in 3.5

When creating new windows with 3.5 using createNewFormInstance and showFormInDialog I have come across two problems:

  1. If the underlaying form is shown in a split pane and that form is opened in a new window, the original form “dies”
  2. When trying to figure out the form name in a global method that was called from a popupMenu call using getMethodTriggerFormName, either null is passed or the name of the last opened window

I have created a sample solution and a case (88215).

1> the form doesn’t die what you do is splitpane.removeAll() don’t do that! Then you remove all internal components also (like the divider). Just remove that from your script

2> when you call a global method within a popup menu nothing is set as trigger form name. Because that information isn’t there anymore.
When you create or show the menu the right form names are shown if i doe
application.output(application.getMethodTriggerFormName()); in that method.
So if you want to have the right trigger names give them as arguments.

1> the form doesn’t die what you do is splitpane.removeAll() don’t do that!

Sorry, that was a mistake in my sample. But the problem can be demonstrated…

see: http://forum.servoy.com/viewtopic.php?t=8894