Overview
The preferred method to create an entity is a modal dialog. The dialog control (sap.m.Dialog) interrupts the current app process so that the user can focus on the creation process. Dialogs can be triggered from any part of the product without switching of context.
Creating a new item
When to Use
Recommended
- Use it to create or add an entity of up to 8 items and its attributes.
- When you want the user to focus on the creation process.
- Keep it short and focus on the most important data.
- When possible, use prefilling of content.
- Use form field validation to make users aware of any errors.
Not Recommended
- Avoid using dialog creation of an entity when you need more than 8 fields. Use in-place editing for the rest of the data.
- Avoid using dialog creation of an entity when you need the page context. Use a flexible column layout instead.
- For more complex scenarios; use wizard instead.
See also:
Anatomy
See also:
Modal Dialog
When setting up a dialog to create an entity, consider the following properties and their recommended values. If necessary, adjust the values to best fit your scenario.
See also:
Form
When used to create an entity, the dialog contains a form. The form acts as a container for other UI elements (such as labels, input fields, checkboxes, and sliders), while structuring these into a specific layout.
With a form, you can easily lay out a list of properties and input fields. A form is structured into form containers, where each form container consists of form elements, and each form element consists of a label and an input field.
In SAPUI5, forms can be built using two different controls based on the design needs, namely form (sap.ui.layout.form.Form) and simple form (sap.ui.layout.form.SimpleForm).
See also:
Actions
The footer contains actions that allow users to save the created item or to interrupt the process. SAP has defined naming conventions for the most common core actions that are used across all applications and lines of business. See the table below.