Jump to content

Adhoc View - Change default nodata option

Go to solution Solved by Steve Park,

Recommended Posts

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

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

  • Solution

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

  • 6 years later...

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