Re: [Essentialdata-discuss] row-level validation
Brought to you by:
dankib01
From: Dave O. <dj...@co...> - 2005-01-20 21:18:38
|
Alex Garrett wrote: > I have some relational data in a row that I need to validate and I'm > having some trouble determining essentially how to do it. For example, > consider an MROTable that has columns for Name, Score and Max Score > and you want to validate that Score <= Max Score. What I want to be > able to do is color the row red if this criterion isn't met and color > it green if it is. Here's how: Put an IValidator on the Score property that range-checks that Score < Max Score. ED will let the user move around within the row (using the mouse), but will color the Score field yellow if it fails this validation test. And it won't allow the user to move off the row entirely until all fields within the row (including the Score field) pass all validity tests. Regards, Dave Orme -- Got Java? Use db4objects! <http://www.db4o.com> PGP Public Key (for confidential communications): http://www.coconut-palm-software.com/~djo/public_key.txt |