cancel
Showing results for 
Search instead for 
Did you mean: 

Using OData in a Ui-Integration Card (Component)

t_kr
Discoverer
0 Kudos

Hello Experts, 

I want to Consume OData from Backend in a Component-Ui Card. 
I tried to read the whole O-Data Service, but I alwasy get the Error 404. 

I have attached my manifest.json. 
Is someone faceing this issue ? 

 

{
	"_version": "1.52.0",
	"sap.app": {
		"id": "my.component.sample.requestData",
		"type": "card",
		"i18n": "i18n/i18n.properties",
		"title": "Sample of a Component Content",
		"subTitle": "Sample of a Component Content",
		"applicationVersion": {
			"version": "1.0.0"
		},
        "dataSources": {
            "processChainDevDS": {
                "uri": "{{destinations.tss057}}/sap/opu/odata/sap/ZSF_SFLIGHT_MD_ODATA_SRV",
                "type": "OData",
                "settings": {
                    "odataVersion": "2.0"
                }
            }
        },

		"shortTitle": "A short title for this Card",
		"info": "Additional information about this Card",
		"description": "A long description for this Card",
		"tags": {
			"keywords": [
				"Component",
				"Card",
				"Sample"
			]
		}
	},
	"sap.ui": {
		"technology": "UI5",
		"icons": {
			"icon": "sap-icon://technical-object"
		},
		"deviceTypes": {
			"desktop": true,
			"phone": true,
			"tablet": true
		}
	},
	"sap.ui5": {
		"rootView": {
			"viewName": "my.component.sample.requestData.View",
			"type": "XML",
			"async": true,
			"id": "app"
		},
		"dependencies": {
			"minUI5Version": "1.116",
			"libs": {
				"sap.m": {},
				"sap.ui.core": {}
			}
		},
		"contentDensities": {
			"compact": true,
			"cozy": true
		},
		"models": {
			"products": {
				"type": "sap.ui.model.json.JSONModel"
			},
			"oDataModel": {
				"dataSource": "processChainDevDS",
                "settings": {
                    "defaultBindingMode": "TwoWay",
                    "defaultCountMode": "InlineRepeat",
                    "useBatch": true
                }
			}
		}
		
	},
	"sap.card": {
		"type": "Component",
		"configuration": {
			"destinations": {
				"tss057": {
					"name": "tss057",
					"label": "T57",
					"defaultUrl": "/sap/opu/odata/sap/ZSF_SFLIGHT_MD_ODATA_SRV"
					
				}
			}
		},
		"header": {
			"title": "Top {parameters>/productsCount/value} Products"
		},
		"content": {
			"minHeight": "10rem"
		}
	}
}

 




Thanks in Advance 
Thomas

Accepted Solutions (0)

Answers (1)

Answers (1)

manuelgf
Explorer
0 Kudos

Hi Thomas,

 

Have you found any solution for this? I'm having the same issue. Tnks

Manuel