PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

CI Data Collection Works, Just Not How I Expect it To Work

edited Apr 5, 2019 10:40AM in PeopleTools and Lifecycle Management - PSFT (MOSC) 1 commentAnswered ✓

PeopleTools: 8.53; Application: Finance/SCM 9.1

ReqLineCollection.Count Doesn't Increment during Data ReqLineCollection until after the first insertion.  I've created a Component Interface to the Requisition Entry Component. If I do the following to insert lines

&oReqLineCollection = &oDdcPvReqCi.REQ_LINE;

&oReqLine = &oReqLineCollection.Item(1);

for &i = 1 to &lines.len

if i = 1 then

&oReqLine =  &oReqLineCollection.Item(1);

else

&oReqLine =  &oReqLineCollection.Item(&oReqLineCollection.count);

end-for;

The requisition created only has 1 line, and that line has the last line from &lines.  If I instead do this:

for &i = 1 to &lines.len

if i = 1 then

&oReqLine =  &oReqLineCollection.Item(1);

else

&oReqLine =  &oReqLineCollection.InsertItem(1);

end-for;

It works as expected - the last line of &lines becomes the last line of the collection, which is weird because it should be inserting each line after line 1.

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