2017-06-10 60 views
0

我想绑定列表项中的Odata Service Northwind V2的某些值,但输出不显示数据。我已经在清单中提供了该服务。 如果有人帮我解决这个问题,这将会很有帮助。sap ui5绑定Odata northwind

<List id="listid" items="{model>/Products}"  headerText="Products"> 
    <items> 
    <StandardListItem 
     title="{ProductName}" 
     description="{model>ProductId}" 

     type="Navigation" /> 

     </items> 
</List> 

enter code here 

清单:

"title": "{{appTitle}}", 
    "description": "{{appDescription}}", 
    "dataSources": { 
    "datamodel": { 
    "uri": "/destinations/northwind/V2/Northwind/Northwind.svc/", 
    "type": "OData", 
    "settings": { 
     "odataVersion": "2.0" 

....... "model": { "dataSource": "datamodel"

neoapp

"path": "/northwind", 
    "target": { 
    "type": "destination", 
    "name": "northwind" 
    }, 
    "description": "Northwind OData Service" 
}, 
+0

Northwind!多年没有想到这一点。 –

回答

0

在neoapp的路径需要适应你的妈妈nifest.json或其他方式,例如

.. 
    "path": "/destinations/northwind", // add /destinations 
    "target": { 
    "type": "destination", 
    "name": "northwind" 
    }, 
..