DINIT285 ;SFISC/TKW-ALTERNATE EDITOR FILE ;9/9/94 14:33
;;22.0;VA FileMan;;Mar 30, 1999
;Per VHA Directive 10-93-142, this routine should not be modified.
F I=1:2 S X=$T(Q+I) G:X="" ^DINIT286 S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) S @X=Y
Q Q
;;^DIC("B","ALTERNATE EDITOR",1.2)
;;=
;;^DIC(1.2,"%D",0)
;;=^^6^6^2940908^
;;^DIC(1.2,"%D",1,0)
;;=This file stores information about the editors that can be used to edit VA
;;^DIC(1.2,"%D",2,0)
;;=FileMan WP fields. The LINE EDITOR and SCREEN EDITOR are exported with VA
;;^DIC(1.2,"%D",3,0)
;;=FileMan, but instructions are given to allow site managers to enter local
;;^DIC(1.2,"%D",4,0)
;;=editors of their choice. There is a pointer in the NEW PERSON File to
;;^DIC(1.2,"%D",5,0)
;;=this file. The pointed-to editor for that person is then used whenever
;;^DIC(1.2,"%D",6,0)
;;=the person edits a WP field.
;;^DD(1.2,0)
;;=FIELD^NL^7^5
;;^DD(1.2,0,"IX","B",1.2,.01)
;;=
;;^DD(1.2,0,"NM","ALTERNATE EDITOR")
;;=
;;^DD(1.2,0,"PT",200,31.3)
;;=
;;^DD(1.2,.01,0)
;;=NAME^RFX^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X I $D(X) S %=$O(^DIST(1.2,"B",$E(X))) I $E(%)=$E(X) K X
;;^DD(1.2,.01,1,0)
;;=^.1
;;^DD(1.2,.01,1,1,0)
;;=1.2^B
;;^DD(1.2,.01,1,1,1)
;;=S ^DIST(1.2,"B",$E(X,1,30),DA)=""
;;^DD(1.2,.01,1,1,2)
;;=K ^DIST(1.2,"B",$E(X,1,30),DA)
;;^DD(1.2,.01,3)
;;=NAME MUST BE 3-30 CHAR., and start with a unique alpha char.
;;^DD(1.2,.01,21,0)
;;=2^^2^2^2920506^^^
;;^DD(1.2,.01,21,1,0)
;;=This is the name of the alternate editor. It must start with a unique
;;^DD(1.2,.01,21,2,0)
;;=character.
;;^DD(1.2,.01,"DT")
;;=2901212
;;^DD(1.2,1,0)
;;=ACTIVATION CODE FROM DIWE^RK^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
;;^DD(1.2,1,3)
;;=This is Standard MUMPS code, used to set up the environment for editing a Standard FileMan word-processing field using this editor.
;;^DD(1.2,1,9)
;;=@
;;^DD(1.2,1,21,0)
;;=^^17^17^2920513^^^^
;;^DD(1.2,1,21,1,0)
;;=This field holds the MUMPS code to properly establish the environment
;;^DD(1.2,1,21,2,0)
;;=that will allow use of this editor to edit any VA FileMan word-processing
;;^DD(1.2,1,21,3,0)
;;=type field. Typically this code might move the text into another
;;^DD(1.2,1,21,4,0)
;;=MUMPS global (like ^UTILITY) or to some other file format for editing.
;;^DD(1.2,1,21,5,0)
;;=If the editor is written in MUMPS, it should either use variables that
;;^DD(1.2,1,21,6,0)
;;=do not begin with the letter "D", or should NEW all its local variables
;;^DD(1.2,1,21,7,0)
;;=to avoid problems on return to the FileMan editor.
;;^DD(1.2,1,21,8,0)
;;=
;;^DD(1.2,1,21,9,0)
;;=If the variable DIWE(1) is defined, it indicated that the user
;;^DD(1.2,1,21,10,0)
;;=has switched to this editor from the standard FileMan Line Editor, and
;;^DD(1.2,1,21,11,0)
;;=upon return, the control will be returned to the line editor.
;;^DD(1.2,1,21,12,0)
;;=
;;^DD(1.2,1,21,13,0)
;;=This editor may set the variable DIWESW to 1, if they wish to allow
;;^DD(1.2,1,21,14,0)
;;=the user to switch to an alternate editor from this one.
;;^DD(1.2,1,21,15,0)
;;=
;;^DD(1.2,1,21,16,0)
;;=This editor is required to restore the edited text to standard FileMan
;;^DD(1.2,1,21,17,0)
;;=word-processing format before exiting.
;;^DD(1.2,1,"DT")
;;=2900202
;;^DD(1.2,2,0)
;;=OK TO RUN TEST^K^^2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
;;^DD(1.2,2,3)
;;=This is Standard MUMPS code that sets $T to true if it is OK to use this editor.
;;^DD(1.2,2,9)
;;=@
;;^DD(1.2,2,21,0)
;;=^^9^9^2920513^^^^
;;^DD(1.2,2,21,1,0)
;;=This field holds MUMPS code used to pre-check the environment before
;;^DD(1.2,2,21,2,0)
;;=allowing the user to enter this editor. This field should set the
;;^DD(1.2,2,21,3,0)
;;=$TEST indicator. If $TEST is true then it is OK for this editor to
;;^DD(1.2,2,21,4,0)
;;=run at this time. If $T is false, the user will be returned to the
;;^DD(1.2,2,21,5,0)
;;=FileMan line editor.
;;^DD(1.2,2,21,6,0)
;;=
;;^DD(1.2,2,21,7,0)
;;=If the field is null, it will be the same as $T=true
DINIT285 ;SFISC/TKW-ALTERNATE EDITOR FILE ;9/9/94 14:33
+1 ;;22.0;VA FileMan;;Mar 30, 1999
+2 ;Per VHA Directive 10-93-142, this routine should not be modified.
+3 FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
GOTO ^DINIT286
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
SET @X=Y
Q QUIT
+1 ;;^DIC("B","ALTERNATE EDITOR",1.2)
+2 ;;=
+3 ;;^DIC(1.2,"%D",0)
+4 ;;=^^6^6^2940908^
+5 ;;^DIC(1.2,"%D",1,0)
+6 ;;=This file stores information about the editors that can be used to edit VA
+7 ;;^DIC(1.2,"%D",2,0)
+8 ;;=FileMan WP fields. The LINE EDITOR and SCREEN EDITOR are exported with VA
+9 ;;^DIC(1.2,"%D",3,0)
+10 ;;=FileMan, but instructions are given to allow site managers to enter local
+11 ;;^DIC(1.2,"%D",4,0)
+12 ;;=editors of their choice. There is a pointer in the NEW PERSON File to
+13 ;;^DIC(1.2,"%D",5,0)
+14 ;;=this file. The pointed-to editor for that person is then used whenever
+15 ;;^DIC(1.2,"%D",6,0)
+16 ;;=the person edits a WP field.
+17 ;;^DD(1.2,0)
+18 ;;=FIELD^NL^7^5
+19 ;;^DD(1.2,0,"IX","B",1.2,.01)
+20 ;;=
+21 ;;^DD(1.2,0,"NM","ALTERNATE EDITOR")
+22 ;;=
+23 ;;^DD(1.2,0,"PT",200,31.3)
+24 ;;=
+25 ;;^DD(1.2,.01,0)
+26 ;;=NAME^RFX^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X I $D(X) S %=$O(^DIST(1.2,"B",$E(X))) I $E(%)=$E(X) K X
+27 ;;^DD(1.2,.01,1,0)
+28 ;;=^.1
+29 ;;^DD(1.2,.01,1,1,0)
+30 ;;=1.2^B
+31 ;;^DD(1.2,.01,1,1,1)
+32 ;;=S ^DIST(1.2,"B",$E(X,1,30),DA)=""
+33 ;;^DD(1.2,.01,1,1,2)
+34 ;;=K ^DIST(1.2,"B",$E(X,1,30),DA)
+35 ;;^DD(1.2,.01,3)
+36 ;;=NAME MUST BE 3-30 CHAR., and start with a unique alpha char.
+37 ;;^DD(1.2,.01,21,0)
+38 ;;=2^^2^2^2920506^^^
+39 ;;^DD(1.2,.01,21,1,0)
+40 ;;=This is the name of the alternate editor. It must start with a unique
+41 ;;^DD(1.2,.01,21,2,0)
+42 ;;=character.
+43 ;;^DD(1.2,.01,"DT")
+44 ;;=2901212
+45 ;;^DD(1.2,1,0)
+46 ;;=ACTIVATION CODE FROM DIWE^RK^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
+47 ;;^DD(1.2,1,3)
+48 ;;=This is Standard MUMPS code, used to set up the environment for editing a Standard FileMan word-processing field using this editor.
+49 ;;^DD(1.2,1,9)
+50 ;;=@
+51 ;;^DD(1.2,1,21,0)
+52 ;;=^^17^17^2920513^^^^
+53 ;;^DD(1.2,1,21,1,0)
+54 ;;=This field holds the MUMPS code to properly establish the environment
+55 ;;^DD(1.2,1,21,2,0)
+56 ;;=that will allow use of this editor to edit any VA FileMan word-processing
+57 ;;^DD(1.2,1,21,3,0)
+58 ;;=type field. Typically this code might move the text into another
+59 ;;^DD(1.2,1,21,4,0)
+60 ;;=MUMPS global (like ^UTILITY) or to some other file format for editing.
+61 ;;^DD(1.2,1,21,5,0)
+62 ;;=If the editor is written in MUMPS, it should either use variables that
+63 ;;^DD(1.2,1,21,6,0)
+64 ;;=do not begin with the letter "D", or should NEW all its local variables
+65 ;;^DD(1.2,1,21,7,0)
+66 ;;=to avoid problems on return to the FileMan editor.
+67 ;;^DD(1.2,1,21,8,0)
+68 ;;=
+69 ;;^DD(1.2,1,21,9,0)
+70 ;;=If the variable DIWE(1) is defined, it indicated that the user
+71 ;;^DD(1.2,1,21,10,0)
+72 ;;=has switched to this editor from the standard FileMan Line Editor, and
+73 ;;^DD(1.2,1,21,11,0)
+74 ;;=upon return, the control will be returned to the line editor.
+75 ;;^DD(1.2,1,21,12,0)
+76 ;;=
+77 ;;^DD(1.2,1,21,13,0)
+78 ;;=This editor may set the variable DIWESW to 1, if they wish to allow
+79 ;;^DD(1.2,1,21,14,0)
+80 ;;=the user to switch to an alternate editor from this one.
+81 ;;^DD(1.2,1,21,15,0)
+82 ;;=
+83 ;;^DD(1.2,1,21,16,0)
+84 ;;=This editor is required to restore the edited text to standard FileMan
+85 ;;^DD(1.2,1,21,17,0)
+86 ;;=word-processing format before exiting.
+87 ;;^DD(1.2,1,"DT")
+88 ;;=2900202
+89 ;;^DD(1.2,2,0)
+90 ;;=OK TO RUN TEST^K^^2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
+91 ;;^DD(1.2,2,3)
+92 ;;=This is Standard MUMPS code that sets $T to true if it is OK to use this editor.
+93 ;;^DD(1.2,2,9)
+94 ;;=@
+95 ;;^DD(1.2,2,21,0)
+96 ;;=^^9^9^2920513^^^^
+97 ;;^DD(1.2,2,21,1,0)
+98 ;;=This field holds MUMPS code used to pre-check the environment before
+99 ;;^DD(1.2,2,21,2,0)
+100 ;;=allowing the user to enter this editor. This field should set the
+101 ;;^DD(1.2,2,21,3,0)
+102 ;;=$TEST indicator. If $TEST is true then it is OK for this editor to
+103 ;;^DD(1.2,2,21,4,0)
+104 ;;=run at this time. If $T is false, the user will be returned to the
+105 ;;^DD(1.2,2,21,5,0)
+106 ;;=FileMan line editor.
+107 ;;^DD(1.2,2,21,6,0)
+108 ;;=
+109 ;;^DD(1.2,2,21,7,0)
+110 ;;=If the field is null, it will be the same as $T=true