PeopleCode grid question
I have a grid on the page at level 1 and once there is data in the grid user click save as draft and save it to temporary table and come back to it later on. So to save data into table from the I use following code:
&JEDRSval = GetLevel0()(1).GetRowset(Scroll.HSC_DMY_VW);
&rows = &JEDRSval.ActiveRowCount;
&JEDrec = CreateRecord(Record.HSC_JED_DRAFT);
For &i = 1 To &JEDRSval.ActiveRowCount
If All(&JEDRSval(&i).HSC_JDE_WRK.DEPTID.Value) Then
&JEDrec.HRS_JOB_OPENING_ID.value = HSC_JO_SAD_WRK.HRS_JOB_OPENING_ID;
&JEDrec.PERCENT_RATE.Value = &JEDRSval(&i).HSC_JDE_WRK.PERCENT_RATE.Value;