Jump to content
We've recently updated our Privacy Statement, available here ×

gui.bernardi09

Members
  • Posts

    2
  • Joined

  • Last visited

gui.bernardi09's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hi, Jasper Server Version: 6.4.2 I'm trying to work with subreports in the jasper server, at my first test a simple report with one subreport (Generic Header which I share to all the others reports), it works. I'll explain how I did it work, because I'm in doubt if I did correctly: 1. I publish the subreport as a reportUnit in repo:/reports/ 2. In the other report, I put the expression in the subreport component: "repo:/reports/Cabecalho_Landscape_files/main_jrxml" and when I publish this report I Overwrite the Expression passing the same expression. It works, the generic report could be accessed by all the other reports. But now I have a report with the same generic header as subreport and it have other subreport where I show some data, but it also have the same generic header. Report Example 2 Tree: - Main Report Generic Header (Subreport)Summary (Subreport)Generic Header (Subreport)When I publish this Main Report, Jasper Server identify 3 resources, but doesn't have any hint ou description about them. All of them are main.jrxml and I can't identify. This is how Jasper identify resourcers: https://imgur.com/a/S2NAm Is there a better way to work with subreports in Jasper Server? Thanks in advance
  2. 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.
×
×
  • Create New...