Human Resources and ELM - PSFT (MOSC)

MOSC Banner

InsertItem in CollNamesCollection using CI_PERSONAL_DATA/App Engine

edited Jul 15, 2024 11:06PM in Human Resources and ELM - PSFT (MOSC) 3 commentsAnswered

We are running Peoplesoft 9.2 HCM. We are trying to rehire an employee using CI_PERSONAL_DATA. When using the InsertItem(1) syntax, we don't get an error but the name does not update. Any suggestions? The code is listed below:

rem ***** Set/Get COLL_NAME_TYPE_VW Collection Field Properties -- Parent: PS_ROOT Collection *****;
&oCollNameTypeVwCollection = &oCCiPersonalData.COLL_NAME_TYPE_VW;
&oCollNameTypeVw = &oCollNameTypeVwCollection.Item(1);
&oCollNameTypeVw.KEYPROP_NAME_TYPE = "PRI";

        rem ***** Set COLL_NAMES Collection Field Properties -- Parent: COLL_NAME_TYPE_VW Collection *****;
        &oCollNamesCollection = &oCollNameTypeVw.COLL_NAMES;
        &oCollNames = &oCollNamesCollection.InsertItem(1);
        &oCollNames.KEYPROP_NAME_TYPE = "PRI";
        &oCollNames.KEYPROP_EFFDT = &recCIntNeoPersStg.EFFDT.Value;
        &oCollNames.PROP_COUNTRY_NM_FORMAT = "001";
        &oCollNames.PROP_LAST_NAME = &recCIntNeoPersStg.LAST_NAME.Value;
        &oCollNames.PROP_FIRST_NAME = &recCIntNeoPersStg.FIRST_NAME.Value;
        &oCollNames.PROP_MIDDLE_NAME = &recCIntNeoPersStg.MIDDLE_NAME.Value;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center