You can edit a single object or multiple objects using a dialog in the list report page.
For general information about enabling Mass Edit, see Enabling Editing Using a Dialog (Mass Edit).
In SAP Fiori elements for OData V2, using the mass edit dialog is currently only available in the list report.
When you select multiple objects and use the mass edit dialog, the values entered are applied to all objects.
When multiEdit
is enabled, by default the dialog displays editable fields corresponding to columns that are currently displayed in the table. You can change the columns with table personalization. To enable the editing of multiple objects, set the multiEdit
property to true
in the manifest.json
file.
"sap.ui.generic.app": { "_version": "1.1.0", "pages": [ { "entitySet": "STTA_C_SO_SalesOrder_ND", "component": { "name": "sap.suite.ui.generic.template.ListReport", "list": true, "settings": { "tableSettings": { "multiEdit": { "enabled" : true } }
When MultiEdit
is enabled for an application, the option to edit appears in the table toolbar. You can select multiple records from the table and click Edit to launch the mass edit dialog, as shown in the following screenshot:
You can also provide a FieldGroup
annotation with a specific qualifier in the manifest.json
file to identify the MultiEdit
fields. The DataFields
in the FieldGroup
annotation are displayed as the MultiEdit
fields. We recommend this approach to improve the performance of your app.
To use FieldGroup
, add its annotation path in the manifest.json
file:
"sap.ui.generic.app": { "_version": "1.1.0", "pages": [ { "entitySet": "STTA_C_SO_SalesOrder_ND", "component": { "name": "sap.suite.ui.generic.template.ListReport", "list": true, "settings": { "tableSettings": { "multiEdit": { "enabled" : true, "annotationPath" : "com.sap.vocabularies.UI.v1.FieldGroup#MultiEdit" } }
Annotation for the
FieldGroup
:<Annotation Term="UI.FieldGroup" Qualifier="MultiEdit"> <Record> <PropertyValue Property="Data"> <Collection> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="NetAmount"/> </Record> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="TaxAmount"/> </Record> <Record Type="UI.DataField"> <PropertyValue Property="Value" Path="LifecycleStatus"/> </Record> </Collection> </PropertyValue> </Record> </Annotation>
This feature is only applicable to responsive tables and grid tables.
This feature is not supported for smart multi-input fields, custom columns, and
DataFieldForAnnotations
.Only the properties of the entity sets are supported for mass edit.
The request for each selected instance is sent in a separate changeset within a single batch. If an error occurs for one or more selected instances when the update is executed, the other selected instances are still executed.
For key user adaptation, you can choose to hide certain fields from being displayed. You can do this to restrict the fields from being added to the mass edit dialog. You can restrict the fields by adding an ignoredFields
list in the manifest, as shown in the following example:
Input for
ignoredFields
key must have comma separated valuesmanifest.json: "tableSettings": { "multiEdit": { "enabled": true, "annotationPath": "com.sap.vocabularies.UI.v1.FieldGroup#MultiEdit", "ignoredFields":"NetAmount,TaxAmount" // comma separated values } }
Currently, the default title for the edit dialog is Edit(X)
. You can override the default title of the MultiEdit
dialog by adding the MULTI_EDIT_DIALOG_TITLE
key in the i18n file of the list report.
Related Information
Replacing the Standard Save Functionality in Mass Edit Dialog
Enabling Editing Using a Dialog (Mass Edit)