{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare subroutine rlist\r\ndeclare function entid, popup, repository, msg, send_event, post_event\r\n$insert rlist_equates\r\n$insert popup_equates\r\n\r\nrlist( 'SELECT LSL_USERS WITH ACTIVE BY LAST_FIRST', target_activelist$, '', '', '' ) \r\nif @reccount then\r\n\tPopId = entid( @appid<1>, 'POPUP', '', 'SHOW_USERS' )\r\n\tOverRide = ''\r\n\tOverRide = 2 ;* allow multiple\r\n\tChoice = repository( 'EXECUTE', PopId, @window, OverRide )\r\n\tif Choice then\r\n\t CurArray = .send_to_internal->array\r\n CurRow = .send_to_internal->selpos<2>\r\n CurArray = delete( CurArray, 1, CurRow, 0 )\r\n CurArray = delete( CurArray, 2, CurRow, 0 )\r\n CurArray = insert( CurArray, 1, CurRow, 0, Choice )\r\n CurArray = insert( CurArray, 2, CurRow, 0, oconv( Choice, '[XLATE_CONV,LSL_USERS*FIRST_LAST]') )\r\n .send_to_internal->Array = CurArray\r\n Void = send_event( CtrlEntId, 'LOSTFOCUS', '' )\r\n Void = post_event( @window:'.FROM_INTERNAL', 'GOTFOCUS', '' )\r\n Void = set_property( @window:'.FROM_INTERNAL', 'FOCUS', 1 )\r\n\tend\r\nend\r\nRETURN 0" } } }