11 lines
1.1 KiB
JSON
11 lines
1.1 KiB
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "declare function entid, repository, send_event\r\ndeclare subroutine rlist\r\n$insert popup_equates\r\n$insert rlist_equates\r\n\r\nCustNo = .cust_no->text\r\nSelPos = .contact_ids->selpos\r\nCurRow = SelPos<2>\r\nPopRec = entid( @appid<1>, 'POPUP', '', 'CHOOSE_NAME' )\r\nOverRide = ''\r\nOverRide<pselect$> = 2\r\nStmt = 'SELECT NAMES WITH CO_ID = ':CustNo:' BY LAST_FIRST'\r\nrlist( Stmt, target_activelist$, '', '', '' )\r\nChoosen = repository( 'EXECUTE', PopRec, @window, OverRide )\r\nif Choosen then\r\n convert @fm to @vm in Choosen\r\n\tCurArray = .contact_ids->array\r\n\tCurArray = delete( CurArray, 1, CurRow, 0 )\r\n\tCurArray = delete( CurArray, 2, CurRow, 0 )\r\n\tCurArray = insert( CurArray, 1, CurRow, 0, Choosen )\r\n\t.contact_ids->array = CurArray\r\n\tVoid = set_property( @window, '@NoTopPos', 1 )\r\n Void = send_event( @window:'.CONTACT_IDS', 'LOSTFOCUS' )\t\r\n\tVoid = set_property( @window, '@NoTopPos', '' ) \r\nend\r\nRETURN 0\r\n"
|
|
}
|
|
}
|
|
} |