[#10086] - Studio 6.4.3 : Property 'whenNoDataType' not present in jrxml when creating a report with no datasource

Bug report
Project: Severity:
No Change Required
Component: Reproducibility:
Assigned to:

I created 2 reports with no datasource to add its to a report book.
The 2 reports don't show up.

I realise the property 'whenNoDataType' was not present in the jrxml.
I add it manually with : 'whenNoDataType="AllSectionsNoDetail"' or 'whenNoDataType="NoDataSection"' the 2 reports show up.

Yann22300's picture
Joined: Apr 29 2015 - 1:10am
Last seen: 1 month 2 weeks ago


  • Assigned:nobody» morlandin

Hi, you can simply add the value for the when no data type from the properties view without need to edit directly the jrxml. After you created the report select the root node in the outile or the gray area on the report editor and on the properties view you have a combo where you can select the value of your when no data type. About the default behavior, when no data type is not a mandatory attribute so doesn't make sense to force it in the jrxml when the report is created and when it is not present what happen is decided by the JasperReports libray and not from studio.
Did this solve your problem?

  • Resolution:Open» No Change Required
  • Status:New» Closed
  • Assigned:morlandin» chicuslavic

Sorry but maybe I didn't give enough explaination or I don't have the same thinking as morlandin.
I meant, at this time, that I chose the property 'Don't use a data adapter' for my main dataset.
So with no data adapter at all it would make sense to me that the 'whenNoDataType' property sets with "NoDataSection".

That being so the 'One Empty Record' property appeared and also solved the problem..

  • Resolution:No Change Required» Open
  • Status:Closed» New
  • Assigned:nobody»
  • Resolution:Open» No Change Required
  • Status:New» Closed