famykhan4u Posted February 22, 2017 Share Posted February 22, 2017 Hello Guys,I am stuck with a problem & need help for the same. I have different versions of executed reports saved on the Jasper Server with data(.pdf, .xls etc). By using the database I want to know the owner of those file.Since the database schema is very new to me I am unable to fetch the desired result.I want to know the owner & the Url of all such files.Any help would be great. Thanks in advance..!!! Thanks & regards,Fahim Khan Link to comment Share on other sites More sharing options...
Solution reportdev Posted February 22, 2017 Solution Share Posted February 22, 2017 the jasperserver uses postgres database and this database can be accessed from the pgadmin tool.Add a connection in pgadmin to your postgres database. check this sitehttp://community.jaspersoft.com/documentation/jasperreports-server-install-guide/v561/selecting-postgresql-configurationIn the jasperserver database, execute below query in pgadmin and it will return the required resultset.select jr.id, jr.name, jr.label, jr.creation_date,ja.user_id, ju.username From jiresource jr, jiaccessevent ja, jiuser juwhere jr.id = ja.resource_idand ja.user_id = ju.idand (jr.name like '%.pdf' or jr.name like '%.xls%') Link to comment Share on other sites More sharing options...
famykhan4u Posted February 23, 2017 Author Share Posted February 23, 2017 Thanks a lot. That worked perfectly. 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