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

Hide credentials in datasource expression


Go to solution Solved by arnaudsimon091,

Recommended Posts

Hello everyone,

I have many subreports  in my jaspersoft main report and I pass the credentials to access specific SQL datasource in the "connection expression" in the subreport tab :

credentials_datasource_subreport.png.f78cfb0edbce55a3925613a7486398fe.png

I would like to find an another method to make sure that a user can't read this credentials when they access the report with Jaspersoft studio.

Thanks for your help.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

  • Solution

Hello there,

I think that it would be easier for you to use default adapters instead of java.sql.Drivermanager, moreover it isn't needed to write credentials.

To do so, you need to export your data adapter to a XML file, then publish it to jasperReports server.

After, that, configure each "Default Data Adapter" property in each subreport, compile them, compile your main report and publish it without datasource connection.

2020-07-29_15h27_56.png.f8a4c5af51dac9f92ad0199495c49545.png

(more information in this jaspersoft documentation : https://community.jaspersoft.com/wiki/how-deploy-and-use-data-adapter-tibco-jasperreports-server-v56)

Best regards

 

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...