I've created a module called payments.
Contacts has a one to many relationship to it.
There is a field called payments.firstrenewaldate
In ZuckerReports, I have "Contacts" selected as my listing module but in my "Where clause/query" I have:
contacts.anniversary_date_c BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 30 DAY) AND
payments.firstrenewaldate NOT NULL
The first part works on it's own. We use fields in the payments module (firstrenewaldate, secondrenewaldate, etc) to track when renewal notices are sent out.
I'm basically trying to generate a report that says "Give me everyone whose anniversary date (custom field we set) is coming in the next 30 days AND who has not already received their first renewal notice."
My problem is that I know how to reference all the fields in the Contacts, but I don't know how to reference fields from other tables in my where clause/query in Zucker.
I paid $50 for the Zucker manual (only to find it for free on googleand I've read it thoroughly. I've read an iReports manual that does not say much about clause formatting. Been searching forums all day.
Would appreciate anyone's help if they can point me to some example clauses I can dissect.


LinkBack URL
About LinkBacks
and I've read it thoroughly. I've read an iReports manual that does not say much about clause formatting. Been searching forums all day. 



Reply With Quote

Bookmarks