Node Collection Methods
In this section, we discuss the Node collection methods. The methods are discussed in alphabetical order.
Syntax
First()
Description
The First method returns the first Node object in the Node 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
Parameter |
Description |
---|---|
NodeName |
Specify the name of an existing node in the Node collection. If you specify an invalid name, the object returned is NULL. |
Returns
A Node object if successful, NULL otherwise.
Example
&MyOldNode = &MyPortal.Nodes.ItemByName("HRMS");
Syntax
Next()
Description
The Next method returns the next Node object in the Node 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();