On Jul 14, 2008, at 10:51 AM, Nate Lowrie wrote:

> 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.


        Dialogs are not meant for data entry and editing. They are for short  
interactions, not for extended editing.

> They look and feel better than editing from a grid and most of my  
> clients prefer the dialogs to a grid.

        ???
        
        What does one have to do with the other? You can have grids in  
dialogs, too, you know.

> 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".

        Or you could say "form.myBizobj". BTW, it seems odd that you are  
marking the bizobj reference as private by using a leading underscore  
when you want to expose it to your controls.

        But since dialogs are not meant to hang around, the way to deal with  
data is to pass in what you need, set the controls to those values,  
and then query the controls for the values after the dialog is hidden.

> All of this is rather unfriendly, especially for a Framework that  
> prides itself on creating data aware apps.

        It also prides itself on not trying to be all things for all possible  
uses. Part of the philosophy of a framework is intelligently limiting  
choices; when you find yourself fighting the framework, it's a sign  
that you either need to re-think your approach or you need a different  
framework.

        You do need to make a stronger case as to why you are doing extensive  
data editing in dialogs. Saying that clients prefer them over grids  
make no sense at all.

-- Ed Leafe





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

Reply via email to