BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

dynamic validation rules on CDS

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop)
View previous topic :: View next topic  
Author Message
Martin Stephenson
Guest





PostPosted: Fri Apr 09, 2004 4:48 pm    Post subject: dynamic validation rules on CDS Reply with quote



I'm writing a generic reference table maintenance application. As new
tables are introduced I dont want to keep changing this application so
basically it allows selection of a table, the contents are loaded via a COM+
DM into CDS and displayed for editing in a grid (I'm actually using a
Devexpress QuantumGrid).

I would like to be able to define simple validation rules for the tables,
for example (Col1.Value='Y' or 'N'), Convert to Upper, Min Value, Max Value
etc. These rules will be saved somewhere, probably in the database in
another table and loaded up dynamically. As the user edits data if any rule
has been defined for the edited column then it should be applied and an
exception will be generated if the new data is invalid.

Can anyone suggest the best way of approaching this please.

Regards
Martin


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (Desktop) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.