Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

createroute

  • Last UpdatedJan 18, 2024
  • 2 minute read

The createroute statement can be used inside Command or Coroutine to create a route between two fields at runtime.

All values assigned to the createroute statement are passed as strings and not resolved by default. If the value has to be resolved before being assigned to the field, you need to surround it with a force resolve tag ([R ]).

Platform support

This node is fully supported on XR-Windows, XR-Portable Windows, XR-Portable iOS, XR-Portable Android, and XR-Portable WASM platforms.

XR-WIN

XR-P-WIN

XR-P-IOS

XR-P-AND

XR-P-WASM

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Full support

Condition

Differently to most of the other statements, the condition is the condition assigned to the route and does not refer to the conditional execution of the statement.

Code example

This is a code example for the createroute statement.

<createnode name="apm_discover_btn_group[@%idx%]" nodeType="Button2D" order="99" position="[R15 #125+[@%idx#]" size="569 80" visible="true" mode="toggle" />

<createroute from="[Rapm_discover_btn_group[@%idx%].mouseDown]" to="apm_discover.selectedGroup" value="[R[@%idx%]]" condition="!@apm_discover.isScrolling@" />

Fields

These are the fields for createroute statement.

Fields

Type

Use

Default value

Description

condition

SSTRING

Optional

Not set

Allows route to happen only when specific conditions are met.

from

SSTRING

Mandatory

Not set

The source field name.

to

SSTRING

Mandatory

Not set

The target field name.

value

SSTRING

Optional

Not set

Forces the route to copy a value different from the source one into the target field.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in