STDPMPT_PRG_SEC

(SQL View)
Index Back

Prog Security Prompt

This view is used to impose program-level prompt security on panelgroups outside of the Student Records stack which are primarily driven by Emplid and use PEOPLE_SRCH. The PeopleCode contained on this view is important for any other view which is based on this one - the searching/formatting for names and setting the carry id is done with this code..

SELECT A.OPRCLASS , A.EMPLID , C.OPRID , A.NAME , A.SEX , A.BIRTHDATE , A.BIRTHDATE_MSK , A.CAMPUS_ID , A.NATIONAL_ID , A.NATIONAL_ID_MSK , A.NID_COUNTRY , A.NATIONAL_ID_TYPE , A.NID_DESCRSHORT , A.LAST_NAME_SRCH , A.FIRST_NAME_SRCH , C.ACCESS_CD FROM PS_PEOPLE_SRCH A ,PS_ACAD_PROG B ,PS_SCRTY_TBL_PROG C WHERE B.EMPLID = A.EMPLID AND B.EFFDT = ( SELECT MAX(F.EFFDT) FROM PS_ACAD_PROG F WHERE F.INSTITUTION = B.INSTITUTION AND F.EMPLID = B.EMPLID AND F.ACAD_CAREER = B.ACAD_CAREER AND F.STDNT_CAR_NBR =B.STDNT_CAR_NBR AND F.EFFDT <= %CurrentDateIn) AND B.EFFSEQ = ( SELECT MAX(H.EFFSEQ) FROM PS_ACAD_PROG H WHERE H.INSTITUTION = B.INSTITUTION AND H.EMPLID = B.EMPLID AND H.ACAD_CAREER = B.ACAD_CAREER AND H.STDNT_CAR_NBR =B.STDNT_CAR_NBR AND H.EFFDT = B.EFFDT) AND C.ACAD_CAREER = B.ACAD_CAREER AND C.INSTITUTION = B.INSTITUTION AND (C.ACAD_PROG = B.ACAD_PROG OR C.ACAD_PROG = 'ALL') AND C.ACCESS_CD = 'Y' AND NOT EXISTS ( SELECT 'X' FROM PS_SCRTY_TBL_PROG C1 WHERE C1.ACCESS_CD = 'N' AND C1.OPRID = C.OPRID AND C1.INSTITUTION = B.INSTITUTION AND C1.ACAD_CAREER = B.ACAD_CAREER AND C1.ACAD_PROG = B.ACAD_PROG)

# PeopleSoft Field Name PeopleSoft Field Type Database Column Type Description
1 OPRCLASS Character(30) VARCHAR2(30) NOT NULL Operator Class
2 EMPLID Character(11) VARCHAR2(11) NOT NULL Employee ID

Prompt Table: STDNT_SRCH

3 OPRID Character(30) VARCHAR2(30) NOT NULL A user's ID (see PSOPRDEFN).
4 NAME Character(50) VARCHAR2(50) NOT NULL Name
5 SEX Character(1) VARCHAR2(1) NOT NULL Gender
F=Female
M=Male
U=Unknown
X=Indeterminate/Intersex/Unspec
6 BIRTHDATE Date(10) DATE Date of Birth
7 BIRTHDATE_MSK Character(10) VARCHAR2(10) NOT NULL Date of Birth
8 CAMPUS_ID Character(16) VARCHAR2(16) NOT NULL Campus ID
9 NATIONAL_ID Character(20) VARCHAR2(20) NOT NULL National ID
10 NATIONAL_ID_MSK Character(20) VARCHAR2(20) NOT NULL National ID
11 NID_COUNTRY Character(3) VARCHAR2(3) NOT NULL National ID Country
12 NATIONAL_ID_TYPE Character(6) VARCHAR2(6) NOT NULL National ID Type

Prompt Table: HCR_NID_TYP_I
Set Control Field: NID_COUNTRY

13 NID_DESCRSHORT Character(10) VARCHAR2(10) NOT NULL NID Short Description
14 LAST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL Last Name
15 FIRST_NAME_SRCH Character(30) VARCHAR2(30) NOT NULL First Name
16 ACCESS_CD Character(1) VARCHAR2(1) NOT NULL Access Code
N=No Access
Y=Read/Write Access