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

XBFLD2.m

Go to the documentation of this file.
  1. XBFLD2 ; IHS/ADC/GTH - INITIALIZATION FOR ^XBFLD ; [ 02/07/97 3:02 PM ]
  1. ;;3.0;IHS/VA UTILITIES;;FEB 07, 1997
  1. ;
  1. ; Part of XBFLD
  1. ;
  1. ; ^UTILITY("XBDSET",$J, is used to store the list of files
  1. ; to be listed so that other software can pass files to be
  1. ; listed to the external entry point EN^XBFLD, and the other
  1. ; software could select files by using ^XBDSET.
  1. ;
  1. INIT ; INITIALIZATION
  1. NEW XBFILE
  1. D ^XBKVAR
  1. KILL ^UTILITY($J),^UTILITY("XBDSET",$J)
  1. S XBQFLG=0
  1. D ^XBDSET
  1. S:'$D(^UTILITY("XBDSET",$J)) XBQFLG=1
  1. Q:XBQFLG
  1. D FORMAT^XBFLD
  1. D DEVICE ; Get device
  1. Q
  1. ;
  1. DEVICE ; GET DEVICE (QUEUEING ALLOWED)
  1. XBLM ;
  1. S Y=$$DIR^XBDIR("S^P:PRINT Output;B:BROWSE Output on Screen","Do you wish to ","P","","","",1)
  1. KILL DA
  1. Q:$D(DIRUT)
  1. I Y="B" S XBFLD("BROWSE")=1 D VIEWR^XBLM("EN^XBFLD"),FULL^VALM1 W:$D(IOF) @IOF D Q
  1. . D CLEAR^VALM1 ;clears out all list man stuff
  1. . KILL XQORNEST,VALMKEY,VALM,VALMAR,VALMBCK,VALMBG,VALMCAP,VALMCNT,VALMOFF,VALMCON,VALMDN,VALMEVL,VALMIOXY,VALMKEY,VALMLFT,VALMLST,VALMMENU,VALMSGR,VALMUP,VALMWD,VALMY,XQORS,XQORSPEW,VALMCOFF
  1. XBLME .Q
  1. S %ZIS="Q"
  1. D ^%ZIS
  1. I POP S XBQFLG=1 KILL POP Q
  1. I $D(IO("Q")) D S XBQFLG=1 Q
  1. . S ZTRTN="EN^XBFLD",ZTIO=ION,ZTDESC="List dictionary",ZTSAVE("^UTILITY(""XBDSET"",$J,")="",ZTSAVE("XBFMT")=""
  1. . D ^%ZTLOAD
  1. . W !!,$S($D(ZTSK):"Request queued!",1:"Request cancelled!")
  1. . D ^%ZISC
  1. . KILL ZTSK,IO("Q")
  1. . KILL ZTIO ; ^%ZTLOAD kills other ZT* variables, but not this one
  1. .Q
  1. U IO
  1. Q
  1. ;