I am trying to call the OData service with Smart Table. First I created a simple table and with that I am can see the data in table. Then I added SmartTable on the same page but It is showing no data. Even no columns are being created. What could be the reason ?
<mvc:View controllerName="com.siemens.hc.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m" xmlns:smartField="sap.ui.comp.smartfield" xmlns:smartFilterBar="sap.ui.comp.smartfilterbar"
xmlns:smartTable="sap.ui.comp.smarttable">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<Table id="idProductsTable" inset="false" items="{/SafetyUpdateSet}">
<headerToolbar>
<Toolbar>
<Title text="Product" level="H2"/>
</Toolbar>
</headerToolbar>
<columns>
<Column width="12em">
<Text text="Product"/>
</Column>
</columns>
<items>
<ColumnListItem>
<cells>
<ObjectIdentifier title="{Notification}"/>
</cells>
</ColumnListItem>
</items>
</Table>
<smartTable:SmartTable id="smartTable_ResponsiveTable" tableType="ResponsiveTable" editable="false" entitySet="SafetyUpdateSet"
useVariantManagement="false" useTablePersonalisation="false" header="Notification" showRowCount="true" useExportToExcel="false"
enableAutoBinding="true">
</smartTable:SmartTable>
</content>
</Page>
</pages>
</App>
</mvc:View>
I have created the destination in neo-app.json file and created the model in Manifest.json file.
Regards, Mayank