Jump to content
We've recently updated our Privacy Statement, available here ×

Query that picks up current user id in sugarcrm


sugra

Recommended Posts

Hello,

I would like to create an ireport where the query picks up the current user logged into a system and displays information based on it.

What I really want is to know how to write the statement

where users.id = users. [current user id]

 Have any of you tried this before and if so how is it done?

 

Thanks in advance

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

sugra,

 

hingerl's reference is correct. You should use LoggedInUser. But to put this in context, it is referring to JasperServer.

 

Are you already using JasperServer? It includes a sample report that uses this parameter, so you can start with this example:
/reports/samples/SalesByMonth

 

If you have more questions on this topic, you'll get better information on the JasperServer forum.

 

Regards,
Matt

Link to comment
Share on other sites

  • 1 month later...

Hi,

I'm not using Jasper Server.

I am using a plugin into SugarCRM. I create the .jrxml file in iReports and then upload to Sugar and run the reports from there. I want to know how I can write the .jrxml script so that once it is in SugarCRM it can pick up the current user.

 

Any ideas??

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...