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

DINIT001.m

Go to the documentation of this file.
  1. DINIT001 ; SFISC/TKW-DIALOG & LANGUAGE FILE INITS ;11:25 AM 22 Aug 2006
  1. ;;22.0;VA FileMan;**150**;Mar 30, 1999;Build 2
  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. Q Q
  1. ;;^DIC(.84,0,"GL")
  1. ;;=^DI(.84,
  1. ;;^DIC("B","DIALOG",.84)
  1. ;;=
  1. ;;^DIC(.84,"%D",0)
  1. ;;=^^8^8^2941121^^^^
  1. ;;^DIC(.84,"%D",1,0)
  1. ;;=This file stores the dialog used to 'talk' to a user (error messages,
  1. ;;^DIC(.84,"%D",2,0)
  1. ;;=help text, and other prompts.) Entry points in the ^DIALOG routine
  1. ;;^DIC(.84,"%D",3,0)
  1. ;;=retrieve text from this file. Variable parameters can be passed to these
  1. ;;^DIC(.84,"%D",4,0)
  1. ;;=calls. The parameters are inserted into windows within the text as it is
  1. ;;^DIC(.84,"%D",5,0)
  1. ;;=built. The text is returned in an array. This file and associated calls
  1. ;;^DIC(.84,"%D",6,0)
  1. ;;=can be used by any package to pass information in arrays rather than
  1. ;;^DIC(.84,"%D",7,0)
  1. ;;=writing to the current device. Record numbers 1 through 10000 are
  1. ;;^DIC(.84,"%D",8,0)
  1. ;;=reserved for VA FileMan.
  1. ;;^DD(.84,0)
  1. ;;=FIELD^^8^11
  1. ;;^DD(.84,0,"DT")
  1. ;;=2960426
  1. ;;^DD(.84,0,"ID","WRITE")
  1. ;;=N DIALID S DIALID(1)=$P($G(^(0)),U,5) S:DIALID(1)="" DIALID=+$O(^(2,0)),DIALID(1)=$E($G(^(DIALID,0)),1,42) S DIALID(1,"F")="?10" D EN^DDIOL(.DIALID)
  1. ;;^DD(.84,0,"IX","B",.84,.01)
  1. ;;=
  1. ;;^DD(.84,0,"IX","C",.84,1.2)
  1. ;;=
  1. ;;^DD(.84,0,"IX","D",.84,1.3)
  1. ;;=
  1. ;;^DD(.84,0,"NM","DIALOG")
  1. ;;=
  1. ;;^DD(.84,0,"PT",1.52192,4)
  1. ;;=
  1. ;;^DD(.84,.01,0)
  1. ;;=DIALOG NUMBER^RNJ14,3X^^0;1^K:+X'=X!(X>9999999999.999)!(('$G(DIFROM))&(X<10000.001))!(X?.E1"."4N.N) X S:$G(X) DINUM=X
  1. ;;^DD(.84,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.84,.01,1,1,0)
  1. ;;=.84^B
  1. ;;^DD(.84,.01,1,1,1)
  1. ;;=S ^DI(.84,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.84,.01,1,1,2)
  1. ;;=K ^DI(.84,"B",$E(X,1,30),DA)
  1. ;;^DD(.84,.01,3)
  1. ;;=Type a Number between 10000.001 and 9999999999.999, up to 3 Decimal Digits
  1. ;;^DD(.84,.01,21,0)
  1. ;;=^^1^1^2940523^
  1. ;;^DD(.84,.01,21,1,0)
  1. ;;=The dialogue number is used to uniquely identify a message.
  1. ;;^DD(.84,.01,"DT")
  1. ;;=2940623
  1. ;;^DD(.84,1,0)
  1. ;;=TYPE^RS^1:ERROR;2:GENERAL MESSAGE;3:HELP;^0;2^Q
  1. ;;^DD(.84,1,3)
  1. ;;=Enter code that reflects how this dialogue is used when talking to the users.
  1. ;;^DD(.84,1,21,0)
  1. ;;=^^2^2^2940523^
  1. ;;^DD(.84,1,21,1,0)
  1. ;;=This code is used to group the entries in the FileMan DIALOG file,
  1. ;;^DD(.84,1,21,2,0)
  1. ;;=according to how they are used when interacting with the user.
  1. ;;^DD(.84,1,23,0)
  1. ;;=^^3^3^2940523^
  1. ;;^DD(.84,1,23,1,0)
  1. ;;=This field is used to tell the DIALOG routines what array to use in
  1. ;;^DD(.84,1,23,2,0)
  1. ;;=returning the dialogue. It is also used for grouping the dialogue for
  1. ;;^DD(.84,1,23,3,0)
  1. ;;=reporting purposes.
  1. ;;^DD(.84,1,"DT")
  1. ;;=2940523
  1. ;;^DD(.84,1.2,0)
  1. ;;=PACKAGE^RP9.4'^DIC(9.4,^0;4^Q
  1. ;;^DD(.84,1.2,1,0)
  1. ;;=^.1
  1. ;;^DD(.84,1.2,1,1,0)
  1. ;;=.84^C
  1. ;;^DD(.84,1.2,1,1,1)
  1. ;;=S ^DI(.84,"C",$E(X,1,30),DA)=""
  1. ;;^DD(.84,1.2,1,1,2)
  1. ;;=K ^DI(.84,"C",$E(X,1,30),DA)
  1. ;;^DD(.84,1.2,1,1,"%D",0)
  1. ;;=^^3^3^2940623^
  1. ;;^DD(.84,1.2,1,1,"%D",1,0)
  1. ;;=Cross-reference on Package file. Used for identifying DIALOG entries by
  1. ;;^DD(.84,1.2,1,1,"%D",2,0)
  1. ;;=the package that owns the entry, and for populating the BUILD file during
  1. ;;^DD(.84,1.2,1,1,"%D",3,0)
  1. ;;=package distribution.
  1. ;;^DD(.84,1.2,1,1,"DT")
  1. ;;=2940623
  1. ;;^DD(.84,1.2,3)
  1. ;;=Enter the name of the Package that owns and distributes this entry.
  1. ;;^DD(.84,1.2,21,0)
  1. ;;=^^3^3^2940526^
  1. ;;^DD(.84,1.2,21,1,0)
  1. ;;=This is a pointer to the Package file. Each entry in this file belongs
  1. ;;^DD(.84,1.2,21,2,0)
  1. ;;=to, and is distributed by, a certain package. The Package field should be
  1. ;;^DD(.84,1.2,21,3,0)
  1. ;;=filled in for each entry on this file.
  1. ;;^DD(.84,1.2,"DT")
  1. ;;=2940623
  1. ;;^DD(.84,1.3,0)
  1. ;;=SHORT DESCRIPTION^F^^0;5^K:$L(X)>42!($L(X)<1) X
  1. ;;^DD(.84,1.3,1,0)
  1. ;;=^.1
  1. ;;^DD(.84,1.3,1,1,0)
  1. ;;=.84^D
  1. ;;^DD(.84,1.3,1,1,1)
  1. ;;=S ^DI(.84,"D",$E(X,1,30),DA)=""
  1. ;;^DD(.84,1.3,1,1,2)
  1. ;;=K ^DI(.84,"D",$E(X,1,30),DA)
  1. ;;^DD(.84,1.3,1,1,"DT")
  1. ;;=2960426
  1. ;;^DD(.84,1.3,3)
  1. ;;=Description used to identify entry on lookup. Answer must be 1-42 characters in length.
  1. ;;^DD(.84,1.3,21,0)
  1. ;;=^^2^2^2960426^
  1. ;;^DD(.84,1.3,21,1,0)
  1. ;;=Short description is used to identify an entry on lookup. The "WRITE"
  1. ;;^DD(.84,1.3,21,2,0)
  1. ;;=identifier will display this description if it is not null.
  1. ;;^DD(.84,1.3,"DT")
  1. ;;=2960426
  1. ;;^DD(.84,2,0)
  1. ;;=DESCRIPTION^.842^^1;0
  1. ;;^DD(.84,2,21,0)
  1. ;;=^^1^1^2930824^^
  1. ;;^DD(.84,2,21,1,0)
  1. ;;= Used for internal documentation purposes.
  1. ;;^DD(.84,3,0)
  1. ;;=INTERNAL PARAMETERS NEEDED^S^y:YES;^0;3^Q
  1. ;;^DD(.84,3,3)
  1. ;;=
  1. ;;^DD(.84,3,21,0)
  1. ;;=^^6^6^2931105^
  1. ;;^DD(.84,3,21,1,0)
  1. ;;= Some dialogue is built by inserting variable text (internal parameters)
  1. ;;^DD(.84,3,21,2,0)
  1. ;;=into windows in the word-processing TEXT field. The insertable text might
  1. ;;^DD(.84,3,21,3,0)
  1. ;;=be, for example, File or Field names. This field should be set to YES if
  1. ;;^DD(.84,3,21,4,0)
  1. ;;=any internal parameters need to be inserted into the TEXT. If the field
  1. ;;^DD(.84,3,21,5,0)
  1. ;;=is not set to YES, the DIALOG routine will not go through the part of the
  1. ;;^DD(.84,3,21,6,0)
  1. ;;=code that stuffs the internal parameters into the text.
  1. ;;^DD(.84,3,"DT")
  1. ;;=2931105
  1. ;;^DD(.84,4,0)
  1. ;;=TEXT^.844^^2;0
  1. ;;^DD(.84,4,21,0)
  1. ;;=^^7^7^2941122^
  1. ;;^DD(.84,4,21,1,0)
  1. ;;=Actual text of the message. If parameters (variable pieces of text) are
  1. ;;^DD(.84,4,21,2,0)
  1. ;;=to be inserted into the dialogue when the message is built, the parameter
  1. ;;^DD(.84,4,21,3,0)
  1. ;;=will appear as a 'window' in this TEXT field, surrounded by vertical bars.
  1. ;;^DD(.84,4,21,4,0)
  1. ;;=The data within the 'window' will represent a subscript of the input
  1. ;;^DD(.84,4,21,5,0)
  1. ;;=parameter list that is passed to BLD^DIALOG or $$EZBLD^DIALOG when
  1. ;;^DD(.84,4,21,6,0)
  1. ;;=building the message. This same subscript should be used as the .01 of the
  1. ;;^DD(.84,4,21,7,0)
  1. ;;=PARAMETER field in this file to document the parameter.
  1. ;;^DD(.84,5,0)
  1. ;;=PARAMETER^.845^^3;0
  1. ;;^DD(.84,6,0)
  1. ;;=POST MESSAGE ACTION^K^^6;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.84,6,3)
  1. ;;=This is Standard MUMPS code. This code will be executed whenever this message is retrieved through a call to BLD^DIALOG or $$EZBLD^DIALOG.
  1. ;;^DD(.84,6,9)
  1. ;;=@
  1. ;;^DD(.84,6,21,0)
  1. ;;=^^6^6^2941122^
  1. ;;^DD(.84,6,21,1,0)
  1. ;;=If some special action should be taken whenever this message is built,
  1. ;;^DD(.84,6,21,2,0)
  1. ;;=MUMPS code can be entered here. This code will be executed by the
  1. ;;^DD(.84,6,21,3,0)
  1. ;;=BLD^DIALOG or $$EZBLD^DIALOG routines, immediately after the message text
  1. ;;^DD(.84,6,21,4,0)
  1. ;;=has been built in the output array. For example, the code could set a