{ "header": { "version": 1, "type": "record" }, "body": { "record1": { "<1>": "declare function get_property, rowexists, msg, dialog_box\r\n$insert msg_equates\r\n\r\nPSN = .prod_spec_id->text\r\nif PSN then\r\n if rowexists( 'PROD_SPEC', PSN ) then\r\n Qbf = get_property( @window, 'QBFLIST' )\r\n if Qbf then\r\n convert @fm to @vm in Qbf\r\n end else\r\n Qbf = ''\r\n end\r\n RetVal = dialog_box( 'NOTES_ATTACH', @window, 'PROD_SPEC*':PSN:'*':Qbf )\r\n end else\r\n MsgInfo = ''\r\n MsgInfo = 'You must save this PSN first...' \r\n MsgInfo = 'H'\r\n Void = msg( '', MsgInfo )\r\n end\r\nend else\r\n MsgInfo = ''\r\n MsgInfo = 'You must have a PSN present...' \r\n MsgInfo = 'H'\r\n Void = msg( '', MsgInfo )\r\nend\r\n\r\nRETURN 0" } } }