Skip to Content

SAP.M.TAB:LE in sapui5

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

Capture.PNG (13.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 11, 2014 at 10:16 AM

    Have you included sap.m as namespace?


    <core:View xmlns="sap.m" xmlns:core="sap.ui.core">

    -<Page>

    -<content>
    -<Table id="mytable">
    -<columns>

    </columns>

    </Table>

    </content>

    -<footer>

    </footer>

    </Page>

    </core:View>


    Regards,

    Chandra

    Add comment
    10|10000 characters needed characters exceeded