{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function msg, send_event, post_event, get_status\r\ndeclare subroutine forward_event, end_dialog\r\n\r\nforward_event( Flag, FocusId )\r\nReactEntered = .reactor_no->text\r\n* following xlate will xlate position 3 in wo_mast_sched in config which is the number of reactors\r\nMaxReactors = xlate( 'CONFIG', 'WO_MAST_SCHED', 3, 'X' )\r\nif ReactEntered >= 20 and ReactEntered <= MaxReactors then\r\n Void = send_event( @window, 'CREATE', .reactor_no->text )\r\n Void = post_event( @window:'.MODE', 'GOTFOCUS', '' )\r\n Void = set_property( @window:'.MODE', 'FOCUS', 1 ) \r\n .reactor_no->enabled = 0 ;* passed validation\r\nend else\r\n if ReactEntered = '' then\r\n end_dialog( @window, '' )\r\n end\r\nend\r\nRETURN 0" } } }