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