Up Save
DevForce Resource Center » DevForce development » Save » Validate before a save

Validate before a save

Last modified on October 21, 2011 12:45

By default DevForce validates every entity on the server before saving it. This behavior can be modified by overriding the ValidateSave method in a custom EntityServerSaveInterceptor.

Client side validation is not performed automatically but can be easily accomplished via the EntityManager.Saving event.  



Handling validation errors

If any validation errors are encountered on the server, there are two mechanisms by which these errors are reported back to the EntityManager that performed the save. 

Any errors encountered can then be 'fixed' and the same save resubmitted again. 

Created by DevForce on February 19, 2011 18:59

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2012 IdeaBlade