Layout & windows - problem closing second window

Hi, I am having problems trying to close a window opened within a layout.

The first window is opened by:
win_1=dhxlayout.dhxwins.createWindow(…)

A second window is then opened from thye code included in the first window by:
win_2=parent.dhxlayout.dhxwins.createWindow(…)

Each window is made modal when opened.

I cannot get a code to work which closes win_2 from code contained in win_2.

Any help would be appreciated.

Thanks in advance

Angus

Hi
We need completed demo to reproduce the issue
docs.dhtmlx.com/doku.php?id=othe … leted_demo