11 lines
1.1 KiB
JSON
11 lines
1.1 KiB
JSON
{
|
|
"header": {
|
|
"version": 1,
|
|
"type": "record"
|
|
},
|
|
"body": {
|
|
"record1": {
|
|
"<1>": "declare function key_sort, entid, repository, msg, post_event\r\ndeclare subroutine make.list\r\n$insert msg_equates\r\n\r\nCustNo = .cust_no->text\r\nOpenKeys = xlate( 'COMPANY', CustNo, 'ACTIVE_PROD_SPEC_KEYS', 'X' )\r\nif OpenKeys then\r\n\tconvert @vm to @fm in OpenKeys\r\n\tOpenKeys = key_sort( OpenKeys, 'PROD_SPEC', 'CUST_NAME':@fm:'#REV_DATE', 1, '', '' )\r\n\tmake.list( 0, OpenKeys, '', '' )\r\n\tPopupId = entid( @appid<1>, 'POPUP', '', 'PROD_SPEC_SINGLE' )\r\n\tChoosenRow = repository( 'EXECUTE', PopupId, @window, '' )\r\n\tif ChoosenRow then\r\n\t\t.prod_spec_id->text = ChoosenRow\r\n\t\t*Void = post_event( @window:'.PROD_SPEC_ID', 'LOSTFOCUS' )\r\n\tend\r\nend else\r\n Text = 'There are no product specifications for '\t\t \r\n Text:= oconv( CustNo, '[XLATE_CONV,COMPANY*CO_NAME]' )\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = Text\r\n MsgInfo<micon$> = 'H'\r\n Void = msg( '', MsgInfo )\r\nend\r\n\r\nRETURN 0"
|
|
}
|
|
}
|
|
} |