on 08-11-2015 10:46 AM
Hi Experts,
I am trying to bind the column headers of a table to my model, but the data is not being set :
Please see JS Bin link below:
JS Bin - Collaborative JavaScript Debugging
Could you please take a look.
Regards,
Shashi
Hi Friends,
I was able to solve this by setting the path as follows:
<Table xmlns="sap.m" id="idTable1" width="auto"
items="{
path:'/Values',
sorter: {
path: 'Col1'
}
}"
>
<columns>
<Column id="idCol1">
<header>
<Text text="{path:'/ColHeader/ColH1'}" />
</header>
</Column>
<Column id="idCol2">
<header>
<Text text="{path:'/ColHeader/ColH1'}" />
</header>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text xmlns="sap.m" text="{Col1}">
</Text>
<Text xmlns="sap.m" text="{Col2}" >
</Text>
</cells>
</ColumnListItem>
</items>
</Table>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Amazing answer by jsaper_07. Please go through this link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.