Author: Ed Leafe
Posted: 2008-11-11 at 10:57:57
On Nov 11, 2008, at 9:54 AM, johnf wrote:
> On two of my grids I wanted to have the word "None" appear when the
> grid had
> no data available. I decided I could issue a self.new() in the case
> when
> self.rowcount==0 (no data available and issue a new() in the
> requery() ) and
> set the defaultvalues to either a blank or the word "None". This
> worked well.
> But of course Dabo saw it as a change and when the form issued a
> save().
Did you set these values in onNew()? That's what that method is for:
setting default values that don't "dirty" the record.
-- Ed Leafe