Bradley V. Stone wrote:
Looks good. Although I was able to enter a date in the past. :)

Yes. That's because the wtnRecGet() procedure only validates against DDS specifications (or equivalent SQL). And as far as I know, there's no way to specify a date range in file field descriptions.

But that's inline with the three validation stages that we discussed earlier in this thread.

1. before a form is submitted to the server (browser level validation).
2. before a field is mapped to a data structure.
3. before a record is written to the database.

The wtnRecGet() procedure automatically takes care of stage 2 validation & mapping. You could add RPG logic for stage 3 date range validation.

Nathan.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.