This is meant to be a discussion and a feature request. In designing my Dabo apps, I love how I can add my bizobjs to the form and then I just need to set a controls DataSource to the table to grab data from and the Form automatically finds the bizobj reference. However, this breaks down for dialogs. Dialogs don't keep track of Bizobj references. I use dialogs for data entry and edit. They look and feel better than editing from a grid and most of my clients prefer the dialogs to a grid. That said, Dabo doesn't make it easy to build data aware dialogs. There are several options, but most often I import bizobj instances through the __init__ method and subsequently have to set DataSources for controls to something along the lines of "self.Parent._myBizobj". But, if I set the DataSource in the CD properties sheet, it throws and error during import when I open the form for editing because it can't read a none type object. So, I work around this and set DataSource and DataField properties for controls in the dialog's AfterInitAll method.
All of this is rather unfriendly, especially for a Framework that prides itself on creating data aware apps. I am sure that there are many other people who design apps which use dialogs for at least some of their data entry and edit. I propose a change to the way that this is handled. I would like to see the dialogs receive bizobj information from their Parent if their parent is a Form/Dialog. That way, in the dialog I can set a controls DataSource to "Customers" and the Dialog would grab the bizobj reference from it's Parent which is a Form without having to specify anything else. I don't think this change would be really hard to do, and it would be a great productivity booster for me and others when designing data aware dialogs. Thoughts, comments, and constructive criticism welcome. Nate L. _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
