on 04-12-2016 10:52 AM
Hi Experts,
I need to create one sap.m Table dynamically.Row,Column & Data all should bind dynamically.I need to add all the properties - sort, filter, grouping.
We need to create it in xml view only rather than using javascript from controller.
We already achieved the same thing using javascript - Dynamic columns for a Table | SCN.
We need solution in xml only.
Can you please help me.
Thanks,
Patralekha
Hi,
What have you tried so far and where are you getting stuck up?
Regards,
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi we have tried this till now...
<Table id="idtable"
type="Active"
itemPress="getdetails"
columns="{/header}"
items="{/root}">
<columns>
<Column
width="12em">
<Label text="{hdr}" />
</Column>
</columns>
<items>
<ColumnListItem type="Active" id="colitems">
<cells>
<Text text="{Name}"/>
<Text text="{psno}"/>
<Text text="{grade}"/>
</cells>
</ColumnListItem>
</items>
</Table>
Here is my JSON:
{
"root":[
{
"Name":"Athul","psno":"10618171","grade":"SET"
},
{
"Name":"Vineeth","psno":"10618030","grade":"SET"
},
{
"Name":"Sonal","psno":"10618038","grade":"SET"
}
],
"header":[
{"hdr":"Name"},{"hdr":"psno"},{"hdr":"grade"}
]
}
Now I want my row values also to be dynamic.In my code I have already fixed my row values according to the number of columns I have.
Regards
Athul R
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.