InsertItem in CollNamesCollection using CI_PERSONAL_DATA/App Engine
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;