Define a semantic object for the entity set and its property using the annotation target to add smart links. For example:
XML Annotation
<Annotations Target="GWSAMPLE_BASIC.SalesOrder/SalesOrderID"> <Annotation Term="com.sap.vocabularies.Common.v1.SemanticObject" String="OVP" /> </Annotations>
ABAP CDS Annotation
annotate view SALESORDER with { @Consumption.semanticObject: 'OVP' salesorderid; }
CAP CDS Annotation
annotate GWSAMPLE_BASIC.SalesOrder with { @Common.SemanticObject : 'OVP' SalesOrderID };
Define
Text
arrangement annotation to format content on the list
area.
XML Annotation
<Annotations xmlns="http://docs.oasis-open.org/odata/ns/edm" Target="GWSAMPLE_BASIC.SalesOrder/CustomerID"> <Annotation Term="com.sap.vocabularies.Common.v1.Text" Path="Supplier_Name"/> <Annotation Term="com.sap.vocabularies.UI.v1.TextArrangement" EnumMember="com.sap.vocabularies.UI.v1.TextArrangementType/TextLast" /> </Annotation> </Annotations>
ABAP CDS Annotation
annotate view SALESORDER with { @UI.TextArrangement: #TEXT_LAST customerid; }
CAP CDS Annotation
annotate GWSAMPLE_BASIC.SalesOrder with { @Common.Text : Supplier_Name @UI.TextArrangement : #TextLast CustomerID };
In the preceding example, the text Customer
is bound to
the ContactID
property and appears as shown in the table:
Text Arrangement Type | Result |
---|---|
TextLast |
ContractID (Customer) |
TextFirst |
Customer (ContractID) |
TextOnly |
Customer |
You can add filters to list card by using the
com.sap.vocabularies.UI.v1.SelectionVariant
annotation term, or
by passing filter parameter in the URL. For more information, see Configuring Card Filters
You can sort information in the list card by using sortBy
and
sortOrder
properties in the application descriptor file. For
more information, see Configuring Sort Properties