Is there any way I can select a row that is not currently in the browse view-port?
I have a multi-select browse and when I select a record in the browse, I need the program to select to select other dependent rows in the browse.
I have looped through the num-results of the query, matched my condition and used <browse>:SELECT-ROW(i). This works for all rows that are currently in the browse view-port. But gives me an error - "Invalid row index specified for browse method SELECT-ROW (385)" if the row is out of the view-port. Is there any way, I can select all dependent rows even though they are not in the browse view-port?
Here is what I am doing:
ON 'VALUE-CHANGED':U OF <mybrowse> IN FRAME <myframe>
DO:
IF (<mybrowse>:FOCUSED-ROW-SELECTED IN FRAME <myframe>) THEN
DO:
GET FIRST <myquery>.
DO i = 1 TO NUM-RESULTS("<myquery>"):
IF <mycondition> THEN
<mybrowse>:SELECT-ROW(i).
GET NEXT <myquery>.
END.
END.
END.