On Sep 15, 2005, at 5:47 PM, Adi J. Sieker wrote:

I have a situation where the value of a control isn't available in bizobj.validateRecord. The script with a sample database is available from http:// www.adsworth.info/files/dabo/freeNotes.zip (4k) The only way to replicate the problem is double click in the list control to load a previously saved record. Then create a new note, menu item Notes/New. When you now save the note, Notes/Save, the values entered aren't available in bizNotes.validateRecord.

Anyone have an idea what I'm doing wrong?

Yes - on line 379 of freeNotes.py, in your afterInit() method of your form, you are calling self.new(), which is adding a new, empty record to your recordset. It is this empty record that is being caught by validateRecord(). Comment out that line, and it works just fine.


-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users

Reply via email to