OR596P ; NA/AJB - UPDATE OPTION ;02/09/23 07:24
;;3.0;ORDER ENTRY/RESULTS REPORTING;**596**;Dec 17, 1997;Build 7
;
; External reference to EN^XPAR supported by IA 2263
; External reference to $$FIND1^DIC supported by IA 2051
;
Q
POST(ERROR) ;
D EN^XPAR("SYS","ORNEWPERS ACTIVE",,"YES",.ERROR) ; update parameter
N MENU S MENU=$$FIND1^DIC(19,,,"OR PARAM COORDINATOR MENU") Q:'+MENU
N OPT S OPT=$$FIND1^DIC(19,,,"OR NEWPERS DEBUGGER") Q:'OPT
I $$FIND1^DIC(19.01,","_MENU_",",,"OR NEWPERS DEBUGGER") Q
N FDA S FDA(19.01,"+1,"_MENU_",",.01)=OPT,FDA(19.01,"+1,"_MENU_",",2)="NP"
D UPDATE^DIE("","FDA")
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HOR596P 628 printed Dec 13, 2024@02:26:48 Page 2
OR596P ; NA/AJB - UPDATE OPTION ;02/09/23 07:24
+1 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**596**;Dec 17, 1997;Build 7
+2 ;
+3 ; External reference to EN^XPAR supported by IA 2263
+4 ; External reference to $$FIND1^DIC supported by IA 2051
+5 ;
+6 QUIT
POST(ERROR) ;
+1 ; update parameter
DO EN^XPAR("SYS","ORNEWPERS ACTIVE",,"YES",.ERROR)
+2 NEW MENU
SET MENU=$$FIND1^DIC(19,,,"OR PARAM COORDINATOR MENU")
if '+MENU
QUIT
+3 NEW OPT
SET OPT=$$FIND1^DIC(19,,,"OR NEWPERS DEBUGGER")
if 'OPT
QUIT
+4 IF $$FIND1^DIC(19.01,","_MENU_",",,"OR NEWPERS DEBUGGER")
QUIT
+5 NEW FDA
SET FDA(19.01,"+1,"_MENU_",",.01)=OPT
SET FDA(19.01,"+1,"_MENU_",",2)="NP"
+6 DO UPDATE^DIE("","FDA")
+7 QUIT