cancel
Showing results for 
Search instead for 
Did you mean: 

SAP workzone UI Integration Component Card

DebashishDas
Active Participant
0 Kudos

Hi All,

I am trying to implement UI integration component type card in our workzone.

but i could not find any workaround to call Odata Service from controller or view through oDataModel. Somewhere in manifest.json i am doing wrong. MetaData is Ok. But the it is not calling the EntitySet.

Any help would be appreciated.

Below is my test scenario -

Manifest.json

{ "_version": "1.15.0", "sap.app": { "id": "ns.complistcard", "type": "card", "title": "Component Card", "subTitle": "", "applicationVersion": { "version": "1.0.3" }, "dataSources": { "MYService": { "uri": "{{destinations.TEST}}/sap/opu/odata/sap/<SERVICE>", "type": "OData", "settings": { "odataVersion": "2.0" } } } }, "sap.ui": { "technology": "UI5", "deviceTypes": { "desktop": true, "phone": true, "tablet": true }, "icons": { "icon": "sap-icon://bus-public-transport" } }, "sap.ui5": { "rootView": { "viewName": "ns.complistcard.View", "type": "XML", "async": true }, "models": { "myModel": { "dataSource": "MYService", "preload": true, "settings": { "useBatch": false } } }, "dependencies": { "minUI5Version": "1.114.0", "libs": { "sap.m": {} } } }, "sap.card": { "type": "Component", "designtime": "dt/configuration", "configuration": { "destinations": { "TEST": { "label": "test", "name": "TEST" } } }, "header": { "icon": { "src": "sap-icon://bus-public-transport" }, "title": "Buy your bus ticket online", "subTitle": "You’ll receive an email with a QR code. No need to print!" } }, "sap.platform.mobilecards": { "compatible": false }}

View.view.xml

<ComboBox placeholder="To City" items="{ path: 'myModel>/cities' }"> <layoutData> <FlexItemData growFactor="1" shrinkFactor="1" baseSize="0"/> </layoutData> <core:Item key="{key}" text="{text}" /> </ComboBox>

Accepted Solutions (0)

Answers (0)