Jump to content
Changes to the Jaspersoft community edition download ×

Problems linking Input Control with Parameter


gui.bernardi09

Recommended Posts

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.2
Jaspersoft Java Rest Client: 6.3.1

This 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/6FQFu

But in my report the "Teste" parameter is always NULL. What I'm doing wrong?

Thanks  in advance.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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