I've posted a previous mail on this issue but it seems to be one of the lost 
children of the last server upgrade.

* Creating a toolbar:
I've shamelessly ripped some code of the datanav subframework to create a 
toolbar :-). I've used the form.afterInit method to create it. I wonder if this 
is the best place to do it, or if there is another place that makes more sense 
to put UI creation/changing code?

* onNew:
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()

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?

* onSave:
Up until now I've managed to create a record, but haven't figured out how to 
save it. dabo asks me to commit the record uppon aplication close. But I really 
would like to figure out how to do it automatically (sometimes we don't want 
user confirmation) and also how to have a Save button.

Txs for your time and help,
Miguel

_______________________________________________________________________________________
Sabe qual e o credito pessoal MAIS FACIL DE PAGAR no futuro?
Aquele em que as PRESTACOES DESCEM ao longo do emprestimo?
Saiba mais em: http://www.iol.pt/correio/rodape.php?dst=0704171



_______________________________________________
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]

Reply via email to