jphayes Posted November 24, 2020 Share Posted November 24, 2020 I would like to create a custom input control so that I can read the user attribute information from the Jasper API and use that to pupulate a dorpdown or multi-select.Client wants one report that only shows certain selectable information for certain users. If you have a better way of doing this please let me know. I really do not want to have to create and maintain 20 different reports just because the dropdown is changed by one value.Commercial Version 7.5.0 Link to comment Share on other sites More sharing options...
rmeadows Posted March 5, 2021 Share Posted March 5, 2021 Profile attributes (I assume that is what you mean by attributes) are available already in input controls and queries. If you have a profile attribute named mypa then you can reference it as a built-in parameter in queries as $P{LoggedInUserAttribute_ mypa}. Profile attributes can be set and retrieved at the server, tenant, and user level.Please see chapter 5.5.2 Built-in Parameters for Query-based Input Controls in yourJasperReports-Server-Admin-Guide.pdfunder the /docs folder of your 7.5 JasperReports Server installation for more in depth usage. Also see chapter2.4 Managing Attributes for more in depth usage of profile attributtes. Thanks. 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