Skip to Content
avatar image
Former Member

How to bind data from backend to Smart Table ?

Hi,

I am using a Smart table and i need to bind data to it.

Following is the code in controller.js :

var fittingTable = this.getView().byId("fittingTable");

fittingTable.bindElement("/Manage_QuarterSet('"+qtrid+"')?$expand=fiittingSet");

Following is the code from view.xml:

<smartTable:SmartTable id="fittingTable" entitySet="LineItemsSet" smartFilterId="smartFilterBar" tableType="Table" useExportToExcel="true" header="Items"

                          useVariantManagement="false" useTablePersonalisation="true"

                          showRowCount="true" persistencyKey="SmartTableAnalytical_Explored"

                          enableAutoBinding="true">

                       

                   </smartTable:SmartTable>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 20, 2015 at 08:13 AM

    Hi Vaibhav,

    The best example is available here, SAPUI5 Explored

    Instead of Localresource link, you should give your service url

    Thanks,

    Karthik A

    Add comment
    10|10000 characters needed characters exceeded