embeddedHandler AnotherHandlerPart{}; // declared Rich UI handler (based on part AnotherHandlerPart)
The embedding Rich UI handler can access the global widgets and public functions that are declared in an embedded Rich UI handler. The embedding handler can add widgets to its own initialUI and children arrays. Also, you can embed a handler that invokes services or otherwise handles business processing. Use one handler to present the user interface and other handlers to oversee the business processing.
handler SimpleHandler type RUIHandler { initialUI = [ embeddedHandler.itsButton ] } embeddedHandler AnotherHandlerPart{}; end
In a similar way, you can add an embedded widget to a children array.
myString STRING = embeddedHandler.itsButton.text;
At run time, the initialUI array of the embedded handler has no effect. That array is used only when the embedded handler is the basis of a Rich UI application; the array is not embedded.