Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Indexing
Message
From
08/09/1998 16:18:57
 
 
To
08/09/1998 05:41:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00133973
Message ID:
00134224
Views:
11
>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..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform