Sometimes you would like to hide fields from some users and not others. The only way that I know of is by creating a new role and assigns it to users who should not be seeing the fields.
This is how to go about doing that:
There is a delivered PeopleSoft function that checks if a user has a specific role.
| Title | Under | Posted on |
|---|---|---|
| Inserting records | PeopleSoft Technical | 07/28/2010 - 11:03am |
| WEBLIB_PT_NAV.ISCRIPT1.FieldFormula.IScript_PT_NAV_PAGELET error... | PeopleSoft Technical | 07/27/2010 - 2:02pm |
| Basic language | PeopleSoft Technical | 07/27/2010 - 7:12am |
| Rowlevel security from app designer | PeopleSoft Technical | 07/27/2010 - 5:15am |
Comments
The first line of code should read
&role_found = %Roles.Find("Your_Role");
Thanks.
you can do like this
if IsUserInRole("rolename") then
record.field.visible = false;
end-if;
Post new comment