MAG FIELD VALIDATE

TITLEVALUE
NAMEMAG FIELD VALIDATE
DESCRIPTIONThis provides an interface with the VA Fileman Database Server (DBS)
API for the single field validator: VAL^DIE.
TAGDVAL
ROUTINEMAGQBUT4
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERFILE
DESCRIPTIONThis is the file number that contains the attribute to be validated.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH99

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERIENS
DESCRIPTIONThis is the record number or place holder of the entry being validated.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH99

INPUT PARAMETERSSEQUENCE NUMBER3
INPUT PARAMETERFIELD
DESCRIPTIONThis is the number of the file attribute to be validated.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH99

INPUT PARAMETERSSEQUENCE NUMBER4
INPUT PARAMETERFLAGS
DESCRIPTIONThis is the option set of parameters defined for the VAL^DIE
E External value is returned in RESULT(0).

F FDA node is set for valid data in array identified by FDA_ROOT.

H Help (single ?) is returned if VALUE is not valid.

R Record identified by IENS is verified to exist and to be editable. Do
not include "R" if there are placeholders in the IENS.

U Don't perform key validation. Without this flag, the data in VALUE is
checked to ensure that no duplicate keys are created and that key field
values are not deleted.
PARAMETER TYPELITERAL
REQUIREDNO
MAXIMUM DATA LENGTH99

INPUT PARAMETERSSEQUENCE NUMBER5
INPUT PARAMETERVALUE
DESCRIPTIONThis is the value to be validated.
PARAMETER TYPELITERAL
REQUIREDYES
MAXIMUM DATA LENGTH99

RETURN VALUE TYPESINGLE VALUE
RETURN PARAMETER DESCRIPTIONIt returns the resolved external value or -1 followed by the carat
delimiter and one of the following error messages:

120 Error occurred during execution of a FileMan hook.
299 Ambiguous value. (Variable Pointer data type only.)
405 The file is uneditable.
520 The field's data type or INPUT transform is inappropriate.
602 The entry cannot be edited.
701 Value is invalid.
710 The field is uneditable.
712 An inappropriate deletion of a field's value is being attempted.
740 A duplicate key is produced by a field's new value.
742 A value for a field in a key is being deleted.
1610 Help was improperly requested.
AVAILABILITYRESTRICTED
INACTIVEACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWED