open-insight/LSL2/OIEVENT/WRITE/REACT_SERVS..json
2024-03-25 15:12:53 -07:00

11 lines
761 B
JSON

{
"header": {
"version": 1,
"type": "record"
},
"body": {
"record1": {
"<1>": "declare function rowexists, msg, post_event\r\n$insert msg_equates\r\n\r\nif rowexists( 'REACT_SERVS', .serv_id->text ) else\r\n .entry_id->text = @user4\r\nend\r\nif ( .status->value = 'I' ) then\r\n if .inactive_date->text = '' then\r\n MsgInfo = ''\r\n MsgInfo<mtext$> = 'You must enter an inactive date if you are inactivating this reactor service...'\r\n MsgInfo<micon$> = '!'\r\n Void = msg( '', MsgInfo )\r\n @@window->focus = @window:'.INACTIVE_DATE'\r\n Void = post_event( @window:'.INACTIVE_DATE', 'GOTFOCUS' )\r\n return 0\r\n end\r\nend\r\nreturn 1\r\n"
}
}
}