on 09-07-2015 6:24 AM
Hi all,
Is it possible to define an association path in a table column.
I have two EntitySets: ItemA(Aid Aname) and ItemB(Bid, Bname), a navigation property(m:m) ItemAtoItemB: Aid -> Bid
when I display ItemA in a sap.ui.table, I also want to display the Bname in the Association.
The table bind row like this:
oTable.bindRows({
path: "/ItemA",
properties: {
expand: "ItemAtoItemB"
}
});
The column xml view is like this(maybe several columns):
<table:Column >
<Label text=Bname" />
<table:template>
<Text text="{ItemAtoItemB[0]/Bname}" ></Text>
</table:template>
<table:Column>
But it doesn't work. Is there some way to define the association path?
The expand parameter in your definition should allow you to do this, use the collection name not the nav path
path: '/ItemA',
parameters: {expand:'ItemB'},
The path may need to be ItemB/bname.
Regards,
Jamie
SAP - Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 3 | |
| 3 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.