Home > Contents > Index >
rolelist:add
Add a role to the list.
Syntax
<rolelist:add name="rolelist_object_name
" role="role_id
" />Parameters
name (required)
- Name of the role list object.
role (required)
- Role id to add.
Error Numbers
The possible values of
errno
include:
Value Description -100 Asset Exception -12001 An expected table or iList field was not foundExample
The following code adds a role to the role list, then verifies whether or not the role was added correctly.
<!-- Add Approver role --> <rolelist:add name="roleobject" role="Approver"/> <!-- Check for Approver role --> <rolelist.HASrole name="roleobject" role="Approver" varname="roleexists2"/> <IF COND="Variables.roleexists2=true"> <THEN> <BR/><BR/> rolelist:add: `Approver' Role is present <CSVAR name="Variables.roleexists2"/> <BR/><BR/> </THEN> <ELSE> <BR/> rolelist:add: Approver role is NOT present. Value returned is <CSVAR name="Variables.roleexists2"/> <BR/><BR/> </ELSE> </IF>
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.