On Jul 9, 2008, at 1:47 PM, Mike Mabey wrote:
> I've got a dDateTextBox in a form I'm creating. I want the value to
> default
> to today's date, but only if there isn't already a value in the
> table for
> the current row. What's the best way to do this?
If it's bound to the column in the data table, it will always reflect
the value of that column. If you are concerned about values for new
records, the bizobj's DefaultValues dict will handle that. Otherwise,
you'll have to add code to the bizobj's afterPointerMove() method to
check for an empty date, and replace it with today's date if it is
blank.
-- 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]