I am trying to create a view that is somewhat complex and I am struggling. Any assistance is appreciated.
Here is the setup based on the views CiviCRM module (although the problem I am having isn't unique to this module).
Contact Table | Phone Table |
id |
contact_id phone_type phone_number |
Comments
Comment #1
Letharion CreditAttribution: Letharion commentedWhat you want is called "Group by". While there are definitely ways you can work this out anyway, group by isn't supported by Views 2. If you are willing to use dev versions of modules, take a look at 3.x-dev.
Comment #2
qjensen CreditAttribution: qjensen commentedI could also use the Views Group By module if grouping will resolve the problem. Can you help me understand how using grouping will make this work for me? I have only used grouping for very simple aggregate functions in the past and I am having some trouble understanding how to use it in this situation.
Thanks for your help,
Q
Comment #3
dawehnerSo move it to the views groupy module
Comment #4
qjensen CreditAttribution: qjensen commentedI wasn't necessarily looking for help with the groupby module, but more conceptually how using the sql group by construct would help me get the needed results. Now that this is in the View Group By queue, maybe someone can help me understand how this would work.
Thanks,
Comment #5
qjensen CreditAttribution: qjensen commentedJust to close this out, I realized that I couldn't solve this problem with grouping and I created a custom field handler to build a complex join that resolved the problem.