set the DefaultValues in the bizobj to a function that gets the date:

self.DefaultValues = {"dateFieldName":self.getTodaysDate}

def getTodaysDate(self):
   return datetime.date.today()

Nate L.

On Wed, Jul 9, 2008 at 12:47 PM, Mike Mabey <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> 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?
>
> Thanks,
> Mike M.
>
>
> --- StripMime Report -- processed MIME parts ---
> multipart/alternative
>  text/plain (text body -- kept)
>  text/html
> ---
>
[excessive quoting removed by server]

_______________________________________________
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