
Standard List card - Standard flavour card present 3 fields, on the left side it shows the first 2 DataFields and on the right side it presents the first DataPoint if exist or the third DataField
Standard List card - Bar flavour card present 3 fields, on the top left side it shows the first data field and on the bottom, it presents the first DataPoint value in a bar and the second DataPoint on the right side of the bar if exist
<Annotation Term="com.sap.vocabularies.UI.v1.SelectionVariant" Qualifier="SP2">
<Annotation Term="com.sap.vocabularies.Common.v1.Label" String="Where Customer Name is Asia High tech" />
<Record>
<PropertyValue Property="SelectOptions">
<Collection>
<Record>
<PropertyValue Property="PropertyName" PropertyPath="CustomerName" />
<PropertyValue Property="Ranges">
<Collection>
<Record>
<PropertyValue Property="Sign" EnumMember="com.sap.vocabularies.UI.v1.SelectionRangeSignType/I" />
<PropertyValue Property="Option" EnumMember="com.sap.vocabularies.UI.v1.SelectionRangeOptionType/EQ" />
<PropertyValue Property="Low" String="SAP" />
</Record>
</Collection>
</PropertyValue>
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
<Annotation Term="UI.PresentationVariant" Qualifier="SP2">
<Annotation Term="com.sap.vocabularies.Common.v1.Label" String="Customer Name in Descending Order" />
<Record>
<PropertyValue Property="SortOrder">
<Collection>
<Record>
<PropertyValue Property="Property" PropertyPath="CustomerName" />
<PropertyValue Property="Descending" Boolean="true" />
</Record>
</Collection>
</PropertyValue>
</Record>
</Annotation>
"card01": {
"model": "GWSAMPLE_BASIC", // model to which card should be bound
"template": "sap.ovp.cards.list", // type of card i.e. list in this example.
"settings": {
"title": "{{card01_title}}", // card title
"subTitle": "Standard List card - Standard flavour", // card subtitle
"entitySet": "ProductSet", // entity to which card should be bound i.e. product in this example
"listType": "condensed", // type of card i.e. condensed / extended
"listFlavor": "standard", // card flovour i.e. standard or bar
"sortBy": "Availability_Status", // Entity property by which data should be sorted
"sortOrder": "Descending", // sorting order i.e. ascending or descending
"annotationPath": "com.sap.vocabularies.UI.v1.LineItem", // path to com.sap.vocabularies.UI.v1.LineItem annotation
"addODataSelect": true,
"stopResizing": false, // disable card resize on drag in resizable layout
"defaultSpan": {
"rows": 5, // number of rows visible
"cols": 1, // number of columns, one column is around 320Px
"showOnlyHeader": false // only card header will be visible
}
}
}
<Annotation Term="com.sap.vocabularies.UI.v1.LineItem">
<Collection>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Product ID" />
<PropertyValue Property="Value" Path="ProductID" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Product Name" />
<PropertyValue Property="Value" Path="Name" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Category" />
<PropertyValue Property="Value" Path="Category" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Supplier" />
<PropertyValue Property="Value" Path="SupplierName" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Unit Price" />
<PropertyValue Property="Value" Path="Price" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Weight" />
<PropertyValue Property="Value" Path="WeightMeasure" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Width" />
<PropertyValue Property="Value" Path="Width" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Depth" />
<PropertyValue Property="Value" Path="Depth" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataField">
<PropertyValue Property="Label" String="Height" />
<PropertyValue Property="Value" Path="Height" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataFieldForAnnotation" Qualifier="Price">
<PropertyValue Property="Label" String="Unit Price" />
<PropertyValue Property="Target" AnnotationPath="@com.sap.vocabularies.UI.v1.DataPoint#Price" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataFieldForAnnotation" Qualifier="WeightMeasure">
<PropertyValue Property="Label" String="Weight Measure" />
<PropertyValue Property="Target" AnnotationPath="@com.sap.vocabularies.UI.v1.DataPoint#WeightMeasure" />
</Record>
<Record Type="com.sap.vocabularies.UI.v1.DataFieldForAnnotation" Qualifier="Depth">
<PropertyValue Property="Label" String="Depth" />
<PropertyValue Property="Target" AnnotationPath="@com.sap.vocabularies.UI.v1.DataPoint#Depth" />
</Record>
</Collection>
</Annotation>
<Annotation Term="com.sap.vocabularies.UI.v1.DataPoint" Qualifier="Price">
<Record Type="com.sap.vocabularies.UI.v1.DataPointType">
<PropertyValue Property="Title" String="Unit Price" />
<PropertyValue Property="Description" Path="Name" />
<PropertyValue Property="Value" Path="Price" />
<PropertyValue Property="ValueFormat">
<Record Type="com.sap.vocabularies.UI.v1.NumberFormat">
<!--<PropertyValue Property="ScaleFactor" Decimal="1000"/>-->
<PropertyValue Property="NumberOfFractionalDigits" Int="1" />
</Record>
</PropertyValue>
</Record>
</Annotation>
<Annotation Term="com.sap.vocabularies.UI.v1.DataPoint" Qualifier="Stock_Availibility">
<Record Type="com.sap.vocabularies.UI.v1.DataPointType">
<PropertyValue Property="Title" String="Stock Availibility" />
<PropertyValue Property="Description" Path="Name" />
<PropertyValue Property="Value" Path="Availability_Status" />
<PropertyValue Property="Criticality" Path="StatusCriticality" />
<!--<PropertyValue Property="ValueFormat">
<Record Type="com.sap.vocabularies.UI.v1.NumberFormat">
<PropertyValue Property="ScaleFactor" Decimal="1000"/>
<PropertyValue Property="NumberOfFractionalDigits" Int="1"/>
</Record>
</PropertyValue>-->
</Record>
</Annotation>
<Annotation Term="com.sap.vocabularies.UI.v1.DataPoint" Qualifier="WeightMeasure">
<Record Type="com.sap.vocabularies.UI.v1.DataPointType">
<PropertyValue Property="Title" String="Weight" />
<PropertyValue Property="Description" Path="Name" />
<PropertyValue Property="Value" Path="WeightMeasure" />
</Record>
</Annotation>
<Annotation Term="com.sap.vocabularies.UI.v1.DataPoint" Qualifier="Depth">
<Record Type="com.sap.vocabularies.UI.v1.DataPointType">
<PropertyValue Property="Title" String="Depth" />
<PropertyValue Property="Description" Path="Name" />
<PropertyValue Property="Value" Path="Depth" />
</Record>
</Annotation>
<Annotation Term="com.sap.vocabularies.UI.v1.Importance" EnumMember="com.sap.vocabularies.UI.v1.ImportanceType/Medium" />
"card05": {
"model": "GWSAMPLE_BASIC",
"template": "sap.ovp.cards.table",
"settings": {
"title": "{{card05_title}}",
"subTitle": "{{card05_subTitle}}",
"entitySet": "ProductSet",
"addODataSelect": true,
"defaultSpan": {
"rows": 5,
"cols": 1
}
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
12 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
7 | |
6 |