11 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|     "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\n*rlist( 'SELECT LSL_USERS BY LAST_FIRST', target_activelist$, '', '', '' )             \r\n*PopRec = xlate( 'SYSREPOSPOPUPS', @appid<1>:'**':'SHOW_USERS', '', 'X' )\r\n*PopRec<pselect$> = 2 ;* allow multiple\r\n*Choice = popup( @window, PopRec ) \r\n*declare subroutine rlist\r\n*declare function entid, 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<pselect$> = 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\n*if Choice then\r\n*    convert @vm to @fm in Choice\r\n   *.send_to_internal->text = Choice\r\n*   .send_to_internal->list = oconv( Choice, '[XLATE_CONV,LSL_USERS*FIRST_LAST]' )\r\n*   .send_to_internal->misc = Choice\r\n\r\n*end\r\nRETURN 0"
 | |
|         }
 | |
|     }
 | |
| } |