Adhoc View - Change default nodata option

0
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-pro\scripts\bower_components\jrs-ui\src\actionModel.primaryNavigation.js" but it didn't work out.
 
designer: {
    url :    "flow.html",
    params : "_flowId=adhocFlow&reportType=table&reportData=nodata"
}
priyanka.sharma.30's picture
Joined: Oct 29 2015 - 5:00am
Last seen: 5 years 4 months ago

Thanks @Steve for your response.It works out.

 
 
priyanka.sharma.30 - 6 years 1 month ago

1 Answer:

3

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.

Steve Park's picture
5392
Joined: Dec 5 2012 - 8:39am
Last seen: 4 months 15 hours ago
Feedback
randomness