JointLantic

How to Use Current Rent Row Number of Field In PeopleCode Scroll Level1

How to Use Current Rent Row Number of Field In PeopleCode

Local Rowset &rs0, &rs1;

&index = CurrentRowNumber();
&rs0 = GetLevel0();
&rs1 = &rs0.GetRow(1).GetRowset(Scroll.COURSE);

/* Define Field Value of  CurrentRowNumber on Scroll Level 1*/

&rs1(&index).DERIVED_CRSE.SESSION.Value = &rs1(&idx).COURSE.SESSION.Value;

/* Loop For Define Filed Value on Scroll Level 1*/
For &i = 1 To &rs1.ActiveRowCount

   &rs1(&i).DERIVED_CRSE.SESSION.Value = &rs1(&idx).COURSE.SESSION.Value;

End-For;

Exit mobile version