GetActiveWindow not returning current active window form

Hi All,

I am working with NG Desktop client application. I observed a problem in NG Client with application.getActiveWindow().controller.getName() that it is not returning current active window controller name at time of ‘onResize’ event and after form is loaded/shown completely, it then returns correct form name.

However, in Smart Client it returns correct form name i.e. current active window controller name even at ‘onResize’ event, this seems to be change in functionality.

Any help is highly appreciated.

Attached a demo solution to reproduce the scenario. Run the same solution in Smart Client and NG Client, after generating popup you will notice difference in ‘Parent Form (At Resize event): <form_name>’.

Steps to run demo:

  1. Click ‘Generate Popup’ on main form
  2. Popup is displayed with a nested form with boundary. This nested form will be displaying the Parent Form fetched at ‘onResize’ event.
  3. To check Parent form after nested form is loaded/shown, click ‘Fetch Parent Form Name’. (In NG Client, incorrect form name is displayed at ‘onResize’ event, while correct form is fetched after form is loaded.)

Regards

demo_two.servoy (6.54 KB)

What are you trying to achieve in the onResize event?

I’ve often used it to center elements and keep them there.
In NG this can be done way better using css.

In actual scenario, we have child forms ‘FormA’ & ‘FormB’ which are displayed in two different screens.

-One is having 2 split panels(having FormA as top split panel, and FormB as bottom split panel), so rearranging divider in either top split panel or bottom split panel, will rearrange divider in other split panel. So, the form resizing only allowed here.

-Second is popup, which does not require rearranging as it is only split panel there and no need to rearrange divider for other.

Regards