InsertItem method: PermissionValue collection
Syntax
InsertItem(PermissionValueName)
Description
The InsertItem method inserts the PermissionValue object identified by PermissionValueName into the PermissionValue Collection.
This method is not executed automatically. It is executed only when the parent object is saved.
Note:
You cannot add any PermissionValue objects to a collection returned by the CascadedPermissions property. You can only add values to the collection returned by the Permissions property.
Parameters
| Parameter | Description |
|---|---|
|
PermissionValueName |
Specify the name of an existing permission list. |
Returns
A reference to the new PermissionValue object if the method executed successfully, NULL otherwise.
Example
&MyPermV = &MyPermVColl.InsertItem("ALLPNLS");
If Not &MyPermV Then
/* do error processing */
End-If;