Files
open-insight/LSL2/OIEVENT/OPTIONS/SPC_EVAL_ADE.CONTROL_ID.json
2024-03-25 15:12:53 -07:00

11 lines
1.2 KiB
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function dialog_box, entid, repository, set_property, get_property\r\ndeclare function getwindow, fieldcount, send_event\r\ndeclare subroutine sendmessage, make.list\r\n$insert popup_equates\r\n\r\nRLKeys = dialog_box( 'SPC_EVAL_ADE_QUERY', @window, '' )\r\nif RLKeys then\r\n\tPopId = entid( @appid<1>, 'POPUP', '', 'SPC_EVAL_FTIR_QUERY' )\r\n\tOverRide = ''\r\n\tmake.list( 0, RLKeys, '', '' )\r\n\tChoosenKeys = repository( \"EXECUTE\", PopId, @window, OverRide ) \r\n\tif ChoosenKeys then\r\n\t convert @vm to @fm in ChoosenKeys\r\n\t if fieldcount( ChoosenKeys, @fm ) > 1 then\r\n\t\t Void = set_property( @window, 'QBFLIST', ChoosenKeys )\r\n Void = set_property( @window, '@NoRead', 1 )\r\n .control_id->text = ChoosenKeys<1> \r\n\t Void = send_event( @window, 'READ' )\r\n\t Void = set_property( @window, '@NoRead', 0 )\r\n\t end else\r\n\t .control_id->text = ChoosenKeys\r\n\t Void = send_event( @window:'.CONTROL_ID', 'LOSTFOCUS', '' )\r\n\t end\r\n\tend\r\nend\r\nRETURN 0"
}
}
}