Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem when changing RelationalExpr for Parent-Child Gr
Message
From
09/07/2002 09:25:14
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00675542
Message ID:
00676580
Views:
16
Hi David,

I checked the example on your site. It is really a good suggestion. The main problem for me is that the table is a free table and not part of any database. What can I do in this case, if making that table as part of some database is not feasible?

Thanx.
Hitendra

>Hitendra,
>
>A parameterized view will be a better long term solution, The view will give you the record subset and you can freely change the sort order of those records. There's an example on my website that will help get you started.
>
>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform