RemoteNode Collection Methods

In this section, we discuss the RemoteNode collection methods. The methods are discussed in alphabetical order.

Syntax

First()

Description

The First method returns the first Node object in the RemoteNode collection.

Parameters

None.

Returns

A Node object.

Example

&MyNode = &MyCollection.First();

Syntax

ItemByName(NodeName)

Description

The ItemByName method returns the Node object with the name specified by NodeName.

Parameters

Field or Control

Definition

NodeName

Specify the name of an existing node in the RemoteNode collection. If you specify an invalid name, the object returned is NULL.

Returns

A Node object if successful, NULL otherwise.

Example

&MyOldNode = &MyPortal.RemoteNodes.ItemByName("HRMS");

Syntax

Next()

Description

The Next method returns the next Node object in the RemoteNode collection. You can use this method only after you have used the First method: otherwise the system doesn’t know where to start.

Parameters

None.

Returns

A Node object.

Example

&MyNode = &MyCollection.Next();