On Aug 9, 2010, at 5:28 PM, Chris C. wrote:
> I hope I'm not causing unnecessary confusion by misstating myself. I have
> understood that I will need to custom code my app. I was just seeing if I
> could/should start with an App Wizard app.
That would depend whether you ask Paul or me. Paul seems to be able to
do whatever he wants from an appwiz app; I find it much easier to create the
app from scratch. In the PyCon tutorial we gave together, we each created an
app, with Paul starting from the AppWizard, and me starting from scratch.
> Are you saying I can't update the attributes of an object if those
> attributes are in multiple tables? For instance, I want to have an "Account
> Maintenance" screen to update attributes of "account" objects. An account
> has addresses, dept contacts, phone numbers, notes, etc. (And each address
> might have more than one phone number, each contact person might have more
> than one phone number, etc). I would like to be able to update any
> attributes of an certain account from its management screen.
Don't confuse the UI layer (i.e., your 'management screen') with the
underlying business objects that talk to the data. In your example, it sounds
like you would have an Account bizobj as your PrimaryBizobj. There would be a
child Address bizobj to handle the address table, with a 1:M relationship. That
bizobj would have a child bizobj for phones, etc.
That's what I meant by one bizobj per table. You can have as many
bizobjs as you like on a given form.
> Also there are other types of objects that I would like to have screens to
> update their attributes. Can I bind controls on a form to query results
> like in Access? If I could then it seems like I could do what I need that
> way. Although I had in mind that I would be using a more object-oriented
> approach for Dabo/Python.
Business objects (bizobjs) are essentially query results, but with
added logic for enforcing business rules for the data. You bind your controls
to bizobjs, so in that sense, it's like Access, but you have a lot more control
over how your data is handled.
-- 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]