on 02-11-2014 9:57 AM
Hi Experts,
I am trying to make one table in SAPUI5 for mobile apps. My screen will look like below:
After pressing button it will display table. I am writng XML view code. Table code is like that:
<Table id="myTable" items="{/ProductSet}">
<columns>
<Column>
<Label text="Product ID"></Label>
</Column>
<Column>
<Label text="Product Name"></Label>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<Text text="{ProductID}"></Text>
<Text text="{Name}"></Text>
</cells>
</ColumnListItem>
</items>
</Table>
But it is showing below error.
Uncaught Error: failed to load 'sap.m.Table' from resources/sap/m/Table.js: 404 - Resource could not be found!
Kindly give solution.
Any possible solution would be accepted gratefully.
Regards,
Arindam Samanta
Have you included sap.m as namespace?
<core:View xmlns="sap.m" xmlns:core="sap.ui.core">
-<Page>
</Table>
</content>
-<footer>
</Page>
</core:View>
Regards,
Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandrashekhar,
I have added the below namespaces already:
<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:l="sap.ui.layout" controllerName="plantvendorapp.PlantVendor" xmlns:html="http://www.w3.org/1999/xhtml">
in my code.
But still facing same issue.
Regards,
Arindam.
Hi Rajesh,
It is related to version of Eclipse. Explore java script resources in project explorer pane.Check sap.m is available or not. For me I think it was not. One more thing, additionally I have added one folder resources in my project. This folder contains some extra things.
Like that way,I am thinking, solved this thing.
Thanks & Regards,
Arindam.
Hi Arindam,
Thanks for reply, i solved this issue by replacing the client resource src with server resource src i.e
https://sapui5.netweaver.ondemand.com/resources/sap-ui-core.js .
Regards,
Rajesh Roy
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.