Error message not diplayed

Deskin, Bob Bob.Deskin@Cognos.COM
Fri, 7 Jan 2000 11:22:00 -0500


What format is WS-WRK-DATE. Ensure that it's large enough to hold 8 digits.
If there's a data conversion error in a procedure, you may be getting a beep
from that.

Bob Deskin              
PowerHouse Web Product Manager and Senior Product Advisor
Application Development Tools, Cognos Inc.
bob.deskin@cognos.com (613) 738-1338 ext 4205 FAX: (613) 228-3149
3755 Riverside Drive P.O. Box 9707 Stn. T, Ottawa ON K1G 4K9 CANADA


-----Original Message-----
From: jlkeepers@mmm.com [mailto:jlkeepers@mmm.com]
Sent: January 7, 2000 10:55 AM
To: powerh-l@lists.swau.edu
Subject: Error message not diplayed




Fellow PowerHouse users,

I am working on a quick screen in PH 8.19.c2 and am experienceing an
unusual anomaly.  If a user enters incorrect data into a field, an error
message should show up stating why the entry is bad.  The default PH errors
are showing fine, but the error message I coded doesn't show up.  All I get
is a beep!  Can anyone help?  Below is the code I have in place.

Thanks,
Jeff

TEMP WRK-DATE DATE CENTURY EXCLUDE OCCURS WITH PAL-HOURS-DETL

FIELD WRK-DATE FORMAT MMDDYY SEPARATOR '-' CENTURY EXCLUDE

PROCEDURE EDIT WRK-DATE
  BEGIN
;--------------------------------------------------------------------------
-
;1998/12/07 - Y2K - Change code to work for WRK-DATE
   LET WRK-YEAR = ASCII(FIELDVALUE)[1:2]
   IF WRK-YEAR > '49'
      THEN LET WS-WRK-DATE = NCONVERT('19' + ASCII(FIELDVALUE,6))
   IF WRK-YEAR < '50'
      THEN LET WS-WRK-DATE = NCONVERT('20' + ASCII(FIELDVALUE,6))
   IF WS-WRK-DATE LT BEG-DATE OR WS-WRK-DATE GT END-DATE
      THEN ERROR = "DATE MUST BE BETWEEN " + BEGDATE + " AND " + ENDDATE +
"."
  END
;
PROCEDURE PROCESS WRK-DATE
  BEGIN
;--------------------------------------------------------------------------
-
;1998/12/07 - Y2K - Add PROCESS procedure to set value of PAL-DATE
      LET PAL-DATE = ASCII(WRK-DATE,6)
  END
;


= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.