2 fields with onleave method

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

2 fields with onleave method

Postby Harjo » Thu Jul 03, 2003 9:59 am

I have 2 fields:
field 1: postcode (TEXT)
field 2: plaats (TEXT)

Those 2 fields are place right next to eachother.
Both fields have on Onleave-method

field 1: postcode = postcode.toUpperCase();
field 2: plaats = plaats.toUpperCase();

Create a new record. When I fill in field 1 and than leave field 1, for some reason the method of field 2 is triggered resulting in:

Error while executing method with name capitalize_plaats, id 2155
Cannot convert null to an object

This make sense, because I did'nt fill in this field yet.
How is it possible that the method of field2 is triggered before I entered it??
Harjo
 
Posts: 4321
Joined: Fri Apr 25, 2003 11:42 pm
Location: DEN HAM OV, The Netherlands

Postby Jan Aleman » Fri Jul 04, 2003 8:24 am

Strange. Are you sure you have tied the correct method to the correct field? Also double check the contents of your methods. I've done some extensive testing with RC3 and can't reproduce the problem you mention. If you CAN reproduce it please email a small solution that shows the problem to: support@servoy.com with a short description
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Jan Aleman » Fri Jul 04, 2003 10:45 am

Interestingly enough this appears to work well on linux and incorrect on windows. Unfortunately its a Java swing issue that is beyond our control. Using onChange is recommended in this situation.
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Postby Guest » Thu Jul 17, 2003 10:41 am

This is fixed in the next build/release (after RC4)
Guest
 


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 14 guests

cron