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 | ||||
---|---|---|---|---|
|
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 | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Create or Select Tags in the
ProjectSolution
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:
1.
Tag.Integer1
Integer -- Integer DataType -- ArraySimple
of 10Tag
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 | ||
---|---|---|
| ||
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.
Paste Tags in the Draw
areaarea
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.
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.
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.
Paste Tags
towith 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 | ||
---|---|---|
| ||
Custom Type “Motor” and tag array Motors for motor type. |
Below is the “Motor” symbol using the motor custom type:
Copying Motors tag to a page will past all motors symbols created and configured with the right tag:
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.
In this section:
In this section...Page Tree | ||||
---|---|---|---|---|
|