Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CursorAdapter base table and child table
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01532500
Message ID:
01532508
Vues:
26
>Hi,
>
>I have come across a situation that I can't seem to resolve and I really need help.
>
>I have a BIZ class based on a cursor adapter for a Purchase Order Header table. The base table for this BIZ class is the P.O. Header.
>
>I have another BIZ class based on the cursor adapter for a Purchase Order Item table. Base table for this BIZ is P.O. Items table. Note that these are two separate BIZ classes even though the P.O. Header table is related to the P.O. Item Table.
>
>If the code need to search records in the P.O. Header table it is easy to do with the CursorFill() method. The same goes for the P.O. Item Table.
>
>The problem is when I need to select records from P.O. Header based on the criteria in the P.O. Item. For example, user want to view all P.O.s where item unit price is greater than $100.
>
>I can't change the design and have a BIZ object based on the two tables. So anything else can be done?
>
>TIA.

You can have some custom Select methods of the parent class that will change SelectCMD on the fly and execute the cursorfill method.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform