I need to create a filtering window. I already created an array that holds a DS, with a Y/N for a checkbox and a description. I created a new screen that will function as a window and in that screen i have a grid. The screen is named "GroupFilt" and the grid is "GFSfl". The GFSfl has 2 binded fields, GRPCODEA for checkbox and GRPCODEB for the description. I already have my array loaded and the trigger will be when i click a button "filterBtn". In my backend i have the code set up for when the btn is clicked, and i have the loop over my array, i just don't know how to write to the grid and then display it.
Code: Select all
Dcl-DS GFSfl_In LikeRec(DisplyFile.GFSfl:*INPUT) ;
DCL-DS GFSfl_Out LikeRec(DisplyFile.GFSfl:*OUTPUt) ;
FOR ix = 1 to %elem(CodesDrop);
IF CodesDrop(ix)= *blank;
leave;
ENDIF;
Clear GFSfl_Out ;
GFSfl_Out.GRPCODEA = CodesDrop(ix).Chk ;
GFSfl_Out.GRPCODEB = CodesDrop(ix).Code;
Write DisplyFile.GFSfl GFSfl_Out ;
ENDFOR;