Portal Collection Methods
In this section, we discuss the Portal collection methods. The methods are discussed in alphabetical order.
Syntax
First()
Description
The First method returns the first Portal object in the Portal collection.
Parameters
None.
Returns
A Portal object.
Example
&MyPortal = &MyCollection.First();
Syntax
ItemByName(PortalName)
Description
The ItemByName method returns the Portal object with the name PortalName.
Parameters
Field or Control |
Definition |
---|---|
PortalName |
Specify the name of an existing portal within the collection. If you specify an invalid name, the object returns NULL. |
Returns
A Portal object if successful, NULL otherwise.
Example
&MyPortal = &MyPortal.Portals.ItemByName("HRMS");
Syntax
Next()
Description
The Next method returns the next Portal object in the Portal 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 Portal object.
Example
&MyPortal = &MyCollection.Next();