Question

I'm using ValuesManager (can link multiple DynamicForms into one request) but to simplify this example let's assume I'm using simple DynamicForm with some DataSource.

When on DynamicForm I run method validate() it's use Client-Side Validators I wrote for my purposes. That's ok. But also I want to validate data on Server-Side.

I don't want to use method saveData() because I want to show pop-up window with confirmation entered data.

Is there any way to force ServerSide validation without calling saveData ?

PS. setUseLocalValidators(false) (on DataSource object) seems doesn't change this behaviour.

Was it helpful?

Solution

If you are using a dataSource you can call

validateData(values[, callback, requestProperties])

Smartclient 8.3 documentation DataSource.validateData

I use Smartclient on the client-side only but I've used this to call my own server-side validation.

I'm sorry I don't have any sample code available.

OTHER TIPS

Could you try overriding validate of your DynamicForm and add inside the new method code calling the server validation code?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top