We would like to add the employee's name to the header of some Employee self-service pages (eg., pay stub detail). Please contact me if you know how to do this.
In bwpkhstb.P_DispPayStubDtl change twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl'); to
twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl', header_disp1 => F_GetSpridenID (pidm) ||' '|| f_format_name(pidm, 'FMIL'));
If you don't want the ID to display remove the F_GetSpridenID(global_pidm)
There are different formatting options you can pass into f_format_name:
LF30 - Last name, first name for 30 characters
L30 - Last name for 30 characters
FL30 - First name, last name for 30 characters
FL - Last name, first name
FMIL - First name, middle initial, last name
FML - First name, middle name, last name
LFMI - Last name, first name, middle initial
We ended up changing twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl'); to
twbkwbis.p_opendoc ('bwpkhstb.P_DispPayStubDtl');
Not sure if we loss functionality or style elsewhere by switching procedures, but it added Spriden ID, Name, Date and Time to the header as it appears on the Student SSB pages.
Employee Name
In bwpkhstb.P_DispPayStubDtl change twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl'); to
twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl', header_disp1 => F_GetSpridenID (pidm) ||' '|| f_format_name(pidm, 'FMIL'));
If you don't want the ID to display remove the F_GetSpridenID(global_pidm)
There are different formatting options you can pass into f_format_name:
LF30 - Last name, first name for 30 characters
L30 - Last name for 30 characters
FL30 - First name, last name for 30 characters
FL - Last name, first name
FMIL - First name, middle initial, last name
FML - First name, middle name, last name
LFMI - Last name, first name, middle initial
Switched to twbkwbis.p_opendoc
We ended up changing twbkwbis.P_OpenDoc('bwpkhstb.P_DispPayStubDtl'); to
twbkwbis.p_opendoc ('bwpkhstb.P_DispPayStubDtl');
Not sure if we loss functionality or style elsewhere by switching procedures, but it added Spriden ID, Name, Date and Time to the header as it appears on the Student SSB pages.
Thanks.