These options allow consumers to control various aspects of the generated UI, including dialog titles, button text and behavior, and other presentation-related settings.
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.
Form Position (index)
By default, the Entry classes place the generated form as the first element within the dialog or embedded component. This position can be adjusted using the index configuration, allowing consumers to determine where the form should appear in relation to other generated content.
This feature is especially useful when multiple navigation properties are configured, each producing its own table or form inside the same container. Additionally, ui5.antares.pro.v2.metadata.NavigationProperty instances can also define an index to control the placement of their generated content.
Current index of the generated form; supports negative values to control its position in the dialog or component.
Method
Parameter
Type
Mandatory
Description
setIndex(newValue)
newValue
number
✅ Yes
Sets the index for the generated form; supports negative values for relative positioning.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 910111213141516171819202122232425
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the classimportNavigationPropertyfrom"ui5/antares/pro/v2/metadata/NavigationProperty";// Import the class/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",index:1// Position the form after the navigation property content});entry.addNavigationProperty(newNavigationProperty({name:"toSupplier",index:0// Position the navigation property content before the main form}));}}
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry",// Import the class"ui5/antares/pro/v2/metadata/NavigationProperty"// Import the class],(Controller,CreateEntry,NavigationProperty)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",index:1// Position the form after the navigation property content});entry.addNavigationProperty(newNavigationProperty({name:"toSupplier",index:0// Position the navigation property content before the main form}));}});});
Dialog Title (dialogTitle)
In dialog mode, the Entry classes generate a dialog with a default title composed of localized text and the associated EntitySet name. This default title ensures clarity for end users, but consumers can easily override it using the dialogTitle configuration.
This feature is especially useful when the default title is too generic or when you want to provide a more descriptive, user-friendly title in the dialog header.
Returns the current dialog title. If not explicitly set, returns the generated default title.
Method
Parameter
Type
Mandatory
Description
setDialogTitle(newValue)
newValue
string
✅ Yes
Sets a custom title for the dialog, replacing the generated default title.
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",dialogTitle:"Create New Product"// Override the default dialog title});}}
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",dialogTitle:"Create New Product"// Override the default dialog title});}});});
Form Title (formTitle)
The formTitle property defines the title displayed above the generated form. By default, no title is shown. This property allows you to set a clear and descriptive heading, improving the visual structure and user experience of the form.
A custom formTitle is particularly helpful when forms are part of a larger UI and need to convey context or purpose to the end user.
Returns the current form title. If no title is set, returns undefined.
Method
Parameter
Type
Mandatory
Description
setFormTitle(newValue)
newValue
string
✅ Yes
Sets a custom title for the 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",formTitle:"Product Details"// Set a custom form title});}}
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",formTitle:"Product Details"// Set a custom form title});}});});
Form Type (formType)
Determines the type of form generated for the specified EntitySet.
By default, the library creates a SmartForm, which is metadata-driven and supports advanced features such as smart fields, annotations, and automatic OData integration.
This property allows consumers to switch to a SimpleForm when a simpler, less metadata-heavy layout is desired. SimpleForm offers more control over layout and content, making it suitable for custom UI scenarios or when metadata is incomplete.
Returns the current form type. If not explicitly set, returns the default value "SmartForm".
Method
Parameter
Type
Mandatory
Description
setFormType(newValue)
newValue
FormType
✅ Yes
Sets the type of form to generate. Must be either "SmartForm" or "SimpleForm".
FormType Values
Value
Description
SmartForm
Generates a SmartForm using OData metadata to automatically create fields, labels, and layout.
SimpleForm
Generates a SimpleForm, offering more flexibility for custom layouts and manual field creation.
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",formType:"SimpleForm"// Switch to SimpleForm});}}
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",formType:"SimpleForm"// Switch to SimpleForm});}});});
Submit Button Text (submitButtonText)
Text displayed on the submit button within the generated dialog. A default localized text is provided by the library based on the current language. This property allows the consumer to override the button text.
Note
The submit button is not generated when using the DisplayEntry class. Additionally, the library will not generate any button in the Component Mode regardless of which Entry class is utilized.
Returns the current submit button text. If not explicitly set, returns the default localized text.
Method
Parameter
Type
Mandatory
Description
setSubmitButtonText(newValue)
newValue
string
✅ Yes
Sets a custom text for the submit button, overriding the default localized text.
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",submitButtonText:"Send Data"// Override the submit button text});}}
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",submitButtonText:"Send Data"// Override the submit button text});}});});
Submit Button Type (submitButtonType)
Button Type of the submit button in the generated dialog. Defaults to Emphasized. This property allows the consumer to configure a different button type.
Note
The submit button is not generated when using the DisplayEntry class. Additionally, the library will not generate any button in the Component Mode regardless of which Entry class is utilized.
Sets a custom button type for the submit button, overriding the default Emphasized type.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 91011121314151617181920
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the classimportButtonTypefrom"sap/m/ButtonType";// Import the ButtonType enum/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",submitButtonType:ButtonType.Reject// Override the submit button type});}}
Main.controller.js
1 2 3 4 5 6 7 8 9101112131415161718192021
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry",// Import the class"sap/m/ButtonType"// Import the ButtonType enum],(Controller,CreateEntry,ButtonType)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",submitButtonType:ButtonType.Reject// Override the submit button type});}});});
Close Button Text (closeButtonText)
Text displayed on the close button within the generated dialog. A default localized text is provided by the library based on the current language. This property allows the consumer to override the button text.
Note
The library will not generate any button in the Component Mode regardless of which Entry class is utilized.
Returns the current close button text. If not explicitly set, returns the default localized text.
Method
Parameter
Type
Mandatory
Description
setCloseButtonText(newValue)
newValue
string
✅ Yes
Sets a custom text for the close button, overriding the default localized text.
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",closeButtonText:"Cancel"// Override the close button text});}}
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",closeButtonText:"Cancel"// Override the close button text});}});});
Close Button Type (closeButtonType)
Button Type of the close button in the generated dialog. Defaults to Default. This property allows the consumer to configure a different button type.
Note
The library will not generate any button in the Component Mode regardless of which Entry class is utilized.
Sets a custom button type for the close button, overriding the default Default type.
Example
Main.controller.ts
1 2 3 4 5 6 7 8 91011121314151617181920
importControllerfrom"sap/ui/core/mvc/Controller";importCreateEntryfrom"ui5/antares/pro/v2/entry/CreateEntry";// Import the classimportButtonTypefrom"sap/m/ButtonType";// Import the ButtonType enum/** * @namespace your.apps.namespace */exportdefaultclassMainextendsController{publiconInit(){}publicasynconCreateProduct(){constentry=newCreateEntry({controller:this,entitySet:"Products",closeButtonType:ButtonType.Reject// Override the close button type});}}
Main.controller.js
1 2 3 4 5 6 7 8 9101112131415161718192021
sap.ui.define(["sap/ui/core/mvc/Controller","ui5/antares/pro/v2/entry/CreateEntry",// Import the class"sap/m/ButtonType"// Import the ButtonType enum],(Controller,CreateEntry,ButtonType)=>{"use strict";returnController.extend("your.apps.namespace.Main",{onInit:function(){},onCreateProduct:asyncfunction(){constentry=newCreateEntry({controller:this,entitySet:"Products",closeButtonType:ButtonType.Reject// Override the close button type});}});});