Jacek, I tried "DefaultValues = None" (commented out "self.SaveNewUnchanged = True") But it doesn't help. The validation code is not fired. What do you do for validating newly added records? Do you use "self.SaveNewUnchanged = True" or anything else? Regards, ---Vineet From: Jacek Kałucki <[email protected]> To: Vineet Deodhar <[email protected]>; Dabo Users list <[email protected]> Sent: Saturday, 17 September 2011, 14:48 Subject: Re: [dabo-users] afterNew method for New record validation in bizobj
Użytkownik Vineet Deodhar napisał: > Maybe this is on purpose or a bug? No, it's a feature ;) Framework doesn't save unchanged fields, by default. But probably there is another problem. After issuing new, all fields are filled with default values, depending of field type, e.g. string fields are filled with empty string ''. This mean that setting this field to '' does nothing. To avoid such behaviour you must set bizobj property DefaultValues = None. I hope it helps. -- Regards Jacek Kałucki --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
