The view is declared this way:
<mvc:View controllerName="com.sap.my.app.controller.Edit"
xmlns:l="sap.ui.layout"
xmlns:mvc="sap.ui.core.mvc"
xmlns:bpa="com.sap.my.app.control"
xmlns:core="sap.ui.core"
xmlns="sap.m"
height="100%">
<mvc:XMLView viewName="com.sap.my.app.view.AttachmentPreview"/>
</mvc:View>
How can I access the model defined in the Edit
controller within the AttachmentPrevie
controller?
The AttachmentPreview
will be reused inside multiple other views. Not only in Edit
view.