Field values resetting other fields in form

Hi, all
I’m having quite the problem in my app.
I created a form which includes a integer field, text field, a date field with calendar and a field on a integer local variable attached to a combo box with a custom value list which contains values like “1 Fee|1”. This is supposed to show 1 Fee, but return 1 right??

  • The main issue is that no value is accepted at the calendar field. The calendar shows up but once you select a date it is resetted to null.

  • The other issue is that once I use the combo box, no matter which value I select, it automatically resettes every other field, except for the calendar, because of the previous error, and itself.

None of the fields has a method attached to it. Neither does de form. The only methods are the ones for a cancel button and a save button, but these are not clicked when the errors happen. Both errors happen on datachange, but no method is attached.
Servoy does not throw any exception at all, and there are no visible errors or warnings concerning this form.

I’ve already tried remaking the form (not a duplicate) and the issue continues. I did copy/paste the methods but it should not be a problem as they are not executed till I use a button.

Obviously this is driving me nutts…

Does anyone please have some idea of what might be happening???

Any comments on this would be very appreciated.
Thanks.

PD: I’m using Servoy 5.1 and this does not happen at any other form.

Hi,
Lets start with the obvious, did you check if you have a record in your foundset ?
Also you are talking about errors. What error messages do you see ?

Are you sure you have dataProviders attached to these fields?
And if attached to a table, do you create a new record before entering values in your fields?

If you answered no to one of these questions then what you see makes total sense.
To hold values, a field need a dataProvider.
If a dataProvider is coming from a table, you need to be on a valid record to enter values. By default Servoy will not create a new record for you.

Hope this helps,

hehehe :roll: i forgot creating the newRecord :mrgreen:
Of course it wont work without one… didnt ever crossed my mind thinking i could have forgot that
Thanks