Examine this PeopleCode snippet:
Local Rowset &RS_Level0, &RS_Level1;
Local Row &Row_Level0, &Row_Level1;
Local Record &Rec_EMPLOYEE;
Local Field &Fld_ROLE;
&RS_LEVEL0 = GetLevel0();
&ROW_LEVEL0 = &RS_Level0.GetRow(1);
&RS_LEVEL1 = &ROW_LEVEL0.GetRowSet(SCROLL.DEPT);
&ROW_LEVEL1 = &RS_LEVEL1(1);
&REC_EMPLOYEE = &ROW_LEVEL1.EMPLOYEE;
&FLD_EMPID = &REC_TASKRSRC.EMPID;
&ID = &FLD_EMPID.Value;
Can the code given above be replaced with the following statement?
&ID = GetField().Value
A.
No. The record must be specified.
B.
No. The row and record must be specified.
C.
Yes, if the code is placed on the current row.
D.
Yes, if the code is placed on the EMPID field.
E.
Yes, if the code is placed on the EMPLOYEE record.
Explanation: