I'm using OpenUI5 and have an overall framework XMLView and Controller and want to display another XMLView dynamically based on certain conditions. eg
<mvc:View controllerName="openui5.view.Framework" xmlns="sap.m"
xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" >
<Page id="frameworkPage" title="{i18n>DetailTitle}" showNavButton="true"
navButtonPress="onBack">
<Button id="saveButton" text="Save" type="Accept" icon="sap-icon://save"
press="onSave" />
<Button id="nextButton" text="Next" type="Accept" icon="sap-icon://action"
press="onNext" />
<content>
<mvc:XMLView id="subView" viewName="{myViewVariable}"></mvc:XMLView>
</content>
</Page>
Is it possible to specify a value to myViewVariable dynamically at runtime?
Cheers,XML
I'm quite sure there's no possibility for something like conditionals or data binding for the specification of your content in the XML View. There are two possibilities I know of:
You might be able to do something similar with the release of 1.28. This update is going to introduce XML Templating .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.