File:  [Coherent Logic Development] / freem_fileman / USER / DINIT292.m
Revision 1.1: download - view: text, annotated - select for diffs
Mon Apr 28 14:13:20 2025 UTC (3 months ago) by snw
Branches: MAIN
CVS tags: HEAD
Restructure repository

    1: DINIT292	;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="" ^DINIT293 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(.403,14,0)
    7: 	;;=POST SAVE^K^^14;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
    8: 	;;^DD(.403,14,3)
    9: 	;;=This is Standard MUMPS code.
   10: 	;;^DD(.403,14,9)
   11: 	;;=@
   12: 	;;^DD(.403,14,21,0)
   13: 	;;=^^2^2^2940906^
   14: 	;;^DD(.403,14,21,1,0)
   15: 	;;=This is MUMPS code that is executed when the user saves changes.  It is 
   16: 	;;^DD(.403,14,21,2,0)
   17: 	;;=executed only if all data is valid, and after all data has been filed.
   18: 	;;^DD(.403,14,"DT")
   19: 	;;=2930813
   20: 	;;^DD(.403,15,0)
   21: 	;;=DESCRIPTION^.40315^^15;0
   22: 	;;^DD(.403,20,0)
   23: 	;;=DATA VALIDATION^K^^20;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
   24: 	;;^DD(.403,20,3)
   25: 	;;=Enter standard MUMPS code.
   26: 	;;^DD(.403,20,9)
   27: 	;;=@
   28: 	;;^DD(.403,20,21,0)
   29: 	;;=^^8^8^2940906^
   30: 	;;^DD(.403,20,21,1,0)
   31: 	;;=This is MUMPS code that is executed when the user attempts to save changes
   32: 	;;^DD(.403,20,21,2,0)
   33: 	;;=to the form.  If the code sets DDSERROR, the user is unable to save
   34: 	;;^DD(.403,20,21,3,0)
   35: 	;;=changes.  If the code sets DDSBR, the user is taken to the specified
   36: 	;;^DD(.403,20,21,4,0)
   37: 	;;=field.
   38: 	;;^DD(.403,20,21,5,0)
   39: 	;;= 
   40: 	;;^DD(.403,20,21,6,0)
   41: 	;;=In addition to $$GET^DDSVAL, PUT^DDSVAL, and HLP^DDSUTL, you 
   42: 	;;^DD(.403,20,21,7,0)
   43: 	;;=can use MSG^DDSUTL to print on a separate screen messages to the user 
   44: 	;;^DD(.403,20,21,8,0)
   45: 	;;=about the validity of the data.
   46: 	;;^DD(.403,21,0)
   47: 	;;=RECORD SELECTION PAGE^NJ5,1^^21;1^K:+X'=X!(X>999.9)!(X<1)!(X?.E1"."2N.N) X
   48: 	;;^DD(.403,21,3)
   49: 	;;=Type a Number between 1 and 999.9, 1 Decimal Digit
   50: 	;;^DD(.403,21,21,0)
   51: 	;;=^^12^12^2940906^
   52: 	;;^DD(.403,21,21,1,0)
   53: 	;;=Enter the page number of the page that is used for record selection.
   54: 	;;^DD(.403,21,21,2,0)
   55: 	;;= 
   56: 	;;^DD(.403,21,21,3,0)
   57: 	;;=If you define a Record Selection Page, the user can select another entry
   58: 	;;^DD(.403,21,21,4,0)
   59: 	;;=in the file, and, if LAYGO is allowed, add another entry into the file
   60: 	;;^DD(.403,21,21,5,0)
   61: 	;;=without exiting the form.  The Record Selection Page should be a pop-up
   62: 	;;^DD(.403,21,21,6,0)
   63: 	;;=page that contains one form-only field that performs a pointer-type read
   64: 	;;^DD(.403,21,21,7,0)
   65: 	;;=into the Primary File of the form.  The Record Selection Page property
   66: 	;;^DD(.403,21,21,8,0)
   67: 	;;=should be set equal to the Page Number of the Record Selection Page.
   68: 	;;^DD(.403,21,21,9,0)
   69: 	;;= 
   70: 	;;^DD(.403,21,21,10,0)
   71: 	;;=The user can open the Record Selection Page by pressing <PF1>L.  After the
   72: 	;;^DD(.403,21,21,11,0)
   73: 	;;=user selects a record and closes the Record Selection Page, the data for
   74: 	;;^DD(.403,21,21,12,0)
   75: 	;;=the selected record is displayed.
   76: 	;;^DD(.403,21,"DT")
   77: 	;;=2930225
   78: 	;;^DD(.403,40,0)
   79: 	;;=PAGE^.4031I^^40;0
   80: 	;;^DD(.403,40,"DT")
   81: 	;;=2930218
   82: 	;;^DD(.4031,0)
   83: 	;;=PAGE SUB-FIELD^^40^13
   84: 	;;^DD(.4031,0,"DT")
   85: 	;;=2940506
   86: 	;;^DD(.4031,0,"ID","WRITE")
   87: 	;;=D:$D(^(1))#2 EN^DDIOL($P(^(1),U),"","?12")
   88: 	;;^DD(.4031,0,"IX","AC",.4031,5)
   89: 	;;=
   90: 	;;^DD(.4031,0,"IX","B",.4031,.01)
   91: 	;;=
   92: 	;;^DD(.4031,0,"IX","C",.4031,7)
   93: 	;;=
   94: 	;;^DD(.4031,0,"NM","PAGE")
   95: 	;;=
   96: 	;;^DD(.4031,0,"UP")
   97: 	;;=.403
   98: 	;;^DD(.4031,.01,0)
   99: 	;;=PAGE NUMBER^MNJ5,1X^^0;1^K:+X'=X!(X>999.9)!(X<1)!(X?.E1"."2N.N)!$D(^DIST(.403,DA(1),40,"B",X)) X
  100: 	;;^DD(.4031,.01,1,0)
  101: 	;;=^.1
  102: 	;;^DD(.4031,.01,1,1,0)
  103: 	;;=.4031^B
  104: 	;;^DD(.4031,.01,1,1,1)
  105: 	;;=S ^DIST(.403,DA(1),40,"B",$E(X,1,30),DA)=""
  106: 	;;^DD(.4031,.01,1,1,2)
  107: 	;;=K ^DIST(.403,DA(1),40,"B",$E(X,1,30),DA)
  108: 	;;^DD(.4031,.01,3)
  109: 	;;=Enter a number between 1 and 999.9, up to 1 Decimal Digit, that identifies the page.
  110: 	;;^DD(.4031,.01,21,0)
  111: 	;;=^^2^2^2940907^^^
  112: 	;;^DD(.4031,.01,21,1,0)
  113: 	;;=This is the unique page number of the page.  You can use this number to
  114: 	;;^DD(.4031,.01,21,2,0)
  115: 	;;=refer to the page in ScreenMan functions and utilities.
  116: 	;;^DD(.4031,1,0)
  117: 	;;=HEADER BLOCK^P.404^DIST(.404,^0;2^Q
  118: 	;;^DD(.4031,1,1,0)
  119: 	;;=^.1
  120: 	;;^DD(.4031,1,1,1,0)
  121: 	;;=.403^AC
  122: 	;;^DD(.4031,1,1,1,1)
  123: 	;;=S ^DIST(.403,"AC",$E(X,1,30),DA(1),DA)=""
  124: 	;;^DD(.4031,1,1,1,2)
  125: 	;;=K ^DIST(.403,"AC",$E(X,1,30),DA(1),DA)
  126: 	;;^DD(.4031,1,1,1,"DT")
  127: 	;;=2930702
  128: 	;;^DD(.4031,1,3)
  129: 	;;=Enter the block which will be used as a header for this page.
  130: 	;;^DD(.4031,1,21,0)
  131: 	;;=^^7^7^2940907^^^
  132: 	;;^DD(.4031,1,21,1,0)
  133: 	;;=The header block always appears at row 1, column 1 relative to the page
  134: 	;;^DD(.4031,1,21,2,0)
  135: 	;;=on which it is defined.  It is for display purposes only -- the user
  136: 	;;^DD(.4031,1,21,3,0)
  137: 	;;=is unable to navigate to any of the fields on the header block.
  138: 	;;^DD(.4031,1,21,4,0)
  139: 	;;= 
  140: 	;;^DD(.4031,1,21,5,0)
  141: 	;;=Starting with Version 21 of FileMan, there is no need to use header

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