On May 25, 2009, at 8:28 PM, Roger Lovelock wrote:
> Not sure if this is a problem with dabo, or my code - wondering if
> anyone else has a similar problem :-
> I have a transaction table with a date field - default value is
> today. Whenever I enter a new transaction the date on the first
> record in the table is updated to today, even though I have not
> edited that record. My form only allows new transactions to be
> entered - the after init routine ending with self.new().
How are you setting the default value? Sounds like you may not be on
the new record when this is happening.
The cleanest way is to use the DefaultValues dict in the bizobj.
-- Ed Leafe
_______________________________________________
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]