Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent-child-grandchild relation
Message
From
19/05/1999 08:45:03
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00220343
Message ID:
00220369
Views:
27
>I have a form with a parent to child to grandchild relationship. I'm using the txtbuttons from the _wizbase class for my navigational buttons.
>
>The problem is that when I click on the add record button a record is not appended to the grandchild relation, only the parent and child. Is there something I can do to get this to work properly. Any help would be appreciated.
Chad,
You could use stored procedures in DBC. In insert trigger add a function to append new record to grandchild.
Or just edit wizard add button :
dodefault()
if this.parent.addmode
 insert into grandchild (linkkey) values (childlinkkey)
endif
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
Previous
Reply
Map
View

Click here to load this message in the networking platform