puneet.garg Posted June 13, 2013 Share Posted June 13, 2013 Hi, I am using jasperreports-server-5.1 to design domain/ad hoc view in jasperserver designer. I went through couple of posts but not able to figure out how can I create domain/ad hoc view by using user data i.e. username, userid etc properties. So when running a report I will get logged in user specific data in a report. I tried putting select * from user where username = $P{LoggedInUser}.getUserName() in derived query of domain designer, it shouts syntax error. Is there any way to achieve the same. I think JRXML is one of the option, which we don't want to use as we only want to use jasperserver to design and run reprots. Can someone help me on the same. -Puneet Link to comment Share on other sites More sharing options...
swood_1 Posted July 10, 2013 Share Posted July 10, 2013 With domains, you can add domain security to do the filtering you are after. With a topic, you can use the $P{LoggedInUser} in the underlying query. Sherman 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