Copy
Intro
The copy pattern allows you to copy an object and then edit the newly created object.
Usage
Use the copy pattern if you want to copy an object and then edit the newly created object. If you want to reference to an existing object, use the create with reference pattern instead.
Layout
There are 4 use cases for copying an object:
- The object to be copied is part of the current table.
- The object to be copied is not part of the current table (for example, because it has been approved).
- The object to be copied is a template.
- The whole object is to be copied, for example, from the details view in a master-detail app (split-screen layout).
For use cases 1–3, place the Copy function (a transparent button) in the relevant toolbar (for example, above the form or table control).
For use case 4, place the Copy function in the footer toolbar below the details of the object. For more information about the interaction, read about the master list or check out the Manage Products reference app.
Behavior and Interaction
This section describes the interaction flow of the copy pattern for different use cases.
1) The copied object is part of the current table.
Copied object is part of a table
Details page after copying
2 + 3) The copied object is not part of the current table or is to be copied from a template.
Action sheet after clicking the Copy button
Dialog appears after the user chooses a copy action
Details page after copying
4) The copied object is located in the details view in a master detail app (split-screen layout)
Master-detail interface, with the Copy button in the footer toolbar
Master-detail interface in edit mode after copying
Responsiveness
Copy pattern adapted to smartphone
Copy pattern adapted to tablet
Copy pattern adapted to desktop
Resources
Want to dive deeper? Follow the links below to find out more about related controls, the SAPUI5 implementation, and the visual design.
Elements and Controls
- Dialog (guidelines)
- Create Page (guidelines)
- Master List (guidelines)
Implementation
- Dialog (SAPUI5 samples)
Visual Design
- Dialog (visual design specification)