Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order of child table
Message
De
04/09/2006 17:07:41
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
04/09/2006 16:51:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Divers
Thread ID:
01150779
Message ID:
01150784
Vues:
23
>I have parent and child table which are in relation.
>
>I want to sort child table but I can't because if Order exist in Relation then Order in child table is ignored.
>
>Is there any way to sort child table?

For this reason (because of the problems you mention), I don't use parent-child relations between grids. You can use one of these alternatives:
  • Use the SET FILTER command in the child table.
  • Use a parameterized view in the child table.

    The second alternative should be faster, especially for larger tables.

    In both cases, you have to update the child table (change the filter, or requery() the view), when you change the parent record.

    HTH,

    Hilmar.
    Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
  • Précédent
    Répondre
    Fil
    Voir

    Click here to load this message in the networking platform