hello everyone,
investigating on this issue since fiew hours, I need your help (did not find a similar issue).
here is an xml sample:
<users>
<useractive="true">
<reference/>
<name>
<prefix/>
<first>first</first>
<middle/>
<last>last</last>
</name>
<location></location>
<identifier>
<domain>mydomain</domain>
<login>flast</login>
</identifier>
<email>
<address>sample@email.com</address>
<type>text</type>
</email>
<roles>
<rolename="A"/>
<rolename="B"/>
<rolename="C"/>
<rolename="D"/>
<rolename="E"/>
<rolename="F"/>
<rolename="G"/>
</roles>
<groups>
<groupname="A1"/>
<groupname="A2"/>
</groups>
</user>
</users>
After having set the data in the table:
oModel.setData(data);
oTable.setModel(oModel);
oTable.bindRows("/user");
I am able to bind correctly properties like first name & last name in my table... but I am not able to do a bindAggregate on roles !
When I do this, only the first role is returned everytime for each row.
With the example above,
It displays, : first as firstname, last as lastname, & only role A instead of displaying all roles from A to G as above in the xml.
Here is the bindAggregation:
oTable.addColumn( new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Roles"}),
template: new sap.ui.commons.ListBox({
"items": {
path: "roles",
template: new sap.ui.core.ListItem({text: "{role/@name}",})
}
}) ,
}));
Where is my misunderstanding ? or how should I deal for having all roles displayed correctly in the listbox of this column ?
No proposal ?
Really thank's in advance to each of you for your coming help,
Best Regards