AVEVANet
- Last UpdatedFeb 19, 2025
- 4 minute read
The AVEVANet node is specifically designed to enable XR to connect to AVEVA NET™ and AVEVA™ Asset Information Management (AIM) instances to retrieve asset-related data.
Platform support
This node is fully supported on XR-Windows, XR-Portable iOS, and XR-Portable Android platforms.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
Full support |
Full support |
No support |
|
|
|
|
|
|
Managing the connection
The connectionMode field enables you to specify the connection mode:
-
anonymous. There is no need to supply user credentials. This approach can be used where the user is already connected and logged in to AVEVA NET dashboard. Can be used when connecting to AVEVA NET only.
-
login. The user must supply a username and password to connect. Can be used when connecting to AVEVA NET only.
-
token. This mode is reserved uniquely for connecting to AIM and requires the application to be started with cloud licensing (LAAS). On portable platforms (iOS and Android), the AVEVA Connect startup sequence needs to be enabled to fetch the tokens from the AVEVA Connect Servers.
The uri and portalID fields are used to define the instance to connect with. The role must be set to one of the roles available to the user that connects.
Use connect and disconnect to establish and close the connection with the server. The connectionState field can be used to verify connection success.
Note: Any change made to any of the following fields: -connectionMode, -username, -password, -role, -uri, -portalID will automatically force disconnection.
Managing queries
You can execute a query only when the connection is up and running.
Note: To successfully execute a query on a saved search, that shared search MUST have been installed on the AVEVA NET or AIM instance.
Perform a query
-
Specify the savedSearch to be use for the query.
-
Specify the context in order to restrict the search.
-
Use the query field to pass parameters to the saved search and trigger its execution.
Inspect a query
-
Inspect the queryError field to check the query execution state.
The value of the queryError field changes to undefined when the query starts. The value then changes to error or ok, depending on query success or failure.
When the queryError value reads ok, you can read the results of the query in the queryResult field.
Note: The queryResult table is made up of 21 columns and requires at least basic AVEVA NET or AIM knowledge to be able to interpret its content.
Getting document addresses
When the connection is up, it is possible to retrieve a document ID from the AVEVA NET instance.
By using the getDocumentAddress, the node returns the http address for retrieving the document. This address can be used, for example, to open a link inside the DocumentViewer.
Code example
This is a code example for the AVEVANet node.
<AVEVANet name="anetClient" uri="http://inhyzse3d02:16000/" portalId="GCD32" role="Administrator" />
Node fields
These are the fields for the AVEVANet node. Only the node-specific fields are indicated, not fields obtained by inheritance.
Field inheritance: NodeBase > AVEVANet
|
Field |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
connect |
sevent |
Optional |
Empty |
Used to initiate the connection. |
|
connectionError |
sstring |
Read only |
Internally calculated |
Used to check for errors when connecting to the AVEVA NET or AIM Server. |
|
connectionMode |
senum |
Optional |
anonymous |
Specifies the authentication mode to be used for connecting. The options are anonymous and login for AVEVA NET and token for AIM. |
|
connectionState |
senum |
Read Only |
Internally calculated |
Used to check the connection state. The possible values are not_connected, connected, and error. |
|
context |
sstring |
Optional |
Empty |
Used to restrict the query search to a subset of the server data. |
|
disconnect |
sevent |
Optional |
Empty |
Used to force disconnection. |
|
getDocumentAddress |
sfunction |
Optional |
Empty |
Makes request to the connected instance for the URL of the specified document. |
|
password |
sstring |
Optional |
Empty |
The user password when connectionMode is set to login. |
|
portalID |
sstring |
Optional |
Empty |
Specifies a portal that is configured on the corresponding AVEVA NET or AIM instance. |
|
query |
sstring |
Optional |
Empty |
Used to perform a query and to pass the asset tag name on which to execute the query. |
|
queryError |
senum |
Read Only |
Internally calculated |
Shows the current state of the query. The possible values are undefined, ok, or error. |
|
queryResult |
sstring |
Read Only |
Internally calculated |
When the query is completed, the result displays in this field. |
|
role |
sstring |
Mandatory |
Default user |
Represents the role with whom the user gets connected. Must match one among the available roles. |
|
savedSearch |
sstring |
Optional |
Application Service Tag Search |
Must be set to a value that matches a saved search installed on the AVEVA NET or AIM instance. |
|
uri |
sstring |
Mandatory |
Empty |
The AVEVA NET or AIM instance address. |
|
username |
sstring |
Optional |
Empty |
The username when connectionMode is set to login. |