Copy and Paste Widgets and Scripting Objects Across Analytic Applications

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

Prerequisites

You've created an analytic application with widgets that contain scripts, or you've created scripting objects such as script variables, script objects and OData services. Now you'd like 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 the same. In the procedure below, we'll take widgets as an example.

Procedure

  1. On the canvas select the widget you want to reuse and then Copy in its (More Actions) menu.
  2. Decide whether you want to use the widget and script within the same application or another.
    • If you want to reuse the widget and script in another application, then:
      1. Select Copy.

      2. Close the application.

      3. In the same browser tab, open the application where you want to reuse the copied widget.

        Note

        Currently, you can't paste copied widgets or scripting objects to an application opened in a new window or tab.

      4. On the canvas choose where you want to place the widget.

      5. From the toolbar select Start of the navigation pathCopy and Paste Next navigation step PasteEnd of the navigation path.

        The widget is added to the place you defined.

        Note

        You can also use the keyboard shortcuts CTRL + C and CTRL + V .

    • If you want to reuse the widget and script within the same application, select Duplicate.

      The widget is automatically added to the canvas.

      Alternatively, you can select Copy and follow the same steps as copying to another application using the paste function from the toolbar.

Results

You can see that the script has also been copied from one widget to the pasted widget as next to the pasted widget name in the Outline panel is already active. You can select it to check the copied script.