N-M Relation Question

Questions, answers, tips and ideas on Servoy Client

N-M Relation Question

Postby amcgilly » Fri Dec 30, 2005 12:30 pm

Let's say I'm creating a time billing system, and I've got the following tables:

projects
consultants
assignments (contains foreign keys projectsid and consultantsid, used to establish a many-to-many relationship between projects and consultants)

Now, if I have a Projects window and I want to display a single project and a list of consultants assigned to that project.

To populate that list of consultants, I need to draw on the many-to-many relationship. Can I do that using Servoy's relation object or do I need to roll my own SQL query?
Adrian McGilly
Servoy Developer

Image
amcgilly
 
Posts: 375
Joined: Fri Dec 09, 2005 12:03 am
Location: San Francisco, CA

Postby Jan Aleman » Fri Dec 30, 2005 3:21 pm

Here's an article that describes how to do that.

http://www.servoymagazine.com/home/2004 ... _rela.html
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth


Return to Servoy Client

Who is online

Users browsing this forum: No registered users and 20 guests

cron