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

DVBA143P.m

Go to the documentation of this file.
DVBA143P ;ALB/RPM - PATCH DVBA*2.7*143 POST-INSTALL ;10/08/2009
 ;;2.7;AMIE;**143**;Apr 10, 1995;Build 4
 ;
 Q  ;NO DIRECT ENTRY
 ;
ENV ;Main entry point for Environment check point.
 ;
 Q
 ;
 ;
PRE ;Main entry point for Pre-init items.
 ;
 Q
 ;
 ;
POST ;Main entry point for Post-init items.
 ;
 N DVBERR
 D BMES^XPDUTL("*************************")
 D MES^XPDUTL("Start Parameter Updates")
 D MES^XPDUTL("*************************")
 ;
 S DVBERR=$$ENXPAR("PKG","DVBAB CAPRI ALLOW OLD VERSION","NO")
 D UPDMSG("DVBAB CAPRI ALLOW OLD VERSION",DVBERR)
 ;
 S DVBERR=$$ENXPAR("PKG","DVBAB CAPRI HIA UPDATE URL","http://vaww.domain.ext/hia/Downloads.htm")
 D UPDMSG("DVBAB CAPRI HIA UPDATE URL",DVBERR)
 ;
 S DVBERR=$$ENXPAR("PKG","DVBAB CAPRI MINIMUM VERSION","CAPRI GUI V2.7*123*0*A")
 D UPDMSG("DVBAB CAPRI MINIMUM VERSION",DVBERR)
 ;
 D MES^XPDUTL("*************************")
 D MES^XPDUTL("End Parameter Updates")
 D MES^XPDUTL("*************************")
 Q
 ;
ENXPAR(DVBENT,DVBPAR,DVBVAL) ;Update Parameter values
 ;
 ;  Input:
 ;    DVBENT - Parameter Entity
 ;    DVBPAR - Parameter Name
 ;    DVBVAL - Parameter Value
 ;
 ;  Output:
 ;    Function value - returns "0" on success;
 ;                     otherwise returns error#^errortext
 ;
 N DVBERR
 D EN^XPAR(DVBENT,DVBPAR,1,DVBVAL,.DVBERR)
 Q DVBERR
 ;
UPDMSG(DVBPAR,DVBERR) ;display update message
 ;
 ;  Input:
 ;    DVBPAR - Parameter Name
 ;    DVBERR - Parameter Update result
 ;
 ;  Output: none
 ; 
 I DVBERR D
 . D MES^XPDUTL(DVBPAR_" update FAILURE.")
 . D MES^XPDUTL("  Failure reason: "_DVBERR)
 E  D
 . D MES^XPDUTL(DVBPAR_" update SUCCESS.")
 Q