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

Validate before a save

Last modified on August 15, 2012 17:22

By default DevForce validates every entity on the server before saving it to the data source.

The default validation 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 or other custom code.

Also see the topic on server-side validation for more information.

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 © 2015 IdeaBlade