Allowing Workers to Update Their Own Data
PeopleSoft HCM doesn't allow users to update their own data except in the self-service internet applications. However, sometimes you might want them to update some of their own data in other components. To allow users to update their own data, you implement the PeopleCode function Allow EmplIDChg (allow emplID change). The function looks for a single Boolean parameter. When the parameter is set to true, workers can update their own data; when it is set to false, they cannot.
For example, to allow workers to change their own personal data, you enable the PeopleCode function for PERSONAL_DATA, the underlying record definition for the Personal Data component. Then workers can change their personal data, but not their job information.
To enable the Allow EmplIDChg function:
-
Open the record PERSON in PeopleSoft Application Designer.
-
Open the RowInit PeopleCode on the EMPLID field.
-
Insert new code after this line:
/************ START OF ROW INIT PEOPLECODE *************/ -
Insert a row and enter the following code after the first line (a comment) of existing code:
if %Component = Component.PERSONAL_DATA thenAllowEmplidChg(true);end-if; -
Save your changes and exit the PeopleCode page.
Workers can now update their own data using the Personal Data page.
To allow workers to update their own data in other places in PeopleSoft HCM, enter this PeopleCode function in the underlying record definition for each page where you want to allow updates.