How to validate user input

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
richardk
Posts: 1
Joined: Wed May 11, 2005 11:56 pm

How to validate user input

Post by richardk »

Could you explain how I would set up business rules to prevent the user saving an object if the business rules aren't correct? So, for example, I cannot create a client with a status of 'Single' who has an entry in a 'Spouse' field?
greg
Posts: 124
Joined: Sat Apr 23, 2005 12:46 am

Post by greg »

Not knowing particulars of your configuration, you can set up something like this:

IF User.Single='Yes' AND User.Spouse IS DEFINED
THEN REPORT ERROR 'User cannot both be single and have a spouse'
Post Reply