Skip to Content

How to bind data to a smart table from ODATA

Hi All

I am trying to get column headers and the values into a smart table. In SAP UI5 explored, i was able to find out that the following piece of code is doing all the job:

<smartTable:SmartTable id="LineItemsSmartTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar" tableType="Table" useExportToExcel="true" useVariantManagement="false" useTablePersonalisation="true" header="Line Items" showRowCount="true" persistencyKey="SmartTableAnalytical_Explored" enableAutoBinding="true">

Can you please explain how this code is doing it all? Am i missing something? If yes, please share the code.

Metadata also does not have any entitySet named "LineItemsSet". Please help

Thanks in advance


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 27, 2015 at 06:30 AM

    please check this code SAPUI5 Explored

    Smart Table in UI5

    Instead of Localresource link, you should give your service url

    Add comment
    10|10000 characters needed characters exceeded