Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with multiple business objects on different pages.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00107226
Message ID:
00107746
Vues:
29
>
>CGridList is an Abstract class which should not be dropped directly on a form. If you need a simple grid, you should use CGrid instead. If you want a grid with Add, Edit, Delete capabilities, you should use CListObjEdit instead.


OK, I ended up switching to CGrid anyways since CGridList (once I got it working with the changes) wasn't quite what I wanted. So, I changed things back in that class.

Now I've got the business object on page 3 set to:

nrequerytype = 1
cParentBizObj = Shopobj1 - The name of the object on page 1
cuniquefield = shop
lautoprimarybizobj = .T.

The table being accessed by the primary view associated with this business object has a "shop" field, and a regular index on this field called "shop"


On the business object on page 1:

lprimarybizobj = .T.
lautoprimarybizoj = .T.
cuniquefield = num
nrequerytype = 0 - It's queried in the ADATAENV.PRG, class def.

The table being accessed by the primary view assoc. with the bizobj has a "num" field that is used in the primary index, also called "num"

I've established a relation between the two tables by dragging the primary index of the table (used in page 1) onto the regular index of the other table (page 3)

The contents on page three are being displayed, but I'm seeing all the records, not just the child objects. So, as far as I can tell, I've set all the properties I should have to for this to work but I must still be missing something. Ideas, suggestions, snide remarks?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform