Jump to content

spmdd111

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Forum

Downloads

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Events

Profiles

Posts posted by spmdd111

  1. I hope someone can guide me in the right direction. I want to use the jasperreports server 6.3.0 to generate some reports by using PHP. In PHP I use the Jaspersoft PHP client 2.0 to generate the reports. This works fine but I have a problem with parameters.

    This is how my JRXML looks like:

    <textField>    <reportElement x="305" y="42" width="100" height="30" uuid="5bbcd9d3-c70e-4b5c-8b0e-5948ce000cbd"/>    <textFieldExpression><![CDATA[$P{Parameter1}]]></textFieldExpression></textField></pre>[/code]

    I want to fill that Parameter with a value, what I tried is to use input controls but in the report the value is always null.

    My PHP code is:

    $c = new Client(    "http://localhost:8080/jasperserver",    "jasperadmin",    "jasperadmin");$controls = array(    'Paramter1' => 'Hello World!');$report = $c->reportService()->runReport('/reports/testreports/report1', 'pdf', null, null, $controls);[/code]

    I assume that either

    1. it is not possible to use input controls to achieve what I want
    2. I'm doing something wrong.

    Thank you very much for any helpful answers!

     

×
×
  • Create New...