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
- On the canvas select the widget you want to reuse and then Copy in its (More Actions) menu.
-
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:
-
Select Copy.
-
Close the application.
-
In the same browser tab, open the application where you want to reuse the copied widget.
NoteCurrently, you can't paste copied widgets or scripting objects to an application opened in a new window or tab.
-
On the canvas choose where you want to place the widget.
-
From the toolbar select
.The widget is added to the place you defined.
NoteYou 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.
- If you want to reuse the widget and script in another application, then:
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.