I’ve read the articles here about grouping and watched the DMXZone video on the subject, but I am stuck and need some assistance. I am not sure if it is a database issue or if I am missing a step on how to group properly.
Here is my database setup:
Table A - Events
Table B - Contacts
Table C - Links Table A and B together
An Event (Table A) may have more than one Contact (Table B), which is why I have the third table to link them together.
What I am trying to accomplish:
I am trying to list the events on a page and have the corresponding contacts listed below each event.
Event 1
– Contact 1
– Contact 2
Event 2
– Contact 1
Currently, I can list the events on a page and have each contact listed as well, but it results in duplicate event listings. For example:
Ok, if I understand correctly, just use a simple query to retrieve the Table C results and then after the results are pulled, group them as shown in the video.
I have that setup on the test page. So each Table C.Event_ID_FK is listed once.
Not sure how to do the last part of inserting the names instead of IDs.
Let us back up a step because what I am seeing when I add the Table C.Contact_ID_FK under the Table C.Event_ID_FK brings be back to where I was, only showing one Contact entry per Event.
Here is the test page, (removed test link as no longer needed). The Event IDs are title fields and the Contact IDs are paragraph fields. The fourth one down, Event ID 24 should have two entries, Contact ID 24 and Contact ID 23.
That is where I am stuck at, the repeating Contact ID within the Event ID area.