General Discussions
Access Parent from a Parameterized Page

Do you know an expression to get the parent objects of a Parameter page

Parameter = [<??\???\????\Well-106>]

Basically I am looking for a way to use “???” on the Parameterized page to display only certain tags in a tag list widget.

Do you know an expression to get the parent objects of a Parameter page Parameter = [&lt;??\???\????\Well-106&gt;] Basically I am looking for a way to use &ldquo;???&rdquo; on the Parameterized page to display only certain tags in a tag list widget.

Have a look at the following info from out help files:

https://www.vtscada.com/help/Content/Scripting/Expressions/UseTagValues.htm

In short:

The following tools are available to help you specify tags in the hierarchy. All of these are used inside the square brackets that denote a tag name.

\ Divider between parent and child tag names.

..\ Forces VTScada to start searching one level up the hierarchy tree. Always use this when the property you want to refer to in a parent might also exist in the current tag.

Child\GrandChild To reference a value (or other property) from a child of the current tag, start with the name of the child tag, then a backslash between each subsequent child name.
*TagType

..\*TagType Ancestor Relative Path, used when selecting a parent tag of a given type.
For example, if you want a calculation tag to refer to the first parent that is a driver, use [*Driver]. (*)
If you want it to refer to the first parent that has a numeric value, you can use [..\*Numeric]. The ..\ portion is necessary to prevent the calculation tag from finding itself.

<> Absolute path. The tag name must start immediately below the root level of the tag hierarchy.

(*) Types you are likely to use most often include: *Port, *Driver, and *Numeric.

There are advantages and disadvantages to each method. For each situation, VTScada uses what is most likely to be useful in that situation. "Likely" doesn't mean "always".

Have a look at the following info from out help files: https://www.vtscada.com/help/Content/Scripting/Expressions/UseTagValues.htm In short: The following tools are available to help you specify tags in the hierarchy. All of these are used inside the square brackets that denote a tag name. **\** Divider between parent and child tag names. **..\** Forces VTScada to start searching one level up the hierarchy tree. Always use this when the property you want to refer to in a parent might also exist in the current tag. **Child\GrandChild** To reference a value (or other property) from a child of the current tag, start with the name of the child tag, then a backslash between each subsequent child name. *TagType **..\\*TagType** Ancestor Relative Path, used when selecting a parent tag of a given type. For example, if you want a calculation tag to refer to the first parent that is a driver, use [\*Driver]. (\*) If you want it to refer to the first parent that has a numeric value, you can use [..\\*Numeric]. The ..\ portion is necessary to prevent the calculation tag from finding itself. **&lt;&gt;** Absolute path. The tag name must start immediately below the root level of the tag hierarchy. (\*) Types you are likely to use most often include: \*Port, \*Driver, and \*Numeric. There are advantages and disadvantages to each method. For each situation, VTScada uses what is most likely to be useful in that situation. &quot;Likely&quot; doesn&#039;t mean &quot;always&quot;.

Trihedral Engineering Ltd.

64
1
2
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft