CI Data Collection Works, Just Not How I Expect it To Work
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.