Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extra rows in grid because of 1 to many relationship
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00055512
Message ID:
00055719
Vues:
32
>>>>Gary, try a parameterized grid for your child1 and child2 records instead of letting the grid handle relationships. That way you can put any data you want in.
>>>>
>>>>The asterisks are the same as you will see if you do a Browse with 'set skip on'.
>>>>
>>>>HTH
>>>>Barbara
>>>
>>>That sounds great Barbara. What's a
>>>parameterized grid?
>>>
>>>thanks Gary
>>
>>ARGHH!! I meant a parameterized VIEW!
>>
>>Sorry,
>>Barbara
>
>I hate to sound so stupid but when I click on
>the first parent table what code would be there
>to make this happen. Could you give me an example?
>
>thanks
>Gary

First you create a view:
   Create SQL View as Select field list from table1, table2 where ;
      table1.keyfield = table2.keyfield and .... order by ... ;
      into cursor CursorName
You then use the resulting cursor as the data source for the grid.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform