New Posts New Posts RSS Feed: Validation Levels
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Validation Levels

 Post Reply Post Reply
Author
jbelci View Drop Down
Newbie
Newbie
Avatar

Joined: 09-Oct-2011
Location: Perth
Posts: 5
Post Options Post Options   Quote jbelci Quote  Post ReplyReply Direct Link To This Post Topic: Validation Levels
    Posted: 09-Oct-2011 at 7:23pm
Hi Guys

I am trying to implement a 3 level validation system inside my app using dev force verification. The basic concept is to have 3 levels
1) Error - Data must be fixed prior to saving (e.g null values in nullable column)
2) Serious warning - To save this data, user must log in with an admin account and give reasons why (e.g. fails non critical business rules)
3) Warining - all users can save, just want to display as an issue.

So we do want to have the system save data even if there is a data error (in certain circumstances).

My questions are
1) is this even possible?
2) are there any code snippets available to help or can someone guide me in the right direction to get this working

Thanks
Jason
Back to Top
sbelini View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 13-Aug-2010
Location: Oakland
Posts: 786
Post Options Post Options   Quote sbelini Quote  Post ReplyReply Direct Link To This Post Posted: 13-Oct-2011 at 10:49am
Hi Jason,

You can implement a custom verifier that would return an error or warning.

You can find examples on custom Verifiers in the DevForce Resource Center.

Note that when returning a VerifierResult, you can return: 

                             .ErrorInsuficientData
                             .Ok
                             .OkNotApplicable
                             .OkWarning

Regards,
   Silvio.
Back to Top
jbelci View Drop Down
Newbie
Newbie
Avatar

Joined: 09-Oct-2011
Location: Perth
Posts: 5
Post Options Post Options   Quote jbelci Quote  Post ReplyReply Direct Link To This Post Posted: 16-Oct-2011 at 6:45pm
Thanks Silvio

Thats given me some ideas.  I'll play with it and see what i can do

Jason
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down