Accessing SubForm objects from MainForm and vice versa, global objects

2 views
Skip to first unread message

Udo Weik

unread,
Mar 12, 2014, 6:54:09 PM3/12/14
to node-...@googlegroups.com
Hello,

I'm able to share variables via the global object between the
two forms. And I can e. g. access the menu of the SubForm with
dlg = gui.Window.open( 'SubForm.html' ) ;
var submenu = dlg.menu.items[0].label ;
from the MainForm or that (its own) menu from the SubForm with
win.menu.items[0].label
But I can't change e. g. the label.

When I add an empty object from the MainForm to the SubForm like
dlg.TEST = {} ;
I can't access that from the SubForm
win.TEST

Any hints?


Many thanks and greetings
Udo
Reply all
Reply to author
Forward
0 new messages