priyanka.sharma.30 Posted October 29, 2015 Share Posted October 29, 2015 In JasperReports Server v6.0.1, how I can change the default option to set "No Data"" instead of "Sample Data"" option in adhoc view display.I tried to set te following code in file "jasperserver-proscriptsbower_componentsjrs-uisrcactionModel.primaryNavigation.js" but it didn't work out. designer: { url : "flow.html", params : "_flowId=adhocFlow&reportType=table&reportData=nodata" } Link to comment Share on other sites More sharing options...
Solution Steve Park Posted October 30, 2015 Solution Share Posted October 30, 2015 Unfortunately, I don't think there's a way to set this dynamically via a URL parameter. The only way I've found to change this is to edit the <jasperserver-pro>/WEB-INF/applicationContext-adhoc.xml file and add the following property to the adhocUnifiedStateTemplate bean definition:<property name="dataSize" value="nodata"/>Then restart the server. I hope that helps. Link to comment Share on other sites More sharing options...
priyanka.sharma.30 Posted November 4, 2015 Author Share Posted November 4, 2015 Thanks @Steve for your response.It works out. Link to comment Share on other sites More sharing options...
kkumlien Posted August 9, 2022 Share Posted August 9, 2022 Full article based on Steve's answer below: https://community.jaspersoft.com/wiki/how-change-default-ad-hoc-view-data-option-sample-data-no-data-or-full-data 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