onDataChange returns false but allows to loose focus

Hi All!

onDataChange event returns false (my validation method), colors the field contents in red and would not allow me to tab out of the field.
However, the user can click other elements on the form like ‘save’ or ‘search’ buttons with the mouse - that will allow them to get away leaving the wrong value in the field and even save data.

Is it the expected behaviour or a bug?
I’ve tried to put a validation method in onFocusLost and return the focus to the field with elements[elementName].requestFocus() in case of a failed validation.
But it still allows me to click on the buttons that will save the data. The buttons are on the same form as the field.

Cheers,
Maria

Maria,

Which version of Servoy is this?
And are you using webclient or smartclient?

Rob

rgansevles:
Maria,

Which version of Servoy is this?
And are you using webclient or smartclient?

Rob

Hi Rob,

It’s Servoy Version: 5.1.4 - build 964 and I’m using the Smart Client.

Cheers,
Maria

Maria,

This is not expected behaviour.
I could not reproduce this in a small test.
Please create a case in our support system, attach a sample solution that shows this.

http://servoy.com/s

Rob

rgansevles:
Maria,

This is not expected behaviour.
I could not reproduce this in a small test.
Please create a case in our support system, attach a sample solution that shows this.

http://servoy.com/s

Rob

Thanks Rob.
I’m having trouble reproducing the behaviour in a sample solution, will see what I can do about it.

Cheers,
Maria