on 02-20-2014 11:48 AM
Hi,
I need the full guide for the oData binding in to table for mobile apps in SAPUI5. Kindly provide full concepts for this. How to bind the oData into sap.m.table in SAPUI5?
Kindly provide the example for this topic with details. So I can able understand the whole process flow for binding the oData into sap.m.table in SAPUI5.
Thanks & Regards,
Arindam Samanta.
Hi Arindam,
It depends on your need. You can bind table using bindAggregation() as follows:
this.getView().byId("tableId").bindAggregation("items","/oDataEntitysetURL",new sap.m.ColumnListItem(){
cells : [
new sap.m.Text({
text : "{bindHere}"
})
]
})
or if your entityset URL is fixed you can directly set it in your as follows:
<Table id="idProductsTable"
inset="false"
items="{
path: '/entitySetURL'
}">
<headerToolbar>
<Toolbar>
<Label text="Products"></Label>
</Toolbar>
</headerToolbar>
<columns>
<Column
width="12em">
<Label text="Product" />
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier
title="{Name}"
text="{Product}" />
</cells>
</ColumnListItem>
</items>
</Table>
Please refer demokit for bindAggregation() detailed document with example:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Refer this example on sap.m.table JS Bin - Collaborative JavaScript Debugging</title> <link rel="icon" href="h...
you can refer Documentation/AdvancedTopics/Mobile/TableFeatures – SAPUI5 Wiki (TIP CORE User Interface) and sample example with code at sap.m Explored
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.