Using Contextual Row References
A contextual row reference refers to a row in the current context on level one or lower in the page. Because each scroll area uses a unique primary record, the name of that record uniquely identifies whichever row is in the current context for that scroll level. A contextual row reference uses a RECORD. recordname component name reference to specify the scroll level of the intended row, resulting in a reference to the current row at the specified scroll level.
For example, you can use contextual row references with the RecordDeleted, RecordNew, and RecordChanged functions:
If RecordDeleted(RECORD.SOME_REC) Then...With PeopleTools 8 object-oriented programming, a row can be referenced by specifying parent rows or rowsets of the current rowset:
If GetRowSet().ParentRowset.ParentRow.IsDeleted Then...In early versions of PeopleTools, you could make contextual row references using a recordname.fieldname expression:
HideRow(SOME_REC.ANY_FIELD) If RecordDeleted(SOME_REC.ANY_FIELD) Then...This syntax is still supported.
Related Topics