Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: Using top-level aggregations in an XML view

$
0
0

As far as I see, the content of sap.ui.core.mvc.View is not a default one.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.ui.core.mvc.View

 

On the other hand, the content of sap.m.Page was the default one. (default) was written here.

JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.m.Page

 

 

And i just have tried the following one.

 

<core:Viewxmlns:core="sap.ui.core"xmlns:mvc="sap.ui.core.mvc"xmlns="sap.m"

  controllerName="test.main"xmlns:html="http://www.w3.org/1999/xhtml">

  <Pagetitle="Title"content="{/buttons}">

    <Buttontext="{text}"></Button>

  </Page>

</core:View>



  onInit: function() {

  var buttonData = {"buttons" : [{"text" : "button1"},{"text" : "button2"},{"text" : "button3"}]}

  var oModel = new sap.ui.model.json.JSONModel(buttonData);

  this.getView().setModel(oModel)

  },

 

 

Then, 3 buttons appear in the page and I guess this might be what you are trying to do.

 

 

Regards,

Makoto


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>