embeddedHandler AnotherHandlerPart{}; // declared Rich UI handler
(based on part AnotherHandlerPart)
The embedding Rich UI handler can access the global widgets and public functions declared in an embedded Rich UI handler. In particular, 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. A reasonable practice is to use one handler to present the UI and to use other handlers to oversee the backend, business processing.
handler SimpleHandler type RUIHandler { initialUI = [ embeddedHandler.itsButton ] }
embeddedHandler AnotherHandlerPart{};
end
Similarly, you can add an embedded widget to a children array.
myString STRING = embeddedHandler.itsButton.text;
The initialUI array of the embedded handler has no effect at run time. That array is used only when the embedded handler is the basis of a Rich UI application and is not embedded at all.