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

IBDFU7.m

Go to the documentation of this file.
  1. IBDFU7 ;ALB/CJM - ENCOUNTER FORM - (utilities to handle form locks);3/29/93
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;;APR 24, 1997
  1. LOCKFORM(FORM) ;locks the form - returns 0 if unsuccessful, 1 otherwise
  1. ;this lock is used to prevent multiple processes from simultaneously compiling a form
  1. L +^IBE(357,FORM,"LOCK1"):10
  1. Q $T
  1. ;
  1. LOCKFRM2(FORM) ;locks the form - returns 0 if unsuccessful, 1 otherwise
  1. ;this lock is used to prevent multiple users from editing a form simultaneously
  1. L +^IBE(357,FORM,"LOCK2"):5
  1. Q $T
  1. ;
  1. FREEFORM(FORM) ;unlocks the form
  1. L -^IBE(357,FORM,"LOCK1")
  1. Q
  1. ;
  1. FREEFRM2(FORM) ;unlocks the form locked by LOCKFRM2()
  1. L -^IBE(357,FORM,"LOCK2")
  1. Q
  1. ;
  1. ;
  1. LOCKMSG2(FORM) ;displays a message to the user for forms unavailable by LOCKFRM2()
  1. N FORMNAME
  1. S FORMNAME=$P($G(^IBE(357,FORM,0)),"^",1)
  1. W !!,"The form = '"_FORMNAME_"' is currently not available.",!,"It is being edited by another person.",!
  1. D PAUSE^IBDFU5
  1. Q