3 tables linking problem
Posted: Wed May 27, 2009 7:51 am
Hi,
It's been a long time that I did not play with Xataface, and I am still a newby at it. So, please, excuse-me if my question seems dumb.
I've have 3 tables : clients, contacts, actions.
actions and contacts have a client_id field pointing to the id field of the client table, defined in fields.ini and valuelists.ini files.
I defined a relationships.ini in the clients directory. So I have the 2 great tabs in the clients page.
But i also have an contact_id field on the actions table, pointing to contact.id, defined in fields.ini and valuelists.ini files.
Great.
When I use the actions tab of the clients page to add a new action, I see a select field with ALL my contacts.
The problem is that I only want to see the contacts with the field client.id set to the current client.
How can I do that?
Best regards,
BrokenClock
It's been a long time that I did not play with Xataface, and I am still a newby at it. So, please, excuse-me if my question seems dumb.
I've have 3 tables : clients, contacts, actions.
actions and contacts have a client_id field pointing to the id field of the client table, defined in fields.ini and valuelists.ini files.
I defined a relationships.ini in the clients directory. So I have the 2 great tabs in the clients page.
But i also have an contact_id field on the actions table, pointing to contact.id, defined in fields.ini and valuelists.ini files.
Great.
When I use the actions tab of the clients page to add a new action, I see a select field with ALL my contacts.
The problem is that I only want to see the contacts with the field client.id set to the current client.
How can I do that?
Best regards,
BrokenClock