MohanRao Posted November 28, 2006 Share Posted November 28, 2006 Hi, Is there any way I can pass the logged in user name to the report query at run-time? I have tried using $P{UserName} in a text field in the iReport, but when seen in the browser, it show null. I have tried the same thing with $P{LoggedInUser} also. But it fails (gives null). Thanks,Mohan. Link to comment Share on other sites More sharing options...
swood Posted November 29, 2006 Share Posted November 29, 2006 You could have one parameter in your report that isForPrompting that allows you to enter the user name. Have an expression in the parameter you use that selects either the isForPrompting parameter or the one being set by JasperIntelligence when it is running. 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