Reports: generate report button not working for Java-DataSet

0
We want to use Reports for showing some data to our customer. Unfortunately the "Generate report button" functionality is not working for Java-DataSets. Any idea on how to solve this (see pictures attached)? When using OQL instead of Java the button is working…    
asked
2 answers
0

Be sure to handle exceptions in the java-action. Or clean deployment folder and rebuild the app.

 

The java action should contain something like

 

		IDataSetResult result = createDataSetResult();

		// BEGIN USER CODE
		result.addRow("Mendix", new BigDecimal(21));
		// END USER CODE

		return result;

 

Add the amount of columns as defined in the dataset.

answered
0

Thanks for your response.

 

My question is NOT about how to fill the result. This is working – see blue marked codepart in the picture below.

The problem is a report PARAMETER, which should be filled by the user. This is the UI we are talking about:

 

As soon as I hit the “Generate report” button with a selected value the error occurs. 

Somehow the parameter is not beeing properly beeing forwarded (see red marked codepart in the picture below).

 

 

It looks like the boilerplate code does not find the expected format – see original question above: 

“No suitable constructors found for...”

 

I tried to add own constructors (without limit and offset parameters) which did not work.

Did anyone use “Generate report button” including parameters within Java?

answered