The attached code can be used to create a portal component. This component is added to a folder in the PCD as an iView, with a name such as “Assign This Role”.
While editting a portal role, right click this iView to add it to the portal role under the top level folder as a delta link. Then select the iView in the role and use the “Preview” button in the role editor to launch the iView in a new window.
Here is an example where the iView “Assign This Role” has been placed under the main role entry. Below this is a folder with the “Entry Point” set, so the iView will not be seen by the end user.
If everything works as expected, a window will appear where you can select a user or group and use the “Assign” button to assign the role to that user or group.
Here is what you might see in the popup window:
Remember to remove the iView from the role before releasing it to the user community!
Regards,
Paulo Poinha
Also, a role such as the following would not need to remove the iView…
(.. shows indentations)
Rolename (not an entry point)
.”assign me iView”
.Top level (set this as the entry point)
..Real iView1
..Real iView2
etc