gui.bernardi09 Posted March 13, 2018 Share Posted March 13, 2018 Hi,I'm new using Jasper Server, and I'll need to use a Remote XML DataSource, so I decide to do a test before, I'm trying to use a simple Input Control passing an String and retrieve at the report. But it doesn't work.My versions:Jasper Server 6.4.2Jaspersoft Java Rest Client: 6.3.1This is my parameter "Teste" in my JRXML:<parameter name="Teste" class="java.lang.String" isForPrompting="false"/>[/code]And I already test the input control Listing, Setting and Getting the value in my Bean. Everything works fine.This is the way I'm setting the Input Control:OperationResult<InputControlStateListWrapper> operationResult = session .inputControlsService() .inputControls() .container("/reports/TestJasperReport") .values() .parameter("Teste", moedas.get(0).getNome()) .run();InputControlStateListWrapper teste2 = operationResult.getEntity();[/code]And this is the way I'm calling the report:OperationResult<InputStream> result = session .reportingService() .report("/reports/TestJasperReport") .prepareForRun(ReportOutputFormat.PDF, 1) .run();InputStream inputStream = result.getEntity();[/code]And that's my input control configuration:https://imgur.com/a/6FQFuBut in my report the "Teste" parameter is always NULL. What I'm doing wrong?Thanks in advance. 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