/* Add derived field on page which is setup as hyperlink. Hide the field in question*/
/* The code must be added on the page activate. */
Local Rowset &rs;
/* Set the column heading */
GetGrid(Page.INCOMM_SMS, "SMS_STAGE").GetColumn("CELL_PHONE").Label = "Originator";
/* This code will loop through the grid and set each derived field equal to the record field to be displayed. Grid cannot be on level 0 */
&rs = GetLevel0().GetRow(1).GetRowset(Scroll.SMS_STAGE);
For &i = 1 To &rs.ActiveRowCount
&rs.GetRow(&i).DERIVED.CELL_PHONE.Label = &rs.GetRow(&i).SMS_STAGE.CELL_PHONE.Value;
End-For;
/* The code must be added on the page activate. */
Local Rowset &rs;
/* Set the column heading */
GetGrid(Page.INCOMM_SMS, "SMS_STAGE").GetColumn("CELL_PHONE").Label = "Originator";
/* This code will loop through the grid and set each derived field equal to the record field to be displayed. Grid cannot be on level 0 */
&rs = GetLevel0().GetRow(1).GetRowset(Scroll.SMS_STAGE);
For &i = 1 To &rs.ActiveRowCount
&rs.GetRow(&i).DERIVED.CELL_PHONE.Label = &rs.GetRow(&i).SMS_STAGE.CELL_PHONE.Value;
End-For;
my page has a grid in level0 (i.e., it considered as level1 grid)
ReplyDeleteis the above code works for this page