Copying and Pasting Widgets and Scripting Objects

You can copy and paste widgets together with corresponding scripts, as well as scripting objects together with functions within a single application or from one application to another.

Prerequisites

You have created an analytic application with widgets that contain scripts, or you have created scripting objects such as script variables, script objects and OData services. Now you want to use one or more of these widgets or scripting objects with the corresponding scripts in another application or even within the same application.

Context

The procedures of copying and pasting widgets and scripting objects are identical. In the procedure below, we will take widgets as an example.

Procedure

  1. Select the widget you want to reuse in the main canvas and click Copy on the short menu on the right side of the widget.
  2. Decide whether you want to use the widget/script within the same application or in another.
  3. To reuse the widget/script within the same application, proceed as follows:
    1. Choose Duplicate in the copy short menu.

      The widget is automatically added to the main canvas.

      Alternatively, you can use the copy/paste function:
      1. Choose Copy in the copy short menu.

      2. Click in the main canvas where you want to paste the widget.

      3. Click Copy and Paste in the file menu and select Paste. The widget is added to the place you clicked to insert it.

  4. If you want to reuse the widget/script in another application, proceed as follows:
    1. Choose Copy in the copy short menu.
    2. Close current application.
    3. In the same browser tab page, open the application where you want to reuse the copied widget.
      Note

      Noted that currently you cannot paste copied widgets or scripting objects to application opened in a new window or tab page.

    4. Click on the main canvas where you want to paste the widget.
    5. Click Copy and Paste in the file menu and select Paste.

      The widget is added to the place you clicked to insert it.

      Note

      Once you have clicked Copy and Paste in the file menu you can also use the keyboard shortcuts CTRL + C and CTRL + V .

Results

You can see that the assigned script has been copied from one widget to the pasted widget: the fx button next to the pasted widget name in the outline of the analytic application is already active. Click on the fx button to see the copied script.