The situation is that i have to lock the screen.
The main application consists of a menubar, a tree left and working space in center (2U pattern)
Locking the screen needs to switch to 1C showing only a login window prompt.
Relogin falls back to 2U.
Thats one situation.
Another situation is when the tree within the main application should be hidden.
Therefore the whole cell the tree resides in should be deattached.
Thats the situation.
Another problem i have is: how can i make the whole menubar inactive when user has
locked the screen and a login prompt (form) is shown within a window? Ok, a modal window.
But do you imagine a way solution to lock the menubar by script?
Yes, i meant REFRESH. Sorry
I guess you need such simple feature like views: dhtmlx.com/docs/products/dht … views.html
In this case you don’t need reattach anything, just switch views!
About menu: all the menu items can be disabled. docs.dhtmlx.com/doku.php?id=dhtm … emdisabled
Especially, if you will use views, you can attach yout disabled menu to your “disabled” view.
Ok, don’t like views as they cause a new app level but will use them.
Thats ok for me.
Beside i would be very very pleased if you had an closing answer for me respective the mentioned js error. I’m not really firm with js and dom i could learn s.th…
An detached object resides as an node below document.body.
Thats what i’ve read so far.
What would be the right way to get them back to the view?
attachObject() takes a dom selector string or an getElementBy…-object.
Whats the difference between the getElementBy…-object and the object
residing under document.body when i have an pointer (variable) linked to this node ?
Just tried views but don’t really get it done.
Needed is a global switch from 2U (workplace) to 1C (logon) - and backwards.
Views only work on cell level as i see.
When i understand right a way would be:
var screen = new dhtmlXLayoutObject(document.body, “1C”);
screen.attachMenu(); --> OK
var log = new dhtmlXLayoutObject(screen.cells("a").view("logon"), "1C");
log.attachMenu(); --> menu is attached to screen object
var wp = new dhtmlXLayoutObject(screen.cells("a").view("workplace"), "2U");
wp.attachMenu(); --> menu is attached to screen object
screen.cells(“a”).view(“workplace”).setActive(); --> works fine
As i marked there is a basic problem when attaching the menues to the correct views.