Skip to main content

Validation?

1 reply [Last post]
netsql
Offline
Joined: 2004-03-07
Points: 0

How to do validataion in JDNC?
tia.
.V

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anonymous

JDNC currently supports both field and form-level validation, such that values entered into GUI components can be validated BEFORE being pushed to the client's local data model.

The general idea is that you describe validation constraints in the MetaData for your data model (e.g. for each column in your tabular data model) and then JDNC's default form and data-binding support will ensure that validation logic gets run (and implements appropriate user feedback) at the right time.

The MetaData object supports configuring validation in a number of ways - with specific properties (isRequired, minimum, maximum, etc), as well as being able to add general Validator objects that can execute custom application logic.

If you describe more precisely what functionality you are looking for, I can dredge up a code example.

Aim