OData SmartControl Übung 2 - Aufgabe 2.4 - Annotations anpassen
Obwohl im Backend Annotations eingestellt sind, werden diese ja bisher nicht berücksichtigt. Das wollen wir jetzt ändern.
Dazu Ändern bzw. Erstetzen wir die dataSource Einstellungen. Dadurch werden die Annotations aus dem Backend gezogen.
"dataSources": {
"mainService": {
"uri": "/sap/opu/odata/sap/ZI_UI5_CUSTOMER_UI_00/",
"type": "OData",
"settings": {
"annotations": [
"ZI_UI5_CUSTOMER_UI_00_VAN",
"annotation"
],
"localUri": "localService/metadata.xml",
"odataVersion": "2.0"
}
},
"ZI_UI5_CUSTOMER_UI_00_VAN": {
"uri": "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/Annotations(TechnicalName='ZI_UI5_CUSTOMER_UI_00_VAN',Version='0001')/$value/",
"type": "ODataAnnotation",
"settings": {
"localUri": "localService/ZI_UI5_CUSTOMER_UI_00_VAN.xml"
}
},
"annotation": {
"type": "ODataAnnotation",
"uri": "annotations/annotation.xml",
"settings": {
"localUri": "annotations/annotation.xml"
}
}
}