Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Virendra

replied

please check this code SAPUI5 Explored

Smart Table in UI5

Instead of Localresource link, you should give your service url

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question