Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multi-Detail Band Reports and Relations?
Message
From
30/09/2004 05:32:41
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00947321
Message ID:
00947442
Views:
17
>I just tried that and it works. I don't much like having to create an index on a cursor that is already sorted the way I want. Since I am indexing on the FK field, all those values will be the same, and, IIRC, the indexing will still leave the records in the same order within each FK value. It's been many years since I have used SET RELATION.
>
>>Mark,
>>
>>Wouldn't you have relations from the parent table to the three child tables in stead of the other way around?
>>
>>
>>select parent
>>set relation to key into Child1
>>set relation to key into Child2 ADDITIVE
>>set relation to key into Child3 ADDITIVE
>>
On Childs Define a composite index:
SET EXACT OFF
INDEX ON fnToString(FKey)+DetailOrder1InStringFormat TAG BLABLA1 IN Child1
....
SET RELATION TO fnToString(Key) INTO Child1 IN Parent ADDITIVE
...
If parent have 1 Record only, you can simplified:
INDEX ON ORDER DetailOrder1InStringFormat TAG BLABLA1 IN Child1
SET RELATION TO '' INTO Child1 IN Parent ADDITIVE
Previous
Reply
Map
View

Click here to load this message in the networking platform