On Jul 27, 2009, at 3:15 PM, [email protected] wrote:
> def onHit(self, evt):
> if self.Form.save():
> # A failed save will return False. We only want to proceed if
> # the save succeeds.
> self.Form.new()
> self.Form.servicedate.setFocus()
>
> On clicking save, the entry is indeed saved, and a new record is
> setup for
> the screen, but the setFocus causes an error (see below for full
> listing) :
> <<object has no attribute 'serviceDate'>>
Do you have 'servicedate' entered as the RegID for that particular
control? That's the key for being able to resolve object references on
a form.
-- 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]