Then I have an 'embedded' bob file named 'my_embedded'..
..
10 st = ScriptUtil.findWidgetByName(widget, "ss") ## this widget is in my harpsgroup.bob
11 pvlabel = ScriptUtil.findWidgetByName(widget, prex) ## this widget is in my harpsgroup.bob
12 e = ScriptUtil.findWidgetByName(widget, "my_embedded") ## this widget is in my harpsmain.bob
..
My problem comes at line 12 where it somehow cannot get to "my_embedded" widget.
In fact only widgets in 'harpsgroup.bob' is accessible .....
---------
I'm still unclear about your display hierarchy.
To what widget is the script attached?
A script attached to any widget within a display should be able to locate other widgets within that display.
But you cannot peek inside embedded displays.
So if display "main" embeds "sub", then scripts within main can locate other scripts within main, and scripts within sub can locate widgets within sub.
But scripts within main cannot locate widgets within sub, nor can scripts invoked by widgets in sub locate widgets in the "main" display.
This is a change from BOY: The display builder treats the content of embedded displays as black boxes. We assume that you cannot predict what will be inside an embedded display, because the file name of the embedded widget could change at runtime, or the
actual display file that's embedded can be updated over time. So we don't allow access to the widgets inside an embedded display.
Thanks,
-Kay