Jump to content
We've recently updated our Privacy Statement, available here ×

Custom Input Control using Jasper Server API


jphayes

Recommended Posts

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

  • 3 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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 your

JasperReports-Server-Admin-Guide.pdf

under the /docs folder of your 7.5 JasperReports Server installation for more in depth usage. 

Also see chapter

2.4 Managing Attributes

for more in depth usage of profile attributtes. 

Thanks.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...