These options allow consumers to control various aspects of the generated UI, including rendering order, visibilities for properties of Edm.Guid type.
Some configuration options may not be applicable to all Entry classes. Such limitations are clearly mentioned in the description of each feature.
Configurations can be applied in two ways:
In the constructor of the Entry class.
Via getter/setter methods through an instance of an Entry class.
Note
All examples in this section use the CreateEntry class for demonstration purposes. The same configuration applies to other Entry classes as long as the specific feature is supported.
Key Enforcement (keyEnforcementEnabled)
When keyEnforcementEnabled is set to true (default), all key properties defined in the OData metadata are:
Always included in the generated form.
Automatically positioned at the top of the form.
This ensures that essential identifying fields are always visible and prioritized for the end user.
If you want to exclude key properties or change their position, you must explicitly set this flag to false.
Returns whether key enforcement is enabled. Defaults to true.
Method
Parameter
Type
Mandatory
Description
setKeyEnforcementEnabled(newValue)
newValue
boolean
✅ Yes
Enables or disables the enforcement of key properties in the generated form.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 910111213141516171819
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the class/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",keyEnforcementEnabled:false// Allow excluding or reordering key properties});}}
Main.controller.js
1 2 3 4 5 6 7 8 91011121314151617181920
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry"// Import the class],(Controller,CreateEntry)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",keyEnforcementEnabled:false// Allow excluding or reordering key properties});}});});
Property Order (propertyOrder)
By default, property controls (e.g., Input, DatePicker) are rendered in the order they appear in the OData metadata.
The propertyOrder feature allows you to define a custom display sequence by listing property names in the desired order.
The first property in the array will be rendered first in the form, followed by the next, and so on.
Note
If keyEnforcementEnabled is set to true, key properties are always displayed first, regardless of their position in this array.
Returns the current property order. If not explicitly set, returns an empty array.
Method
Parameter
Type
Mandatory
Description
setPropertyOrder(newValue)
newValue
string[]
✅ Yes
Sets a custom property order for rendering fields in the generated form.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 91011121314151617181920212223
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the class/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",propertyOrder:["ProductID",// First field"ProductName",// Second field"Category"// Third field]});}}
Main.controller.js
1 2 3 4 5 6 7 8 9101112131415161718192021222324
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry"// Import the class],(Controller,CreateEntry)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",propertyOrder:["ProductID",// First field"ProductName",// Second field"Category"// Third field]});}});});
Guid Visibility Mode (guidVisibilityMode)
Controls the visibility of properties with Edm.Guid type in the generated form.
Supported modes:
All – Displays all Edm.Guid properties.
Key – Displays only key Edm.Guid properties.
NonKey – Displays only non-key Edm.Guid properties.
None – Hides all Edm.Guid properties.
Note
If keyEnforcementEnabled is set to true, all key properties (including Edm.Guid) are always displayed first in the form, even if guidVisibilityMode is set to hide them.
Returns the current visibility mode for Edm.Guid properties.
Method
Parameter
Type
Mandatory
Description
setGuidVisibilityMode(newValue)
newValue
GuidMode
✅ Yes
Sets the visibility mode for Edm.Guid properties.
GuidMode Values
Value
Description
All
Show all properties with type Edm.Guid, regardless of whether they are key or non-key fields.
Key
Show only those Edm.Guid properties that are keys in the entity.
NonKey
Show only Edm.Guid properties that are not keys (e.g., foreign keys, reference IDs).
None
Hide allEdm.Guid properties from the generated form.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 910111213141516171819
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the class/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",guidVisibilityMode:"All"});}}
Main.controller.js
1 2 3 4 5 6 7 8 91011121314151617181920
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry"// Import the class],(Controller,CreateEntry)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",guidVisibilityMode:"All"});}});});
Property Settings (propertySettings)
Entity-specific configuration for individual properties belonging to the specified EntitySet. This array allows consumers to define property-level behaviors, such as marking fields as required, readonly, or excluded from the generated form or table.
Consumer-defined label for the property. If not provided, the library tries to derive it in the following order:
1. Metadata labels (if metadataLabelEnabled is true in the Entry class). 2. ResourceModel (i18n) labels based on naming conventions. 3. Generated from the property’s naming style (camelCase, CONSTANT_CASE).
required
boolean
❌ No
Marks the property as required.
readonly
boolean
❌ No
Marks the property as read-only.
excluded
boolean
❌ No
Excludes the property from rendering in the generated UI.