Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem when changing RelationalExpr for Parent-Child Gr
Message
De
05/07/2002 07:11:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/07/2002 05:56:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00675542
Message ID:
00675555
Vues:
19
>I have a Grid, configured for Parent-Child, which displays data from the Child file in a specific order. It works fine and as I move to some other record in Parent table, the Grid refreshes accordingly.
>
>When I move to some other record in Parent table, in some case, I want to display the Child records in some different order. So I change the ChildOrder and RelationalExpr properties of the Grid. As soon as I refresh the Grid, it displays no child records. I tried resetting the LinkMaster property also and also resetting the RecordSource of the grid by
>
>Thisform.ChildGrid.RecordSource = Thisform.ChildGrid.RecordSource
>
>method to prevent recreating the grid agin.
>
>What is wrong here? Is there any fixed order in which the RelationalExpr, ChildOrder and LinkMaster properties must be changed?
>Any suggestions will be highly welcome.

Problem is not the order of them, old realtion is alive. Setting relationalExpr doesn't automatically set it.

.Recordsource = ''
select parent
set relation off into child
.ChildOrder = 'NewOrder'
.RelationalExpr = 'NewRelation'
.Recordsource = 'child'

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform