Hi,

I found dCursorMixin._getBlankRecord() makes me angry.
The idea of setting a default field value is generally a good idea,
with one exception. There could be a fields I don't want default
value to be set.
When for e.g. field value is set by backend, in SQL 'DEFAULT' clause,
or when I want the filed has explicit NULL value set (see, my post
about BLOB field default value).
Of course, I can hook dBizObj.onNew() method, but I think it would be
more elegant to exclude some fields from setting their default values,
than setting values twice.
For e.g. the NoDefaultValueFileds tuple property could be added to dBizobj
class to achieve this.
It would be a perfect solution to extend dBizobj.DataStructure property
for field default value.

-- 
Regards
Jacek Kałucki

_______________________________________________
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]

Reply via email to