NewTab snippet example

When you click a TGML graphic that has a configured URL In Same Window snippet, another site or web application page opens in the same window.

This topic uses an example to illustrate how to configure a NewTab snippet.

Prerequisites

This example uses a graphic file that already has a binded component in the workspace. For more information on how to prepare the TGML graphic snippet examples, see TGML snippet examples prerequisites.

To create a NewTab snippet:

  1. Click Snippets pane in the bottom left corner and click on NewTab from the list of snippets.
  2. Drag and drop the NewTab snippet over the selected component in the workspace and save it.
  3. In the bottom right corner click Objects, and then expand the TGML node.
  4. Two additional properties appear: Link and Script.

  5. Update the link with the tgml file to be opened.
  6. Click File > Save As > File.
  7. Enter a file name, and then click Save.

To view the snippet behavior:

  1. In a browser, log in to PME Web Applications.
  2. Select the new TGML file from the left panel Diagram Library as shown in the following image:
  3. Click on the breaker to open a NewTab from the component.
  4. The new link is opened: