A GET ROW HIGHLIGHTED statement determines the index of the first highlighted row of an explicitly indexed repeating group view starting from a specified position.
A row can be highlighted by the user selecting it, or by using the HIGHLIGHT statement.
A conditional statement may be used to test whether an implicitly indexed repeating group view is highlighted or not.
The next sample code illustrates the use of this statement.
--- EVENT ACTION accounts_1b_export_account_click | GET ROW HIGHLIGHTED IN export_account STARTING AT 1 G IVING | SUBSCRIPT OF export_account | SET local ief_supplied subscript TO SUBSCRIPT OF export_account | --- IF SUBSCRIPT OF export_account IS GREATER THAN 0 | | MOVE export_line account TO output account | | ELSE | | MOVE local_account_blank account TO output account | | SET output account type TO “E” | --- EXIT STATE IS nothing_selected ---
The logic in the sample code finds the first account highlighted and puts it into the single occurrence export view so that it can be changed. The row must be unhighlighted in the change logic, and the next highlighted row, if any, is put into the single occurrence export view.
If multiple rows are selected and need to be processed in the order in which they appear in the list, then GET ROW HIGHLIGHTED should be used (it works with both click and double-click).
If processing should occur as rows are clicked, then the next statement, GET ROW CLICKED should be used instead.
|
Copyright © 2013 CA.
All rights reserved.
|
|