Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Validation Error Dialog

$
0
0
Hi,

I've setup a server side validator like this:

Code:

<field name="CODE" type="text" title="$code" escapeHTML="true" required="true">
                <validators>
                                <validator type="isUnique" requiresServer="true" errorMessage="This code is already used."/>
                        </validators>
</field>

If I add a new record using the grid's addNewRecord() method, giving an already used 'CODE', the validator works as expected and triggers a warning.

My problem is that the displayed warning is not really user friendly (JSON Like display) and I would have expected to just have the custom error message I've configured in the DS.
Is it possible to have this without the need to enable the "willHandleErrors" for every single DSRequest I issue ?

Many Thanks,

Thomas

PS: SmartGwt 4.0p

Viewing all articles
Browse latest Browse all 4756

Trending Articles