source: FOIAVistA/trunk/r/VA_FILEMAN-ARJT-DI-DD-DM-DT-%DT-%RCR/DINIT285.m@ 767

Last change on this file since 767 was 628, checked in by George Lilly, 15 years ago

initial load of FOIAVistA 6/30/08 version

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