Annotation of freem_fileman/DINIT299.m, revision 1.1.1.1
1.1 snw 1: DINIT299 ;SFISC/MKO-SCREENMAN FILES ;11/28/94 11:42 AM
2: ;;21.0;VA FileMan;;Dec 28, 1994
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="" ^DINIT29A 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
5: Q Q
6: ;;^DD(.4044,0,"ID","WRITE1")
7: ;;=D EN^DDIOL($S($P($G(^(7)),U,2):" (Sub Page Link defined)",1:"")_$S($G(^(1)):" (Field #"_^(1)_")",1:"")_$S($P(^(0),U,5)]"":" ("_$P(^(0),U,5)_")",1:""),"","?0")
8: ;;^DD(.4044,0,"IX","B",.4044,.01)
9: ;;=
10: ;;^DD(.4044,0,"IX","C",.4044,1)
11: ;;=
12: ;;^DD(.4044,0,"IX","D",.4044,3.1)
13: ;;=
14: ;;^DD(.4044,0,"NM","FIELD")
15: ;;=
16: ;;^DD(.4044,0,"UP")
17: ;;=.404
18: ;;^DD(.4044,.01,0)
19: ;;=FIELD ORDER^MNJ4,1X^^0;1^K:X'=+$P(X,"E")!(X>99.9)!(X<0)!(X?.E1"."2N.N) X I $D(X),$D(^DIST(.404,DA(1),40,"B",X)) K X
20: ;;^DD(.4044,.01,1,0)
21: ;;=^.1
22: ;;^DD(.4044,.01,1,1,0)
23: ;;=.4044^B
24: ;;^DD(.4044,.01,1,1,1)
25: ;;=S ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)=""
26: ;;^DD(.4044,.01,1,1,2)
27: ;;=K ^DIST(.404,DA(1),40,"B",$E(X,1,30),DA)
28: ;;^DD(.4044,.01,3)
29: ;;=Enter a unique number between 0 and 99.9, inclusive, which represents the order in which the fields will be edited.
30: ;;^DD(.4044,.01,21,0)
31: ;;=^^2^2^2940907^
32: ;;^DD(.4044,.01,21,1,0)
33: ;;=The Field Order number determines the order in which users traverse the
34: ;;^DD(.4044,.01,21,2,0)
35: ;;=fields in the block as they press <RET>.
36: ;;^DD(.4044,1,0)
37: ;;=CAPTION^FX^^0;2^K:$L(X)>80!($L(X)<1) X S:$E($G(X))="!"&($G(X)'="!M") X=$$FUNC^DDSCAP(X)
38: ;;^DD(.4044,1,1,0)
39: ;;=^.1^^-1
40: ;;^DD(.4044,1,1,2,0)
41: ;;=.4044^C^MUMPS
42: ;;^DD(.4044,1,1,2,1)
43: ;;=S:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)=""
44: ;;^DD(.4044,1,1,2,2)
45: ;;=K:X'="!M" ^DIST(.404,DA(1),40,"C",$TR($E($S(X?1"Select "1.E:$P(X,"Select ",2,99),1:X),1,63),"abcdefghijklmnopqrstuvwxyz","ABCDEFGHIJKLMNOPQRSTUVWXYZ"),DA)
46: ;;^DD(.4044,1,1,2,3)
47: ;;=Programmer only
48: ;;^DD(.4044,1,1,2,"%D",0)
49: ;;=^^2^2^2931029^^^^
50: ;;^DD(.4044,1,1,2,"%D",1,0)
51: ;;=This cross referenced is used to allow selection of fields by caption name
52: ;;^DD(.4044,1,1,2,"%D",2,0)
53: ;;=as well as by order number when entering new fields in the block.
54: ;;^DD(.4044,1,1,2,"DT")
55: ;;=2920214
56: ;;^DD(.4044,1,3)
57: ;;=Answer must be 1-80 characters in length.
58: ;;^DD(.4044,1,21,0)
59: ;;=^^6^6^2940907^
60: ;;^DD(.4044,1,21,1,0)
61: ;;=A caption is uneditable text that appears on the screen. Captions of
62: ;;^DD(.4044,1,21,2,0)
63: ;;=data dictionary, form-only, and computed fields serve to identify for
64: ;;^DD(.4044,1,21,3,0)
65: ;;=the user the data portion of the fields. Captions for these types of
66: ;;^DD(.4044,1,21,4,0)
67: ;;=fields are automatically followed by a colon, unless the Suppress Colon
68: ;;^DD(.4044,1,21,5,0)
69: ;;=After Caption property is set to 'YES.' A field with an Executable
70: ;;^DD(.4044,1,21,6,0)
71: ;;=Caption must have '!M' as a Caption.
72: ;;^DD(.4044,1,"DT")
73: ;;=2940629
74: ;;^DD(.4044,1.1,0)
75: ;;=EXECUTABLE CAPTION^K^^.1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
76: ;;^DD(.4044,1.1,3)
77: ;;=Enter standard MUMPS code that sets the variable Y.
78: ;;^DD(.4044,1.1,9)
79: ;;=@
80: ;;^DD(.4044,1.1,21,0)
81: ;;=^^3^3^2940907^^
82: ;;^DD(.4044,1.1,21,1,0)
83: ;;=Enter MUMPS code that sets the variable Y equal to the caption you
84: ;;^DD(.4044,1.1,21,2,0)
85: ;;=want displayed. This code is executed and the caption evaluated whenever
86: ;;^DD(.4044,1.1,21,3,0)
87: ;;=the page on which this caption is located is painted.
88: ;;^DD(.4044,1.1,"DT")
89: ;;=2920218
90: ;;^DD(.4044,2,0)
91: ;;=FIELD TYPE^*S^0:UNKNOWN;1:CAPTION ONLY;2:FORM ONLY;3:DATA DICTIONARY FIELD;4:COMPUTED;^0;3^Q
92: ;;^DD(.4044,2,1,0)
93: ;;=^.1^^0
94: ;;^DD(.4044,2,3)
95: ;;=
96: ;;^DD(.4044,2,12)
97: ;;=Enter the field type.
98: ;;^DD(.4044,2,12.1)
99: ;;=S DIC("S")="I Y"
100: ;;^DD(.4044,2,21,0)
101: ;;=^^11^11^2940907^
102: ;;^DD(.4044,2,21,1,0)
103: ;;=Enter the field type.
104: ;;^DD(.4044,2,21,2,0)
105: ;;=
106: ;;^DD(.4044,2,21,3,0)
107: ;;=CAPTION ONLY fields are for displaying text on the screen.
108: ;;^DD(.4044,2,21,4,0)
109: ;;=
110: ;;^DD(.4044,2,21,5,0)
111: ;;=FORM ONLY fields are fields defined only on the form and are not tied to a
112: ;;^DD(.4044,2,21,6,0)
113: ;;=field in a FileMan file.
114: ;;^DD(.4044,2,21,7,0)
115: ;;=
116: ;;^DD(.4044,2,21,8,0)
117: ;;=DATA DICTIONARY fields are fields from a FileMan file.
118: ;;^DD(.4044,2,21,9,0)
119: ;;=
120: ;;^DD(.4044,2,21,10,0)
121: ;;=COMPUTED fields, like form-only fields, are fields that are defined only
122: ;;^DD(.4044,2,21,11,0)
123: ;;=on the form. Associated with a COMPUTED field is a computed expression.
124: ;;^DD(.4044,2,"DT")
125: ;;=2940907
126: ;;^DD(.4044,3,0)
127: ;;=DISPLAY GROUP^F^^0;4^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>20!($L(X)<1) X
128: ;;^DD(.4044,3,3)
129: ;;=Enter text, 1-20 characters in length, which represents the group to which this field belongs.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>