Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grids, Views and cBizObjForms
Message
De
21/09/2004 19:03:58
 
 
À
15/09/2004 10:16:56
June Kendrick
Kendrick Associates, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00941406
Message ID:
00944791
Vues:
37
June:

Let's assume you can talk about a "typical form".

My understanding of the MM model is this.

A typical form, if it is going to allow data to be entered and edited, will have a view behind it that in turn will allow access to one or more tables. The form will have a BO to control its data and the above view will be entered as the first DAO in the BO. This will be the Primary BO. This is the only DAO that will allow data to be written to its underlying table.

In addition, that same simple form may have a combobox that requires a (read only) list view to allow a foreign key to be selected and entered into the main view (in the previous paragraph). This view will also be included in the same BO. There might be more than one of these RO views in the BO that support the primary DAO. None of thesee will be the first DAO in the BO.

This one BO will be sufficient to bind all controls on all pages of this form to the underlying view. The BizObjMaintenanceForm object model has a form pop up for data input. Input is to the same view. It therefore uses the same underlying BO.

If you have a multipage form that is controlling more that one set of tables you will need a second (or third) BO on later pages of the form. This will need to be switched to become the Primary BO when you click on its page(s).

I guess the common thread here, as I see it, is that each updatable view needs its own BO that is, or is set to be, the primary BO. The first view in each BO is the only one that can be updated.

If someone else has said this better, ignore this post.

Godfrey
Godfrey Nicholson
Ofek Technologies Ltd
Auckland
New Zealand
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform