Here is the 'articulate' summary to my bizobj<-->ui question.
Assumes using full Dabo three tier model and following simple use case:
1) Database contains record of interest.
2) Dabo.db using information from bizobj in Dabo.biz fetches a copy of record
from database.
3) Bizobj via cursor/DataSet holds data as copy local to form.
4) Dabo.ui uses data in local copy to populate form elements. Correct in
assuming this is pull operation on part of ui via update() method?
5) User makes change in form data through a form element.
6) Memento system notes change and through update() pushes change in form to
bizobj?
7) At this point changes can be pushed back to database by one of two paths.
A) Use bizobj.save()
Action is to save current record only?
B) Use form.save()
Seems to check for changes in all records in bizobj?
8) Bizobj can have local copy of data updated by one of two paths.
A) Use bizobj.requery()
Repopulates bizobj data only
B) Use form.requery()
Repopulates bizobj data and updates form data.
If my outline above is remotely correct the relationship between the Dabo.biz
and Dabo.ui layer is one sided. In other words the ui layer does most of the
work by pulling and pushing data from and to the biz layer. This is where my
understanding fell down. Obviously I misinterpreted the information presented on
the Dabo home page as ascribing more power to bizobjs with regard to interacting
with the ui layer then is the case.
"Business Rules
This tier is where all the business logic resides. You simply subclass dBizobj,
set a few properties, and override a few methods. The dBizobj communicates with
the database tier and the user interface tier, and enforces your business rules
to your specifications.
User Interface
You create your forms by laying out various controls or widgets, and setting
properties to tell Dabo what bizobj and what field in the dataset the control
represents. There is no business logic at this level, and only minimal code will
be entered here: it is mostly laying out your UI design and setting properties
to tell Dabo how to connect to the business rules. "
I would like to ask that the documentation for the form versions of save() and
requery() be changed to reflect that they do more then simply ask the bizobj to
carry out the same operation.
Thanks,
--
Adrian Klaver
[EMAIL PROTECTED]
_______________________________________________
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]