Search This Blog

Tuesday, September 8, 2009

Accessing data from the component buffer


Hierarchy of the component buffer/scrolls the way people code should navigate to
 
1)ROWSET
2)ROW
3)RECORD
4)FIELD
 
A rowset contains one or more rows
A row contains one or more records And zero or more child rowsets,
And a record contains one or more fields.
 
sample scroll people code.
 
First you need to define ROWSET objects:
 
Local Rowset &LEVEL_0;
Local Rowset &PERFORM;
So now you have to seed or instantiate the Rowset:
 
&LEVEL0 = GetLevel0();
&PERFORM = &LEVEL0(1).GetRowset(Scroll.SCROLL);
 
Step through your Rowset.
 
For &i = 1 To &PERFORM.ActiveRowCount
 
End-For;
Extract data.
 
&COMPETENCY =
&PERFORM(&i). SCROLL.COMPETENCY.Value;
 
Update the data on the grid:
 
&PERFORM(&i). SCROLL.N_RVW_ACCEPT.Value = “Y”;
 

No comments:

Post a Comment