sap.ui.comp.smartform.SmartForm.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.comp.smartform.SmartForm with name
sClassName and enriches it with the information contained in
oClassInfo.
oClassInfo might contain the same kind of information as described in sap.ui.core.Control.extend.
Parameters:
| {string} | sClassName | Name of the class being created |
| {object} | oClassInfo? | Object literal with information about the class |
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
| {function} | Created class / constructor function |
Returns a metadata object for class sap.ui.comp.smartform.SmartForm.
Returns:
_updateClonedElements(The)
Updates controls in the hierarchy of a cloned smart form.
Parameters:
addAggregation(Name, The)
Adds some entity oObject to the aggregation identified by sAggregationName.
Parameters:
| {string} | Name | of the aggregation |
| {object} | The | object representing a group |
addGroup(Group)
Adds a group to the aggregation named groups.
Parameters:
| {object} | Group | to be added |
Attaches event handler
fnFunction to the
checked event of this
sap.ui.comp.smartform.SmartForm.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.comp.smartform.SmartForm itself.
This event is fired after check was performed.
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smartform.SmartForm itself |
Returns:
Attaches event handler
fnFunction to the
editToggled event of this
sap.ui.comp.smartform.SmartForm.
When called, the context of the event handler (its this) will be bound to oListener if specified, otherwise it will be bound to this sap.ui.comp.smartform.SmartForm itself.
This event is fired when the editable property is toggled.
Parameters:
| {object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
| {function} | fnFunction | The function to be called when the event occurs |
| {object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.comp.smartform.SmartForm itself |
Returns:
check(Determines): string[]
Checks smart fields for client errors.
Parameters:
| {boolean} | Determines | is only visible fields in visible groups should be considered. default: true |
Returns:
| {string[]} | An array of fields with errors |
Clones the SmartForm control.
Parameters:
| {string} | sIdSuffix? | A suffix to be appended to the cloned element id |
| {string[]} | aLocalIds? | An array of local IDs within the cloned hierarchy (internally used) |
Returns:
Destroys the customToolbar in the aggregation customToolbar.
Returns:
Destroys a group from the aggregation named groups.
Returns:
Destroys the layout in the aggregation layout.
Returns:
Destroys the semanticObjectController in the aggregation semanticObjectController.
Returns:
Detaches event handler
fnFunction from the
checked event of this
sap.ui.comp.smartform.SmartForm.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction from the
editToggled event of this
sap.ui.comp.smartform.SmartForm.
The passed function and listener object must match the ones used for event registration.
Parameters:
| {function} | fnFunction | The function to be called, when the event occurs |
| {object} | oListener | Context object on which the given function had to be called |
Returns:
exit()
Cleans up the resources associated with this element and all its children.
Fires event checked to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event editToggled to attached listeners.
Parameters:
| {Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAggregation(Name): array
Returns the aggregated object(s) for the named aggregation.
Parameters:
| {string} | Name | of the aggregation |
Returns:
| {array} | Content of an aggregation |
getCheckButton(): boolean
Gets current value of property
checkButton.
Specifies whether a check button is added to the toolbar.
Default value is false.
Returns:
| {boolean} | Value of property checkButton |
Getter for aggregation customToolbar.
Returns:
getEditable(): boolean
Gets current value of property
editable.
Specifies whether the form is editable.
Default value is false.
Returns:
| {boolean} | Value of property editable |
getEditTogglable(): boolean
Gets current value of property
editTogglable.
Specifies whether the editable property is togglable via button.
Default value is false.
Returns:
| {boolean} | Value of property editTogglable |
getEntityType(): string
Gets current value of property
entityType.
CSV of entity types for which the flexibility features are available.
For more information about SAPUI5 flexibility, refer to the Developer Guide.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
Returns:
| {string} | Value of property entityType |
getExpandable(): boolean
Gets current value of property
expandable.
Specifies whether the control is expandable. Per default the control is not rendered as expanded.
Default value is false.
Returns:
| {boolean} | Value of property expandable |
getExpanded(): boolean
Gets current value of property
expanded.
If expandable, this property indicates whether the state is expanded or not. If expanded, then the toolbar (if available) and the content is rendered; if expanded is false, then only the headerText/headerToolbar is rendered.
Returns:
| {boolean} | Value of property expanded |
getFlexEnabled(): boolean
Gets current value of property
flexEnabled.
Specifies whether the form enables flexibility features, such as adding new fields.
For more information about SAPUI5 flexibility, refer to the Developer Guide.
Default value is true.
Returns:
| {boolean} | Value of property flexEnabled |
getGroups(): array
Returns the content of aggregation groups.
Returns:
getHorizontalLayoutGroupElementMinWidth(): int
Gets current value of property
horizontalLayoutGroupElementMinWidth.
Specifies the minimal size in pixels of all group elements of the form if the horizontal layout is used.
Returns:
| {int} | Value of property horizontalLayoutGroupElementMinWidth |
getIgnoredFields(): string
Gets current value of property
ignoredFields.
CSV of fields that must be ignored in the OData metadata by the SmartForm control.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
Returns:
| {string} | Value of property ignoredFields |
Gets content of aggregation
layout.
Layout settings to adjust ResponsiveGridLayout
Returns:
Gets content of aggregation
semanticObjectController.
The Semantic Object Controller allows the user to specify and overwrite functionality for semantic object navigation.
Returns:
Retrieves all the smart fields of the form.
Parameters:
| {boolean} | Determines | if only visible groups are considered; default is true |
Returns:
getTitle(): string
Gets current value of property
title.
Title of the form.
Returns:
| {string} | Value of property title |
getUseHorizontalLayout(): boolean
Gets current value of property
useHorizontalLayout.
Specifies whether the groups are rendered in a ResponsiveLayout with the label above the field. Each group is rendered in a new line.
Returns:
| {boolean} | Value of property useHorizontalLayout |
getVisibleProperties(): string[]
Returns the array of properties currently visible on the UI.
Returns:
| {string[]} | The properties currently visible |
indexOfGroup(oGroup): int
Checks for the provided sap.ui.comp.smartform.Group in the aggregation groups. and returns its index if found or -1 otherwise.
Parameters:
Returns:
| {int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a group into the aggregation named groups.
Parameters:
Returns:
Sets default span for GridData layout of group elements when used with horizontal layout.
Returns:
Removes all the groups in the aggregation named groups.
Returns:
Removes a group from the aggregation named groups.
Parameters:
Returns:
Sets a new value for property
checkButton.
Specifies whether a check button is added to the toolbar.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bCheckButton | New value for property checkButton |
Returns:
Setter for aggregation customToolbar. Default value is undefined.
Parameters:
Returns:
Setter for property editable.
Parameters:
| {boolean} | bEditable | New value for property editable. |
Returns:
Setter for property editTogglable. Default value is undefined.
Parameters:
| {boolean} | New | value for property editTogglable. |
Returns:
Sets a new value for property
entityType.
CSV of entity types for which the flexibility features are available.
For more information about SAPUI5 flexibility, refer to the Developer Guide.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sEntityType | New value for property entityType |
Returns:
Sets a new value for property
expandable.
Specifies whether the control is expandable. Per default the control is not rendered as expanded.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is false.
Parameters:
| {boolean} | bExpandable | New value for property expandable |
Returns:
Sets a new value for property
expanded.
If expandable, this property indicates whether the state is expanded or not. If expanded, then the toolbar (if available) and the content is rendered; if expanded is false, then only the headerText/headerToolbar is rendered.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {boolean} | bExpanded | New value for property expanded |
Returns:
Sets a new value for property
flexEnabled.
Specifies whether the form enables flexibility features, such as adding new fields.
For more information about SAPUI5 flexibility, refer to the Developer Guide.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is true.
Parameters:
| {boolean} | bFlexEnabled | New value for property flexEnabled |
Returns:
setFocusOnEditableControl()
Sets the focus on the first editable control.
- Since:
- 1.36.0
setHorizontalLayoutGroupElementMinWidth(New)
Setter for property horizontalLayoutGroupElementMinWidth.
Parameters:
| {int} | New | value for property horizontalLayoutGroupElementMinWidth. |
Sets a new value for property
ignoredFields.
CSV of fields that must be ignored in the OData metadata by the SmartForm control.
Note:
No validation is done. Please ensure that you do not add spaces or special characters.
When called with a value of null or undefined, the default value of the property will be restored.
Parameters:
| {string} | sIgnoredFields | New value for property ignoredFields |
Returns:
Sets the aggregated layout.
Parameters:
Returns:
Sets the aggregated semanticObjectController.
Parameters:
Returns:
Setter for property title. Default value is undefined.
Parameters:
| {string} | sTitle | new value for property title. |
Returns:
Setter for property useHorizontalLayout.
Parameters:
| {boolean} | New | value for property useHorizontalLayout. |
Returns: