I have a panel/window which contains a tree view and an Embedded Module and a button - based on the selection in the tree view I load panels into the Embedded Module - and pressing said button I want to call a public function within the Scope Lib of the panel which is loaded into the Embedded Module.
Is it possible to do this or is the Embedded Module not made for this use case?
So far I tried getShape()/getShapes() on the Embedded Module but I could only ever get shapes which are inside the panel which is loaded into the Embedded Module, not the panel itself.
I was unlucky regardless, because even though I declared public functions within a shape in its Initialize scope, I still wasn't able to call it.
Additionally I switch the panels in and out using RootPanelOnModule() which doesn't need a shape name, which makes using getShape(s) a bit more difficult.
The most obvious thing to do is to just try and call the shape directly on button press, which won't work as well, as was expected.
The help doesn't really provide any in-depth information about Embedded Modules and searching the forum yielded no relevant posts to me, so here I am.
Has anyone done this before?
Do I just have to use addSymbol() instead and throw away the Embedded Module?
Any help is appreciated!
Kind regards,
Sebastian
