








"sap.ovp": {
"globalFilterModel": "northwind",
"globalFilterEntityType": "Customer",
"cards": {
"zovpcustomcard_card00": {
"model": "northwind",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{zovpcustomcard_card00_title}}",
"subTitle": "{{zovpcustomcard_card00_subTitle}}",
"entitySet": "Customers",
"addODataSelect": "false",
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem"
}
}
}
}

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">
<edmx:Reference xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx"
Uri="https://webide-p998901trial.dispatcher.hanatrial.ondemand.com/destinations/northwind/V2/northwind/northwind.svc/$metadata">
<edmx:Include xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Namespace="NorthwindModel"/>
<edmx:Include xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Namespace="ODataWeb.Northwind.Model"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata-data-aggregation-ext/v4.0/cs02/vocabularies/Org.OData.Aggregation.V1.xml">
<edmx:Include Alias="Aggregation" Namespace="Org.OData.Aggregation.V1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Capabilities.V1.xml">
<edmx:Include Alias="Capabilities" Namespace="Org.OData.Capabilities.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470974/Common.xml?api=v2">
<edmx:Include Alias="Common" Namespace="com.sap.vocabularies.Common.v1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470971/Communication.xml?api=v2">
<edmx:Include Alias="vCard" Namespace="com.sap.vocabularies.Communication.v1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Core.V1.xml">
<edmx:Include Alias="Core" Namespace="Org.OData.Core.V1"/>
</edmx:Reference>
<edmx:Reference Uri="http://docs.oasis-open.org/odata/odata/v4.0/errata03/os/complete/vocabularies/Org.OData.Measures.V1.xml">
<edmx:Include Alias="CQP" Namespace="Org.OData.Measures.V1"/>
</edmx:Reference>
<edmx:Reference Uri="https://wiki.scn.sap.com/wiki/download/attachments/448470968/UI.xml?api=v2">
<edmx:Include Alias="UI" Namespace="com.sap.vocabularies.UI.v1"/>
</edmx:Reference>
<edmx:DataServices>
<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm">
<Annotations Target="NorthwindModel.Customer">
<Annotation Term="UI.SelectionFields">
<Collection>
<PropertyPath>CustomerID</PropertyPath>
<PropertyPath>CompanyName</PropertyPath>
</Collection>
</Annotation>
<Annotation Term="UI.LineItem">
<Collection>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="CustomerID"/>
</Record>
<Record Type="UI.DataField">
<PropertyValue Property="Value" Path="CompanyName"/>
</Record>
</Collection>
</Annotation>
</Annotations>
</Schema>
</edmx:DataServices>
</edmx:Edmx>



metadata: {
properties: {
"contentFragment": {
"type": "string"
},
"headerExtensionFragment": {
"type": "string"
},
"contentPosition": {
"type": "string",
"defaultValue": "Middle"
},
"footerFragment": {
"type": "string"
},
"identificationAnnotationPath": {
"type": "string",
"defaultValue": "com.sap.vocabularies.UI.v1.Identification"
},
"selectionAnnotationPath": {
"type": "string"
},
"filters": {
"type": "object"
},
"addODataSelect": {
"type": "boolean",
"defaultValue": false
}
},
version: "1.44.11",
library: "sap.ovp",
includes: [],
dependencies: {
libs: ["sap.m"],
components: []
},
config: {}
},metadata: {
properties: {
"contentFragment": {
"type": "string",
"defaultValue": "sap.ovp.cards.list.List"
},
"annotationPath": {
"type": "string",
"defaultValue": "com.sap.vocabularies.UI.v1.LineItem"
},
"footerFragment": {
"type": "string",
"defaultValue": "sap.ovp.cards.generic.CountFooter"
},
"headerExtensionFragment":{
"type": "string",
"defaultValue": "sap.ovp.cards.generic.KPIHeader"
}
},
version: "1.44.11",
library: "sap.ovp",
includes: [],
dependencies: {
libs: [ "sap.m" ],
components: []
},
config: {},
customizing: {
"sap.ui.controllerExtensions": {
"sap.ovp.cards.generic.Card": {
controllerName: "sap.ovp.cards.list.List"
}
}
}
}
<core:FragmentDefinition
xmlns:core="sap.ui.core"
xmlns="sap.m" >
<Button text="{@i18n>MyCustomCardBtn}" press="onPressCustomCard" />
</core:FragmentDefinition>(function () {
"use strict";
sap.ui.controller("zovpcustomcard.cards.mycustomcard.MyCustomCard", {
onPressCustomCard: function(oEvent) {
console.log("MyCustomCard - onPressCustomCard");
}
});
})();(function () {
"use strict";
jQuery.sap.declare("zovpcustomcard.cards.mycustomcard.Component");
jQuery.sap.require("sap.ovp.cards.generic.Component");
sap.ovp.cards.generic.Component.extend("zovpcustomcard.cards.mycustomcard.Component", {
metadata: {
properties: {
"contentFragment": {
"type": "string",
"defaultValue": "zovpcustomcard.cards.mycustomcard.MyCustomCard"
}
},
version: "1.44.10",
library: "sap.ovp",
includes: [],
dependencies: {
libs: ["sap.m"],
components: []
},
config: {},
customizing: {
"sap.ui.controllerExtensions": {
"sap.ovp.cards.generic.Card": {
controllerName: "zovpcustomcard.cards.mycustomcard.MyCustomCard"
}
}
}
}
});
})(); "sap.ovp": {
"globalFilterModel": "northwind",
"globalFilterEntityType": "Customer",
"cards": {
"zovpcustomcard_card00": {
"model": "northwind",
"template": "sap.ovp.cards.list",
"settings": {
"title": "{{zovpcustomcard_card00_title}}",
"subTitle": "{{zovpcustomcard_card00_subTitle}}",
"entitySet": "Customers",
"addODataSelect": "false",
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem"
}
},
"zovpcustomcard_card01": {
"model": "northwind",
"template": "zovpcustomcard.cards.mycustomcard",
"settings": {
"title": "{{zovpcustomcard_card01_title}}",
"subTitle": "{{zovpcustomcard_card01_subTitle}}",
"entitySet": "Customers"
}
}
}
}zovpcustomcard_card01_title=My Custom Card
zovpcustomcard_card01_subTitle=Just a simple button
MyCustomCardBtn=Click here
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 29 | |
| 21 | |
| 19 | |
| 16 | |
| 13 | |
| 12 | |
| 11 | |
| 10 | |
| 8 | |
| 8 |