Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parent-to-Child-to-Child and the cBizObjMaintenanceForm
Message
 
À
20/12/1999 14:37:54
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00306353
Message ID:
00306957
Vues:
22
Gil,

>Parent bizobj on page 1 with the cListOneToMany grid - that's ok.
>It's the child - to - grandchild that seems to be my problem. After experimenting I'm using the cListOneToManyObj class for the Child on Page 2 with it's grid using the cgridTextBoxMaintenance control - where I've put code to requery the bizobj's children. The Requery works just fine - the grandchild table loads the correct data but it's grid refuses to refresh and show the new data. The child and grandchild grids/bizobj's are on the same page. The Parent Bizobj are set up correctly. What am I doing wrong? The grandchild is using the cListObjEdit class.

Are you sure about the timing of the grandchild's requery? I'd set a breakpoint and make sure the grandchild's requery is getting executed when you think it should. If the requery is working properly, check to make sure you have set the grid's RecordSource property correctly? Have you replaced the "built-in" business object with your own business object? If so, make sure you've followed all of the steps listed in the Developer's Guide for doing this correctly.

>Parent Object is loaded intially with no data and is requeried (which it does correctly). Dropdown selection requeries parent.
>parent is selected as both Primary and Auto-Primary.

FYI, you don't need ever need to set both of these...if you set a bizobj to primary, it also acts like an auto-primary bizobj.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform