Annotations

It includes all the examples of UI5 Annotations

Set default columns in UI5 Smart table

How to select the default columns for Smart table in SAP UI5

‘initiallyVisibleFields’ property of the SAP UI5 Smart table is used to select the default columns for the smart table. initiallyVisibleFields=”Id,Name” As you see above, the fields(columns) of the smart table are separated by Comma. The columns will be visible in the same order as mentioned above with customer Id as first column and Customer Name …

How to select the default columns for Smart table in SAP UI5 Read More »

How to add TextArrangement annotation in SAP UI5

The TextArrangement annotation is used to render the ID and the Corresponding Text in a particular format. The following CDS View UI Annotation is used to create the TextArrangement Annotation The above CDS View TextArrangement annotation will generate the below annotations in the metadata file. TextArrangement annotation works only together with the Text annotation. As …

How to add TextArrangement annotation in SAP UI5 Read More »

How to add UI.lineItem Annotations in SAP UI5

In the CDS View , the UI.lineItem annotations are set like below. The below line introduces the column and the corresponding records in the SAP UI5 Table @UI.lineItem:[{position:1, importance:#MEDIUM}] The above CDS View line of code will generate the below Annotations XML Code. com.sap.vocabularies.UI.v1.LineItem is used to define the line items of a table The …

How to add UI.lineItem Annotations in SAP UI5 Read More »

Dynamic field control annotations

How to use dynamic field control annotations in SAP UI5

Sap dynamic field-control annotation is used to dynamically change the behaviour of the UI.  The metadata generated is used to interpret and change the state of the UI control to visible,editable etc. The following needs to be defined in order to use field control annotations Smartfield in Smart Table <core:View xmlns:core=”sap.ui.core” controllerName=”initialView.controller” xmlns=”sap.m” xmlns:smart=”sap.ui.comp.smarttable” xmlns:customData=”http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1″ …

How to use dynamic field control annotations in SAP UI5 Read More »