How to: Copy and Paste Module Definitions

 

Estimated Reading Time:  2 minutes

Overview

When you want to copy an existing application module, you don't need to do it manually. UDesigner lets you copy the JSON JSON (JavaScript Object Notation) is an open standard file and data interchange format. Unqork uses JSON for submission (record) data. module definition of any module to your computer's clipboard A place on your operating system that stores recently copied content. The clipboard only stores one item at a time.. Then, you can paste the module definition into another module of your choosing. It's important to note that pasting a module definition into a module containing components doesn't delete the existing configuration.

Alternatively, you can use UDesigner's Application view to duplicate a module. Duplicated modules copy the JSON module definition, Module-Type, and more.

Copying a Module

To copy a module:

1. In Application view, open the configured module you want to copy.
2. Click the ··· (ellipsis) button.
3. Select Copy Module Defintion.
4. The module definition copies to your clipboard A place on your operating system that stores recently copied content. The clipboard only stores one item at a time.. A pop-up displays at the bottom of the screen informing you the definition has been copied.

Pasting a Module

To paste a module:

1. Open the module where you want to paste the copied module definition.
2. Click the ··· (ellipsis) button.
3. Select Paste Module Definition. A pop-up modal A modal is a window that appears on top of the content you are currently viewing. displays.

4. In the Module Definition field, press the Ctrl + V keys (PC) or Cmd + V keys (Mac) on your keyboard to paste the module definition from your clipboard A place on your operating system that stores recently copied content. The clipboard only stores one item at a time. .
5. Click Paste.

When you paste a module to another module's canvas, the components display at the top of the canvas. To paste the module above a specific component on the canvas:

1. Open the module where you want to paste the copied module definition.
2. Hover over the component where you want the copied module to display above.

The ··· button displays above the component.

3. Click ···. An options menu displays below the button.
4. Click Paste Above.

The JSON definition pastes into the module and the components display on the canvas.

IMPORTANT  If components do not display, you might not have a valid JSON definition in your clipboard.

NOTE  You might need to approve access to the browser's clipboard data. A browser modal displays asking you to Approve or Deny the request.

Duplicating a Module

Duplicating a module creates a copy of the module definition and allows the Creator to modify addition fields such as Module-Type, Description, and Tags.

To duplicate a module from the Homepage or Workspaces view:

1. Open an application containing the module you want to duplicate.
2. In the Application Element list, navigate to a module and click the ··· (ellipsis) button.
3. Click Duplicate.

A static image displaying the Duplicate Element modal.

4. Update the Module Name and Module Path fields to a unique value.
5. (Optional) Update the Module Description, Module Type, and Tag fields as needed.
6. Click Duplicate. The modal closes and the Application Element list updates with the duplicated module.

Resources