mike.atkinson Posted December 16, 2021 Share Posted December 16, 2021 I am attempting to build a report which identifies data by a user attribute. I have created the attribute for the Jasper User ( Attribute Name = Branch | Attribute Value = Location ) I have created a Parameter at the Report and TableDataset, and linked them together ( Attribute_Branch ) - This is a reserved value, I believe.I have added to the WHERE CLAUSE : and Branch.Description = $P!{Attribute_Branch}When attempting to publish the report, I get ERROR: Input control(s): Attribute_Branch are not in the <vendor> LIbrary.Obviously, I need to create the input control, as a Single Select Query for the attrvalueBut, I think I also need ot create the Data Source to look at the Jasper Server.I think I can figure out the query syntax once I can read the Jasper Database.Is my thinking correct? Can you offer guidance on Setting up the Datasource? Link to comment Share on other sites More sharing options...
rmeadows Posted January 18, 2022 Share Posted January 18, 2022 If you are trying to inject a profile attribute into a datasource definition in the datasource creation dialog it uses an attribute{} syntax.However, it looks like you are tyring to retrieve them as the built-in parameters that are available in report and input control queries. You will need to uncheck isForPromprting on your parameter if you do not intend for it to have an attached input control on the server otherwise it will be expected that you attach an input control to the parameter. Also, your parameter name syntax should be LoggedInUserAttribute_<attribute-name> for it to pull the profile attributes from the user. Everything else sounds setup correctly. Please see here in the administrator guide for reference to the built-in parameters that you can define (remember to uncheck isForPrompting for these if you create them in a report for usage) https://docs.tibco.com/pub/js-jrs/7.9.0/doc/pdf/TIB_js-jrs_7.9_Admin-Guide.pdf Chapter 5.5.2 Built-in Parameters for Query-based Input Controls Thanks. Link to comment Share on other sites More sharing options...
mike.atkinson Posted January 19, 2022 Author Share Posted January 19, 2022 Thank you, r meadowsin a differt forum, another Jasper user suggested I use the Logged In Username parameter to pull the branch information from the other database.It was as simple as it was obvious, once I got out from my own way. 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