Using Sugar Version 5.0.0d (Build 3235)
Using Selects in ZuckerReports 1.8
My Code:
SELECT leads.first_name, leads.last_name, leads.phone_work, leads.phone_mobile, leads.date_entered, leads.date_modified, leads.description, leads.account_name
FROM leads
WHERE leads.deleted = 0
AND leads.assigned_user_id=1
ORDER BY leads.date_entered;
What it does:
The above will pull records from leads when the WHERE is TRUE, the problem is I do not want to create a report for EACH user.
What I want it to do:
I want to replace the 1 in the WHERE statement with a variable that contains the ID value of the logged in user.
Any suggestions?


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks