Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Indexing
Message
De
09/09/1998 02:35:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/09/1998 16:18:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00133973
Message ID:
00134341
Vues:
24
>>There is something wrong here. You can "hook" a primary key with multipl >tables. See home()+"samples\data\testdata.dbc" for example. Primary key
>>(and/or canditate) has nothing to do with the former unique index. It's, in >simple, there for persistent relationships at dbc level. You can however still >set other type of relations in your forms (view is preferred though).
>>use table1 in 0 order tag product_id
>>use table2 in 0 order tag product_id
>>use table3 in 0
>>set relation to product_id into table1, ;
>> product_id into table2 ;
>> in "Table3"
>
>Hi Cetin,
>How are you??
>Before I came back here, I've read books to figure this problem out,
>but I found none.
>So, I came here again to ask people in here and pros like you to see
>if you can help me.
>Let me clearly readdress the problem.
>I have a form called 'inventory', and in the Data Environment in this
>form, I've added inventry, invent_line_items, supplier, and products table.
>However, each table gets relation with primary index, but one in the product
>table and invent_line_items table won't make a relationship together.
>I thought it was so because the product.product_id(primary) relationship was
>bond with order_line_items.product_id.
>So I've set the product.product_id to candidate and add one more index called
>invent to see if this work. But this didn't help much.
>But in the process of fixing this problem, I've found one puzzle piece;
>the order form which it's data environment has orders, product, customer,
>order_line_items & etc., and I've inserted the invent_line_items to see
>if program make a connection between product.product_id and invent_line_items.
>product_id and it did.
>Now.. if these two form(orders and inventory) were excerpt from same class,
>why one does work and other doesn't?
>
>PS.
>in the inventory form, I've insert order_line_items table in data environment
>to see if product_id make relationship and only product.product_id and
>order_line_items.product_id made a relationship.
>
>Thank you again..
Barbara has already gave the nice answer. This will be a duplication. I think you mean, in DE you cannot set it with mouse or something like that. In DE it behaves ununderstandable and I don't try to understand. If you really need relation, do it programmatically. But as Barbara said, seek() is better than relation. If you need relation for a grid (I won't say use filter - it's still slow), do it in grid props (linkmaster, childorder, relationalexpression).
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