>> I'm looking for a way to create a new record depending on which
>> page is Showing on a PageFrame. One as a list of books another as a
>> list of authors. Both lists have a RegID and both are associated to
>> bizObjs. Because I want to do this from the toolbar, I'm thinking
>> to override the form's onNew method, but am not sure how to test
>> for the current selected page and how to use the onNew method. In
>> pseudo-code:
>>
>> def onNew(self, evt):
>> if self.pgBookLst.Shown:
>> getBizobj('book').new()
>> elif self.pgAuthorLst.Shown:
>> getBizobj('author').new()
>
> Use the pageframe's SelectedPage property to determine which page is
> shown.
>
>> Because the bookBizobj is the form's primary bizObj I wonder if I
>> could just return True or somehow evt.Skip() to let the default
>> behaviour of record creation take place for the case where
>> pgBookLst is visible?
>
> While that might work, it's better to be explicit than implicit.
Are you recommending getBizobj('bookBizobj').new() or something like
self.new()
or form.new()?
Carl K
_______________________________________________
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/dabo-users/[EMAIL PROTECTED]