Show TOC

Line ItemsLocate this document in the navigation structure

To define the line items of a table, use com.sap.vocabularies.UI.v1.LineItem as shown in the code samples below. The rendering result is as follows:

Figure 1: List Report: LineItem of Root EntitySet
Code Samples
Root entitySet in manifest.json
"pages: [
    {
	"entitySet": "SEPMRA_C_PD_Product",
	"component": {
	     "name": "sap.suite.ui.generic.template.ListReport",
	     "list": true
	},
Annotation XML: Determining Column Names
...
<Annotation Term="UI.LineItem">
    <Collection>
	<RecordType="UI.DataField">
	    <PropertyValue Property="Value" Path="Product"/>
	    <Annotation Term="UI.Importance" EnumMember="UI.ImportanceType/High"/>
	</Record>
	<RecordType="UI.DataField">
	    <PropertyValue Property="Value" Path="ProductCategory"/>
	    <Annotation Term="UI.Importance" EnumMember="UI.ImportanceType/High"/>
	</Record>
	<RecordType="UI.DataField">
	    <PropertyValue Property="Value" Path="Supplier"/>
	    <Annotation Term="UI.Importance" EnumMember="UI.ImportanceType/High"/>
	</Record>
    </Collection>
</Annotation>
More Information

For information about adding actions for line items in the list report view, see Actions in List Report View.