edoloughlin Posted July 28, 2008 Share Posted July 28, 2008 Hi, not sure if this belongs in this forum or in the JasperReports forum. Apologies if it's the wrong place... I'm looking at user JasperReports/JasperServer where data for several customers will be stored in one schema. The plan is to allow customers to log in and run their own reports. This means that any queries they execute will have to be intercepted and restricted. I.e., something like 'WHERE CUSTOMER_ID=xxx' will have to be automatically added in the background before it is run, where xxx depends on the user's id. Does JasperServer or JasperReports support this type of interception? Thanks, Ed O'Loughlin. Link to comment Share on other sites More sharing options...
swood Posted July 28, 2008 Share Posted July 28, 2008 When you run a report in JasperServer, there is a LoggedInUser parameter that is passed that includes the user name and the roles the user has. You can use those values to parameterize your query. ShermanJaspersoft Link to comment Share on other sites More sharing options...
edoloughlin Posted July 28, 2008 Author Share Posted July 28, 2008 Thanks for the info.We'd also like to allow customers to design their own reports. We can't require/trust them to restrict their reports to their own data - this has to be invisible to them and happen at report execution time. Is this possible? Link to comment Share on other sites More sharing options...
swood Posted July 30, 2008 Share Posted July 30, 2008 Our JasperServer Professional edition has data domains that include security based on the user roles and other attributes. You set up the domain and the end users will be restricted to the views of data you require. You can develop a report based on a domain, and when the user runs the report, they will only get the data they are allowed to see. There are end user query and reporting tools that run in the browser. ShermanJaspersoft Link to comment Share on other sites More sharing options...
shalomd Posted December 2, 2009 Share Posted December 2, 2009 How can i do this? what parameter is this?thanksShalom Link to comment Share on other sites More sharing options...
swood Posted December 10, 2009 Share Posted December 10, 2009 @shalomd, Are you talking about the ${LoggedInUsername} parameter? There is an example of this in the Sales By Month example report that ships with JasperServer. ShermanJaspersoft Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now