relation between three tables for relationships.ini

A place for users and developers of the Xataface to discuss and receive support.

relation between three tables for relationships.ini

Postby Philipp Wenzel » Tue May 08, 2012 7:34 am

Hi.. again ;),
i have three tables:
nation
-nation_id(primary)
-nation_name
-etc pp

risiko
-nation_id(prim)
-risiko_terror boolean (1-yes,2-no)
-risiko_duerre boolean (1-yes,2-no)
-etc pp

duerre
-duerre_id(prim)
-nation_id(foreign)
-etc pp

i want to display a nav tab (for every risc factor) in the "risiko" section (via relationships.ini) but only for the risiko table entries which have the value 1.
im not able to figure out the right sql query :(
can anybody help me?

so long,
phil
Philipp Wenzel
 
Posts: 15
Joined: Sat May 05, 2012 7:10 am

Re: relation between three tables for relationships.ini

Postby shannah » Tue May 08, 2012 9:54 am

Can you explain exactly what the relationship is. I see 3 tables. What is the source table, and what is the destination table.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: relation between three tables for relationships.ini

Postby Philipp Wenzel » Tue May 08, 2012 1:13 pm

Hi Steve,
I want to insert into the "duerre" table.
the link to the insertform is generated by an entry in the relationsships.ini (headtable: "risiko").
but it should by only visible when the "risiko_duerre" value is set to yes.

so the source tables are nation and risiko (risiko is related to nation) and the destination table is duerre (which is related to risiko and nation).

hope i could unravel the mistery ;)
Phil
Philipp Wenzel
 
Posts: 15
Joined: Sat May 05, 2012 7:10 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 5 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved