Kbase P68149: How to validate a single field within a Smart Data object?
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/18/2004 |
|
Status: Unverified
GOAL:
How to validate a single field within a Smart Data object?
GOAL:
Can I use <Field>Validate method when Smart Data object is used by web objects?
FACT(s) (Environment):
Progress 3.1x
FIX:
Create an internal procedure in your Smart Data object for each field you want to validate using the following template:
PROCEDURE <Field>Validate :
DEFINE INPUT PARAM pcVal AS CHARACTER NO-UNDO.
IF { pcVal is NOT accepted } RETURN <describe the error here>.
ELSE RETURN "".
END.
The internal procedure name is the field name followed by Validate keyword .
This method will work in all user interfaces GUI, CHUI, WEB, AppServer , etc