#1177: enhance field validation
------------------------------+---------------------------------------------
Reporter: aecker | Owner: somebody
Type: discussion | Status: new
Priority: major | Milestone: 0.8.3
Component: biz | Version: 0.8.4
Keywords: field validation |
------------------------------+---------------------------------------------
I would like to enhance the field validation to reach:
(1) validation on each call to ctrl.flushValue() to prevent invalid data
in cursor record (even on checkbox and other ctrls) to be implemented like
in dDataControlMixinBase._lostFocus() (maybe redirect to).
(2) change default value of dDataControlMixinBase._inFldValid to True (in
__init__) and also set to True on any change of the field value (and
before revalidation) (and maybe rename var into something like
_fldInvalid) / if I dont misunderstood the implementation.
(3) provide a stronger, alternativly usable method to notify user (display
box instead of statusbar notification). E.g. if the message returned by
the overwritten biz.validateField() method contains an exclamation mark
then show as message box.
(4) alternativly (dending on Property value) set ctrl value back to the
old value on failed field validation or optionally mark ctrl with lightred
background color to inform user that there is still a invalid value
entered - to allow user to leave the field (lostfocus) with an wrong value
entered, maybe to instead correct another value in the same form which is
also involved in the validation result.
Any plans, thoughts, hints about this ?
--
Ticket URL: <http://trac.dabodev.com/ticket/1177>
Dabo Trac <http://trac.dabodev.com>
Trac Page for Dabo
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]