--- EVENT ACTION accounts_pb_new_click | --- CREATE account | | SET description TO input account description | | SET type TO input account type | |--- SET number TO input account number | | --- WHEN successful | | | IF LAST OF export_account IS EQUAL TO MAX OF export_account | | | --- SET SUBSCRIPT OF export_account TO LAST OF export_account | | | | IF input account number IS GREATER THAN export_line | | | | account number | | | | EXIT STATE IS account_out_of_list_box | | | |--- ELSE | | | | MOVE input account TO export_line account | | | | HIGHLIGHT export_account AT SUBSCRIPT of export_account | | | | MOVE input account TO output account | | | --- SORT export_ account BY 4A | | |--- ELSE | | | SET SUBSCRIPT OF export_account TO LAST OF export_account + 1 | | | MOVE input account TO export_line account | | | HIGHLIGHT export_account AT SUBSCRIPT of export_account | | | MOVE input account TO output account | | --- SORT export_ account BY 4A | |--- WHEN already exist | | MAKE output account number Unprotected Normal Intensity | | Normal Color Containing Cursor | |--- EXIT STATE IS account_already_exists | | WHEN permitted value violation | --- EXIT STATE IS account_invalid_permitted_values ---
In the sample code, the account description was the second row in the available fields list. That row is highlighted as the default sort sequence. To select this sequence, the user presses Return when the sort dialog box pops up.
The next sample code illustrates highlighting the last account added to a list.
|
Copyright © 2013 CA.
All rights reserved.
|
|