Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DINIT294

DINIT294.m

Go to the documentation of this file.
  1. DINIT294 ;SFISC/MKO-FORM AND BLOCK FILES ;1:30 PM 21 Apr 1999 [ 04/02/2003 8:25 AM ]
  1. ;;22.0;VA FileMan;**1001**;APR 1, 2003
  1. ;;22.0;VA FileMan;**8**;Mar 30, 1999
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. F I=1:2 S X=$T(Q+I) Q:X="" 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
  1. G ^DINIT295
  1. Q Q
  1. ;;^DD(.4032,3,21,5,0)
  1. ;;=of those two kinds of fields so that the user can press <RET> to view or
  1. ;;^DD(.4032,3,21,6,0)
  1. ;;=edit the subfields in the multiple or invoke an editor to view the
  1. ;;^DD(.4032,3,21,7,0)
  1. ;;=contents of the word processing field.
  1. ;;^DD(.4032,3,"DT")
  1. ;;=2940413
  1. ;;^DD(.4032,4,0)
  1. ;;=POINTER LINK^FX^^1;1^K:$L(X)>245!($L(X)<1) X I $D(X) D PLINK^DDSIT
  1. ;;^DD(.4032,4,3)
  1. ;;=Answer must be 1-245 characters in length.
  1. ;;^DD(.4032,4,21,0)
  1. ;;=^^9^9^2940907^^
  1. ;;^DD(.4032,4,21,1,0)
  1. ;;=If the fields displayed in this block are reached through a relational
  1. ;;^DD(.4032,4,21,2,0)
  1. ;;=jump from the primary file of the form, enter the relational expression
  1. ;;^DD(.4032,4,21,3,0)
  1. ;;=that describes this jump. Your frame of reference is the primary file of
  1. ;;^DD(.4032,4,21,4,0)
  1. ;;=the form.
  1. ;;^DD(.4032,4,21,5,0)
  1. ;;=
  1. ;;^DD(.4032,4,21,6,0)
  1. ;;=For example, if the primary file has a field #999 called TEST that points
  1. ;;^DD(.4032,4,21,7,0)
  1. ;;=to the file associated with this block, enter
  1. ;;^DD(.4032,4,21,8,0)
  1. ;;=
  1. ;;^DD(.4032,4,21,9,0)
  1. ;;= 999 or TEST
  1. ;;^DD(.4032,4,"DT")
  1. ;;=2931201
  1. ;;^DD(.4032,5,0)
  1. ;;=REPLICATION^NJ3,0^^2;1^K:+X'=X!(X>999)!(X<2)!(X?.E1"."1N.N) X
  1. ;;^DD(.4032,5,3)
  1. ;;=Type a Number between 2 and 999, 0 Decimal Digits
  1. ;;^DD(.4032,5,21,0)
  1. ;;=^^3^3^2940907^^
  1. ;;^DD(.4032,5,21,1,0)
  1. ;;=If this is a repeating block, enter the number of times the fields
  1. ;;^DD(.4032,5,21,2,0)
  1. ;;=defined in this block should be replicated. If used, this number must
  1. ;;^DD(.4032,5,21,3,0)
  1. ;;=be greater than 1.
  1. ;;^DD(.4032,5,"DT")
  1. ;;=2940503
  1. ;;^DD(.4032,6,0)
  1. ;;=INDEX^F^^2;2^K:$L(X)>63!($L(X)<1) X
  1. ;;^DD(.4032,6,3)
  1. ;;=Answer must be 1-63 characters in length.
  1. ;;^DD(.4032,6,21,0)
  1. ;;=^^7^7^2941020^
  1. ;;^DD(.4032,6,21,1,0)
  1. ;;=Enter the name of the cross reference that should be used to pick up the
  1. ;;^DD(.4032,6,21,2,0)
  1. ;;=subentries in the multiple. ScreenMan will initially display the
  1. ;;^DD(.4032,6,21,3,0)
  1. ;;=subentries to the user sorted in the order defined by this index. The
  1. ;;^DD(.4032,6,21,4,0)
  1. ;;=default INDEX is B.
  1. ;;^DD(.4032,6,21,5,0)
  1. ;;=
  1. ;;^DD(.4032,6,21,6,0)
  1. ;;=If the multiple has no index, or you wish to display the subentries
  1. ;;^DD(.4032,6,21,7,0)
  1. ;;=in record number order, enter !IEN.
  1. ;;^DD(.4032,6,"DT")
  1. ;;=2940503
  1. ;;^DD(.4032,7,0)
  1. ;;=INITIAL POSITION^S^f:FIRST;l:LAST;n:NEW;^2;3^Q
  1. ;;^DD(.4032,7,21,0)
  1. ;;=^^5^5^2940908^
  1. ;;^DD(.4032,7,21,1,0)
  1. ;;=This is the position in the list where the cursor should initially rest
  1. ;;^DD(.4032,7,21,2,0)
  1. ;;=when the user first navigates to the repeating block. Possible values are
  1. ;;^DD(.4032,7,21,3,0)
  1. ;;=FIRST, LAST, and NEW, where NEW indicates that the cursor should initially
  1. ;;^DD(.4032,7,21,4,0)
  1. ;;=rest on the blank line at the end of the list. The default INITIAL
  1. ;;^DD(.4032,7,21,5,0)
  1. ;;=POSITION is FIRST.
  1. ;;^DD(.4032,7,"DT")
  1. ;;=2940503
  1. ;;^DD(.4032,8,0)
  1. ;;=DISALLOW LAYGO^S^0:NO;1:YES;^2;4^Q
  1. ;;^DD(.4032,8,21,0)
  1. ;;=^^3^3^2940907^^
  1. ;;^DD(.4032,8,21,1,0)
  1. ;;=If set to YES, this prohibits the user from entering new subentries into
  1. ;;^DD(.4032,8,21,2,0)
  1. ;;=the multiple. If null or set to NO, the setting in the data dictionary
  1. ;;^DD(.4032,8,21,3,0)
  1. ;;=determines whether LAYGO is allowed.
  1. ;;^DD(.4032,8,"DT")
  1. ;;=2940505
  1. ;;^DD(.4032,9,0)
  1. ;;=FIELD FOR SELECTION^F^^2;5^K:$L(X)>30!($L(X)<1) X
  1. ;;^DD(.4032,9,3)
  1. ;;=Answer must be 1-30 characters in length.
  1. ;;^DD(.4032,9,21,0)
  1. ;;=^^5^5^2940907^^
  1. ;;^DD(.4032,9,21,1,0)
  1. ;;=This is the field order of the field that defines the column position of
  1. ;;^DD(.4032,9,21,2,0)
  1. ;;=the blank line at the end of the list. The default is the first editable
  1. ;;^DD(.4032,9,21,3,0)
  1. ;;=field in the block. This is also the field before which ScreenMan prints
  1. ;;^DD(.4032,9,21,4,0)
  1. ;;=the plus sign (+) to indicate there are more entries above or below the
  1. ;;^DD(.4032,9,21,5,0)
  1. ;;=displayed list.
  1. ;;^DD(.4032,9,"DT")
  1. ;;=2940506
  1. ;;^DD(.4032,10,0)
  1. ;;=ASK 'OK'^S^0:NO;1:YES;^2;6^Q
  1. ;;^DD(.4032,10,21,0)
  1. ;;=^^5^5^2990420^
  1. ;;^DD(.4032,10,21,1,0)
  1. ;;=Answer 'YES' to ask the user whether the looked-up entry is 'OK'. If only
  1. ;;^DD(.4032,10,21,2,0)
  1. ;;=one match is made to the user's lookup value, then ScreenMan will ask
  1. ;;^DD(.4032,10,21,3,0)
  1. ;;="OK?" instead of automatically selecting the found entry. This property
  1. ;;^DD(.4032,10,21,4,0)
  1. ;;=corresponds to the "V" flag in the DIC(0) input variable to ^DIC and only
  1. ;;^DD(.4032,10,21,5,0)
  1. ;;=pertains to multiple-valued fields.
  1. ;;^DD(.4032,10,"DT")
  1. ;;=2990420
  1. ;;^DD(.4032,11,0)
  1. ;;=PRE ACTION^K^^11;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4032,11,3)
  1. ;;=This is Standard MUMPS code.
  1. ;;^DD(.4032,11,9)
  1. ;;=@
  1. ;;^DD(.4032,11,21,0)
  1. ;;=^^5^5^2940907^
  1. ;;^DD(.4032,11,21,1,0)
  1. ;;=Enter MUMPS code that is executed whenever the user reaches this block.
  1. ;;^DD(.4032,11,21,2,0)
  1. ;;=
  1. ;;^DD(.4032,11,21,3,0)
  1. ;;=This pre-action is a characteristic of the block only as it is used on
  1. ;;^DD(.4032,11,21,4,0)
  1. ;;=this form. If you place this block on another form, you can define a
  1. ;;^DD(.4032,11,21,5,0)
  1. ;;=different pre-action.
  1. ;;^DD(.4032,11,"DT")
  1. ;;=2930610
  1. ;;^DD(.4032,12,0)
  1. ;;=POST ACTION^K^^12;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.4032,12,3)
  1. ;;=This is Standard MUMPS code.
  1. ;;^DD(.4032,12,9)
  1. ;;=@
  1. ;;^DD(.4032,12,21,0)
  1. ;;=^^5^5^2940907^
  1. ;;^DD(.4032,12,21,1,0)
  1. ;;=Enter MUMPS code that is executed whenever the user leaves this block.
  1. ;;^DD(.4032,12,21,2,0)
  1. ;;=
  1. ;;^DD(.4032,12,21,3,0)
  1. ;;=This post-action is a characteristic of the block only as it is used on
  1. ;;^DD(.4032,12,21,4,0)
  1. ;;=this form. If you place this block on another form, you can define a
  1. ;;^DD(.4032,12,21,5,0)
  1. ;;=different post-action.
  1. ;;^DD(.4032,12,"DT")
  1. ;;=2930610