Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Parent-Child table relationships
Parent-Child table relationships [message #970] Mon, 23 July 2007 12:02 Go to previous message
adamsp is currently offline  adamsp
Messages: 32
Registered: July 2007
Member
I have several tables with Parent-Child structure. Some allow a single record for the Parent-Child combination.

Tables: FAMILY, PERSON, FAMILY_PERSON

Desired outcome:
Each FAMILY_PERSON record must
refer to an existing record in FAMILY
refer to an existing record in PERSON
each FAMILY+PERSON combination can exist only once.

My implementation uses 3 keys:
foreign key to FAMILY from FAMILY_PERSON
foreign key to PERSON from FAMILY_PERSON
primary key in FAMILY_PERSON on FAMILY+PERSON

In Radicore, from the FAMILY_PERSON table, when I go to add a relationship to setup the foreign-key to FAMILY (or PERSON)...after I click "submit" and then get to "update" (relationship), I always presented with BOTH family and person...to set the references to both...presumably because this is the primary key. But I only want to enter the family (i.e. to validate that the family record exists in the FAMILY table).

Am I doing this correctly? How can I set this up these table relationships in Radicore?
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Accessing Radicore for the first time
Next Topic: Accessing my Radicore App for the first time
Goto Forum:
  


Current Time: Mon Apr 29 12:03:46 EDT 2024

Total time taken to generate the page: 0.03937 seconds