Skip to Content
0
Mar 11, 2015 at 09:00 AM

problem of POC like icon-explorer

18 Views

Get error with this

<content>

<List

id="empList"

headerText="Employee"

items="{/emplist}"><!-- type="Active" press="pressGroupListItem"

iconInset="true"-->

<items>

<StandardListItem

title="{name}"

number="{id}"

type="Active"

icon="sap-icon://company-view">

<attributes>

<ObjectAttribute text="{jobName}" />

<ObjectAttribute text="{telephoneNumber}" />

</attributes>

</StandardListItem>

</items>

</List>

</content>

  1. Uncaught Error: Cannot add direct child without default aggregation defined for control sap.m.StandardListItem

I'm working on a POC like icon-explorer, But simple two view: master and detail in SplitApp.

And master view & detail view bind to same model,

when click one item of master view, send new data request, and refresh iviews.

model bind detail view in Detail.controller.js:

onInit : function() {

var om = sap.ui.getCore.getModel();

this.getView().setModel(om);

},

I find all the demos are using static json data, can't find a example.

Developing UI5 with xml view & MVC, it is a bit difficult job than writing basic JavaScript...

Please help.

Thanks