Annotation of freem_fileman/DINIT122.m, revision 1.1

1.1     ! snw         1: DINIT122       ;SFISC/TKW - INITIALIZE V21 SORT TEMPLATE DD NODES ;6/24/94  11:14
        !             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) 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
        !             5: Q      Q
        !             6:        ;;^DD(.4014,4.1,21,0)
        !             7:        ;;=^^6^6^2930125^
        !             8:        ;;^DD(.4014,4.1,21,1,0)
        !             9:        ;;=This contains all of the sort qualifiers that normally come after the
        !            10:        ;;^DD(.4014,4.1,21,2,0)
        !            11:        ;;=field number in the user dialogue for the sort options.  It includes
        !            12:        ;;^DD(.4014,4.1,21,3,0)
        !            13:        ;;=things like ;Cn (specify position of subheader) and ;"literal" to
        !            14:        ;;^DD(.4014,4.1,21,4,0)
        !            15:        ;;=replace the caption of the subheader.  These qualifiers are listed with
        !            16:        ;;^DD(.4014,4.1,21,5,0)
        !            17:        ;;=no delimiters, as they are found in the user dialogue.  (So you might see
        !            18:        ;;^DD(.4014,4.1,21,6,0)
        !            19:        ;;=something like ;C10;"My Subheader").
        !            20:        ;;^DD(.4014,4.1,23,0)
        !            21:        ;;=^^2^2^2930125^
        !            22:        ;;^DD(.4014,4.1,23,1,0)
        !            23:        ;;=This information is parsed from the user dialogue or from the BY
        !            24:        ;;^DD(.4014,4.1,23,2,0)
        !            25:        ;;=input variable, by the FileMan print routines DIP*.
        !            26:        ;;^DD(.4014,4.1,"DT")
        !            27:        ;;=2930125
        !            28:        ;;^DD(.4014,4.2,0)
        !            29:        ;;=COMPUTED FIELD TYPE^F^^0;7^K:$L(X)>10!($L(X)<1) X
        !            30:        ;;^DD(.4014,4.2,3)
        !            31:        ;;=Answer must be 1-10 characters in length.  Set by the print routine to something that looks like second piece of 0 node of DD (data type information) for on-the-fly computed fields or .001 field.
        !            32:        ;;^DD(.4014,4.2,21,0)
        !            33:        ;;=^^4^4^2931022^
        !            34:        ;;^DD(.4014,4.2,21,1,0)
        !            35:        ;;=This piece will contain a "D" if on-the-fly computed field results in a
        !            36:        ;;^DD(.4014,4.2,21,2,0)
        !            37:        ;;=date.  It will be set to something like NJ6,0 if sorting by the .001
        !            38:        ;;^DD(.4014,4.2,21,3,0)
        !            39:        ;;=field. (These are the only values I have been able to find for this
        !            40:        ;;^DD(.4014,4.2,21,4,0)
        !            41:        ;;=field.)
        !            42:        ;;^DD(.4014,4.2,23,0)
        !            43:        ;;=^^3^3^2931022^
        !            44:        ;;^DD(.4014,4.2,23,1,0)
        !            45:        ;;=Set in C^DIP0 if DICOMP tells us that an on-the-fly computed field will
        !            46:        ;;^DD(.4014,4.2,23,2,0)
        !            47:        ;;=result in a date, and in ^DIP is sorting by the .001 field on a file that
        !            48:        ;;^DD(.4014,4.2,23,3,0)
        !            49:        ;;=has one.
        !            50:        ;;^DD(.4014,4.2,"DT")
        !            51:        ;;=2931022
        !            52:        ;;^DD(.4014,4.3,0)
        !            53:        ;;=ASK FOR FROM AND TO^S^1:YES;^ASK;1^Q
        !            54:        ;;^DD(.4014,4.3,3)
        !            55:        ;;=Enter 1 (YES) if user is to be prompted for FROM/TO values for this SORT FIELD.
        !            56:        ;;^DD(.4014,4.3,21,0)
        !            57:        ;;=^^3^3^2930201^
        !            58:        ;;^DD(.4014,4.3,21,1,0)
        !            59:        ;;=If this node is defined: then when the PRINT Option is run, or during
        !            60:        ;;^DD(.4014,4.3,21,2,0)
        !            61:        ;;=a call to the programmer print EN1^DIP, the user will be prompted
        !            62:        ;;^DD(.4014,4.3,21,3,0)
        !            63:        ;;=for FROM and TO VALUES for this sort field.
        !            64:        ;;^DD(.4014,4.3,23,0)
        !            65:        ;;=^^4^4^2930201^
        !            66:        ;;^DD(.4014,4.3,23,1,0)
        !            67:        ;;=This field is created automatically when a template is being created or
        !            68:        ;;^DD(.4014,4.3,23,2,0)
        !            69:        ;;=edited, if the developer enters FROM/TO values, AND if the developer
        !            70:        ;;^DD(.4014,4.3,23,3,0)
        !            71:        ;;=then answers YES to the question "SHOULD TEMPLATE USER BE ASKED
        !            72:        ;;^DD(.4014,4.3,23,4,0)
        !            73:        ;;='FROM'-'TO' RANGE FOR field?"
        !            74:        ;;^DD(.4014,4.3,"DT")
        !            75:        ;;=2930201
        !            76:        ;;^DD(.4014,5,0)
        !            77:        ;;=FROM VALUE INTERNAL^F^^F;1^K:$L(X)>63!($L(X)<1) X
        !            78:        ;;^DD(.4014,5,3)
        !            79:        ;;=Answer must be 1-63 characters in length.  The starting point for the sort, derived by FileMan.
        !            80:        ;;^DD(.4014,5,21,0)
        !            81:        ;;=^^3^3^2930119^^
        !            82:        ;;^DD(.4014,5,21,1,0)
        !            83:        ;;=FileMan takes the FROM value entered by the user, and finds the first
        !            84:        ;;^DD(.4014,5,21,2,0)
        !            85:        ;;=value that will sort just before this value in order to derive the
        !            86:        ;;^DD(.4014,5,21,3,0)
        !            87:        ;;=starting point for the sort.
        !            88:        ;;^DD(.4014,5,23,0)
        !            89:        ;;=^^1^1^2930119^^
        !            90:        ;;^DD(.4014,5,23,1,0)
        !            91:        ;;=Calculated by the sort routine FRV^DIP1.
        !            92:        ;;^DD(.4014,5,"DT")
        !            93:        ;;=2930119
        !            94:        ;;^DD(.4014,6,0)
        !            95:        ;;=FROM VALUE EXTERNAL^F^^F;2^K:$L(X)>63!($L(X)<1) X
        !            96:        ;;^DD(.4014,6,3)
        !            97:        ;;=Answer must be 1-63 characters in length.  The starting point for the sort, as entered by the user.
        !            98:        ;;^DD(.4014,6,21,0)
        !            99:        ;;=^^1^1^2930115^
        !           100:        ;;^DD(.4014,6,21,1,0)
        !           101:        ;;=The FROM value for the sort, as it was entered by the user.
        !           102:        ;;^DD(.4014,6,"DT")
        !           103:        ;;=2930119
        !           104:        ;;^DD(.4014,6.5,0)
        !           105:        ;;=FROM VALUE PRINTABLE^F^^F;3^K:$L(X)>40!($L(X)<1) X
        !           106:        ;;^DD(.4014,6.5,3)
        !           107:        ;;=Answer must be 1-40 characters in length.  Used for storing printable form of date or set values.
        !           108:        ;;^DD(.4014,6.5,21,0)
        !           109:        ;;=^^3^3^2930216^^
        !           110:        ;;^DD(.4014,6.5,21,1,0)
        !           111:        ;;=This field is used to store a printable representation of the FROM value
        !           112:        ;;^DD(.4014,6.5,21,2,0)
        !           113:        ;;=entered by the user during the sort/print dialogue.  Used for date and
        !           114:        ;;^DD(.4014,6.5,21,3,0)
        !           115:        ;;=set-of-code data types.
        !           116:        ;;^DD(.4014,6.5,23,0)
        !           117:        ;;=^^1^1^2930216^
        !           118:        ;;^DD(.4014,6.5,23,1,0)
        !           119:        ;;=Built in CK^DIP12.
        !           120:        ;;^DD(.4014,6.5,"DT")
        !           121:        ;;=2930216
        !           122:        ;;^DD(.4014,7,0)
        !           123:        ;;=TO VALUE INTERNAL^F^^T;1^K:$L(X)>63!($L(X)<1) X

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>