MapBufRowToUserSortRow method: Rowset class
Syntax
MapBufRowToUserSortRow(GridName, number)
Description
Use this method to return the sort view row number that corresponds to the specified buffer row number.
Parameters
| Parameter | Description |
|---|---|
|
GridName |
Specify the grid name as a string in PAGE.RECORD format in which PAGE is the page name and RECORD is the name of the grid as defined in Application Designer. (In Application Designer, select Page Field Properties, General tab to view the value for the Page Field Name field. The Page Field Name field’s value defaults to the primary record name for the level at which the grid occurs; however, the value can be changed by the application developer.) |
|
number |
Specify the row number of the row in the buffer. |
Returns
The row number, as a number, of the row in the sort view.
If the grid has not been sorted, the output row number is the same as the buffer row number.
Example
&szSortViewName = "QE_PIA_SORT_GRID1.L2RSSORTTEST";
Local Rowset &rsCurrent = GetLevel0()(1).GetRowset(Scroll.QE_PIA_SORTEST2)(1).Get⇒
Rowset(Scroll.QE_PIA_SORTEST3);
If &rsCurrent.IsUserSorted(&szSortViewName) Then
WinMessage("QE_PIA_SORT_GRID1-Rowset1 User Sorted");
Else
WinMessage("QE_PIA_SORT_GRID1-Rowset1 Not User Sorted");
End-If;
For &I = 1 To &rsCurrent.ActiveRowCount
&index = &rsCurrent.MapBufRowToUserSortRow(&szSortViewName, &I);
WinMessage("QE_PIA_SORT_GRID1-Rowset1, Buffer Row Index: " | &I | ", Sort Row⇒
Index: " | &index | ", Description: " | &rsCurrent(&I).QE_PIA_⇒
SORTEST3.DESCR30.Value);
End-For;
Related Topics