Proprius Posted July 12, 2007 Share Posted July 12, 2007 Here is my setup. I have one table of Clients, and another table for Cases. Each Client can have multiple Cases, and each Case can involve multiple Clients. In each Case record, there is a field with a list of the involved Clients separated by newlines. Basically, in each Client record, I want to be able to have a portal of all of the Cases that it is involved in. What would be the best way of doing this? Thanks, I'm kinda new at this. If I didn't explain something clearly just ask. Link to comment Share on other sites More sharing options...
mr_vodka Posted July 12, 2007 Share Posted July 12, 2007 You will need a join table to do what is called a many to many relationship. There are plently of examples on here as well as other websites. Try a search for +lineitems and you should come across some samples of invoices which have the similar setup. Link to comment Share on other sites More sharing options...
Zero Tolerence Posted July 12, 2007 Share Posted July 12, 2007 just do an = join from your clientID in the clients table, to the return separated client list in your Cases table, then your relationship is done. In you client record, you would then draw a quick portal that references your Case table. The portal would then show any cases related to that client. Link to comment Share on other sites More sharing options...
Vaughan Posted July 13, 2007 Share Posted July 13, 2007 A join table is the way to go. Link to comment Share on other sites More sharing options...
mr_vodka Posted July 13, 2007 Share Posted July 13, 2007 Here is a link to a demo. Join Table Link Link to comment Share on other sites More sharing options...
Proprius Posted July 23, 2007 Author Share Posted July 23, 2007 Thanks very much. Works great! Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6119 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now