Change Window Object ID

Hello,

I would like to change the ID originally set when I create a dhtmlx window after having called createWindow(id,). Though the ID is originally set on the window’s creation I need to be able to change it after I run some operations. What function can I call to change a window’s ID?

Hello,

There is not a public method to change window id.

You may try to use the following. However, not sure that it will work in future versions.
var oldId=“userWin1”;
var newId=“new_id”;
dhxWins.window(oldId).idd=newId;
dhxWins.wins[newId]=dhxWins.wins[oldId];
dhxWins.wins[oldId]=null;
delete dhxWins.wins[oldId];
dhxWins.wins[newId].firstChild.idd = newId;