Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Overview

This page is a guide on using the "Paste Tags" feature on displays. The feature allows for direct integration of solution tags into displays, streamlining the configuration process and enhancing data visualization. Additionally, we discuss how to copy and paste tags onto symbols, emphasizing that when copying and pasting a tag from a custom type that shares the same name as a symbol, the symbol will be pasted with the tag already configured.

On this page:

Table of Contents
maxLevel3
stylenone


Pasting Tags to Displays

This section covers the process of creating or selecting tags, copying them, and pasting them directly into the display area. It also explains how to automatically format simple tags, arrays, and custom types, as well as how to paste tags onto symbols with matching names, ensuring accurate and seamless tag integration within the display environment. Topics include tag creation, copying and pasting tags, formatting different tag types, and handling symbol integration

Easy Heading Macro
headingIndent40
navigationTitleOn this page
selectorh2,h3
wrapNavigationTexttrue
navigationExpandOptiondisable-expand-collapse
This page has information about how to paste tags to displays.


Create or Select Tags in the

Project

Solution

The first step to use this feature is to create a Tag in your ProjectSolution. This tag can be a simple one, an array or Custom Type.

To better understand the feature, three examples are shown below. The tags created are as follows:

Code Block
1.
 Tag.
Integer1
Integer -- Integer DataType -- Array 
Simple
of 10 
Tag
elements.

2.
 Tag.
Digital1
Digital -- Digital DataType -- 
Array of 10 elements.
Simple Tag.
3.
 Tag.
CustomType
Custom -- Custom DataType
 -- 
Sub-Elements: Element1 (Integer), Element2 (Integer.)


Expand
titleUnified Namespace: Tags and Data Templates

Image Added

Image Removed


Copy Selected Tags to Clipboard

Now that our tags were created, we can start adding them to the display. Right-click the Integer1 Test Tag, and select Copy Selected Row option.

Image RemovedImage Added


Paste Tags in the Draw

area 

area

Go to the Draw Environment, at the desired Page. Right-click the display and select Paste. You should see the Tag being inserted into the display, already formatted with a TextOutput, for label, and a TextBox for displaying value.

Image Removed

 Image Added


The same logic can be applied for array Tags. Copy the Tag row from Edit Unified Namespace → Tags → Objects related to Digital1 Integer array. All elements should appear formatted when Pasted into a page.

Image RemovedImage Added


Lastly, for a Custom Type Tag, Copy the Parent element from Edit Unified Namespace → Tags → Objects  and Paste it into your page. The child elements will be automatically formatted at the Display.Image Removed


Copy and

Paste Tags

to

with Symbols

When there is a symbol with the same name of custom type, the copy and paste of a tag from this custom type to a page will not paste the tag to a Text Output; it will paste the symbol with the tag already configured.

Info
titleExample

Custom Type “Motor” and tag array Motors for motor type.

Image Removed

Below is the “Motor” symbol using the motor custom type:

Image Removed

Copying Motors tag to a page will past all motors symbols created and configured with the right tag:

Image Removed

It is possible to execute this operation with custom type inside of custom type with several different custom type at same time.

pasting Tags, instead of the TextIO property, it's possible to define a Symbol, that will be inserted in the displays, with the biding to the selected tag.

That configuration is described at the page Smart Symbols.


Using Assets in Displays

In Portable/HTML5 displays, Assets cannot be treated as dynamic objects due to limitations in NetStandard 2.0. To use them them in in Graphical Components, you must first convert them to the required data type (e.g., integer, string, digital, DataTable) using methods such as TK.ToInt, TK.ToString, etc. 

In this example, we converted the Asset to an integer using TK.ToInT to determine if the  object will be visible.

In WPF-only displays, which are based on .NET Framework 4.8, Asset calls return values that can be handled dynamically, without the need to explicitly define the data type.

Image Added


In this section:

In this section...

Page Tree
root@parent
spacesV10