Syntax: AllowEmplIdChg (is_allowed)
By default, the Component Processor does not allow an user to make any changes to a record if a record contains an EMPLID key field and its value matches the value of the user’s EMPLID.
(I.e.) By default Employee cannot make changes his/her own data even if he/she is in correct history mode, however he can make changes to other Employee record. For example, if the EMPLID is KU0007 and he is searching for his data in search page once he entered into the component. If he tries to change his data he will get the following message when he tries to save
You are not allowed to update your own data. (15, 13)
You attempted to save a record containing an Emplid field whose value matched the value defined in your operator profile. The system does not allow you to update your own data. Contact another authorized user to update your data, or contact your system administrator to enable this edit to be overridden
You attempted to save a record containing an Emplid field whose value matched the value defined in your operator profile. The system does not allow you to update your own data. Contact another authorized user to update your data, or contact your system administrator to enable this edit to be overridden
However other employee can make changes to KU0007’s data. This is PeopleSoft Inbuilt function.
In some situations, though, such changes are warranted. For example, you would want employees to be able to change information about themselves when entering time sheet data.
This AllowEmplIdChg function enables the user to change records whose key matches the user’s own EMPLID, or prevents the user from changing these records.
The function takes a single Boolean parameter
- When the parameter set to True allows the employee to update their own data.
- When the parameter is set to False, the employee is prevented from updating this data.
Conditions for AllowEmplIdChg
- EMPLID should be in that record.
- EMPLID should be key in that record.
- EMPLID should be set as Required in record field properties.
- In the component buffer the value of the EMPLID matches to the value of the user’s EMPLID.