MapUserSortRowToBufRow method: Rowset class
Syntax
MapUserSortRowToBufRow(GridName, number)
Description
Use this method to return the buffer row number that corresponds to the specified sort view 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 sort view. |
Returns
The row number, as a number, of the row in the buffer.
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)(2).Get⇒
Rowset(Scroll.QE_PIA_SORTEST3);
If &rsCurrent.IsUserSorted(&szSortViewName) Then
WinMessage("QE_PIA_SORT_GRID1-Rowset2 User Sorted");
Else
WinMessage("QE_PIA_SORT_GRID1-Rowset2 Not User Sorted");
End-If;
For &I = 1 To &rsCurrent.ActiveRowCount
&index = &rsCurrent.MapUserSortRowToBufRow(&szSortViewName, &I);
WinMessage("QE_PIA_SORT_GRID1-Rowset2, Description: " | &rsCurrent(&index).QE_⇒
PIA_SORTEST3.DESCR30.Value);
End-For;
Related Topics