jphayes Posted September 19 Share Posted September 19 I want to restrict usage for certain users to Agencies through the input control and list all if it is not there. I have it pulling just the agencies for the users using LoggedInUserAttribute_AgencyAccess (AgencyName IN ($P!{LoggedInUserAttribute_AgencyAccess})) but I get an error if it does not exist. Is there a way I can check if the attribute exists or set its value to null if it is not there? Link to comment Share on other sites More sharing options...
Raghavender Mulley Posted September 24 Share Posted September 24 (edited) Your custom attributes should always start with loggedinuser in the user profile attributes of Jasperserver. Use this in your reports a parameter ATTRIBUTE_loggedinuser. Edited September 24 by Raghavender Mulley Link to comment Share on other sites More sharing options...
Mehul Bamania Posted September 27 Share Posted September 27 Link to comment Share on other sites More sharing options...
shreekrishna.shankhwar Posted September 28 Share Posted September 28 $P{LoggedInUserAttribute_AgencyAccess}!="" 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