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

XUTMKE2.m

Go to the documentation of this file.
  1. XUTMKE2 ;SEA/RDS - Taskman: Option, ZTME SCREEN*, Part 2 ;04/17/98 13:19 [ 04/02/2003 8:29 AM ]
  1. ;;8.0;KERNEL;**1002,1003,1004,1005,1007**;APR 1, 2003
  1. ;;8.0;KERNEL;**63,79**;Jul 10, 1995
  1. ;
  1. SCRAD ;Add Error Screens
  1. N DIE,DR,DA,DDSFILE,ZTX,ZTY
  1. ;S DA=+ZTY,DIE="^%ZTER(2,",DR=".02//L;.03;.04;2" D ^DIE
  1. D FORM(+ZTY) G AD
  1. ;
  1. SCSEL(%,%ZT) ;Select Error Screen
  1. N ZT,ZTE,DIC,DA,DIR
  1. W ! I $G(%ZT)="" S %ZT="Select ERROR SCREEN"
  1. G SEL1:$G(%)
  1. ;
  1. SEL0 S DIR(0)="PO^3.076:AEMQ"
  1. S DIR("A")=%ZT
  1. S DIR("?")="^D SCSELH^XUTMKE2"
  1. S DIR("??")="^D SCLIST^XUTMKE1"
  1. D ^DIR
  1. Q Y
  1. ;
  1. SEL1 S DIC=3.076,DIC(0)="AEMQL"
  1. S DIC("A")=%ZT_": ",DIC("DR")=".02//L"
  1. D ^DIC
  1. Q Y
  1. ;
  1. FORM(DA) ;Call the form.
  1. N DDSFILE,DR
  1. S DDSFILE="^%ZTER(2,",DR="[XUTMKE ADD]" D ^DDS
  1. Q
  1. SCSELH ;SCSEL--Text For ? Help
  1. W !!?5,"A screen is a string of characters."
  1. W !?5,"Taskman and %ZTER do not log errors whose error messages contain a screen."
  1. W !!?5,"For example, if a DSM-11 site routinely logs many disconnect errors each"
  1. W !?5,"day that cannot be prevented, the site manager could enter the screen"
  1. W !?5,"""DSCON"" to prevent these errors from being logged."
  1. W !!?5,"Enter ?? to see the screens that are currently in place."
  1. Q
  1. ;
  1. SCRED ;Edit Error Screen
  1. N DIR,DIRUT,DTOUT,DUOUT,ZTX,ZTY
  1. ED S ZTY=$$SCSEL(0,"Enter Error Screen to edit") Q:ZTY'>0
  1. ;S DA=+ZTY,DR=".03;.04;2",DIE="^%ZTER(2," D ^DIE
  1. D FORM(+ZTY)
  1. ;
  1. W !
  1. S DIR(0)="Y",DIR("A")="Do you want to reset the counter to zero"
  1. S DIR("B")="NO",DIR("?")=" Answer YES to erase the current count and start over."
  1. D ^DIR S ZTZ=X K DIR
  1. I $D(DIRUT) W !!?5,"Count NOT changed!" Q
  1. ;
  1. ED3 I Y=1 S ^%ZTER(2,+ZTY,3)=0 W !?5,"Counter reset!"
  1. G ED
  1. ;
  1. NAME ;Called from FORM XUTMKE field 1.
  1. N XUTM1,XUTM2 S XUTM1=^%ZTER(2,DA,0)
  1. D UNED^DDSUTL(1,"","",$P(XUTM1,U,5)) ;If national can't edit name
  1. D UNED^DDSUTL(6,"","",$P(XUTM1,U,5)) ;If national can't have alternative text.
  1. I $P(XUTM1,U,5) S XUTM2(1)="This is a Nationally released entry.",XUTM2(2)="Can't be deleted, name changed, have alternative text." D HLP^DDSUTL(.XUTM2)
  1. Q