Monday, July 12, 2010

Hiding a field w scroll levels using People Code


Hello, I am trying to figure out how to hide a field in scroll level 2 in Component Level PeopleCode. I know I need to loop through to get the scroll level and invoke the code that way to hide the field.
This is what I have so far.
&Rs1 = GetRowset(Scroll.RHPRR022_CFG2);
If %Component = "RH_RHPRR022" Then
For &I = 1 To &Rs1.ActiveRowCount
&Row = &Rs1.GetRow(&I);
&Rec = &Row.GetRecord(Record.RHPRR022_CFG2);
If &Rs1.(&I).YourRecordName.RecordFieldName.Value > 0 Then
&Rs1.&Row.visible = False;

End-If;
End-For;
End-If;
The error message I get is:
'Rowset' does not support property or Method 'Value'.....

No comments:

Post a Comment