JointLantic

How to Hide/Unhide Scroll and Grid, Allrow in Peoplecode

How to Hide/Unhide Scroll, Allrow in Peoplecode

On Page Activity in Peoplecode

Example 1

Local Rowset &rs1, &rs2;

&rs1 = GetRowset();
&rs2 = GetRowset(SCROLL.TS_INFO_FILE);

For &I = 1 to &rs1.ActiveRowCount
     If ALL(&rs1.GetRow(&I).TS_INFO_FILE.FIELD1 ) Then
    &rs2.HideAllRows();
    End-If;
End-For;

Example 2

hideScroll(Scroll.TS_INFO_FILE); 

unhideScroll(Scroll.TS_INFO_FILE); 

         hideScroll(RECORD.TS_INFO_FILE); 

        unhideScroll(RECORD.TS_INFO_FILE); 

Example 3 Hide/ Unhide some field on grid/ scroll area 

Local Rowset &rs1, &rs2;

&rs1 = GetRowset(); 
&rs2 = GetRowset(SCROLL.TS_INFO_FILE);

For &I = 1 to &rs1.ActiveRowCount 
     If ALL(&rs1.GetRow(&I).TS_INFO_FILE.FIELD1 ) Then 

         &rs2 (&i).TS_INFO_FILE.FIELD1.Visible = False;

         &rs2 (&i).TS_INFO_FILE.FIELD2.Visible = False;
    End-If; 
End-For;

Exit mobile version