Run a JasperServer reprt via PHP and pass over the querystring.
        Posted  
        
            by Ronedog
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Ronedog
        
        
        
        Published on 2010-04-29T02:39:28Z
        Indexed on 
            2010/04/29
            2:47 UTC
        
        
        Read the original article
        Hit count: 673
        
I'm using Web Services to run some reports created in iReport on JasperServer. Inside the .jrxml file I can see the xml that holds the SQL for the report. Is it possible to pass this querystring over to JasperServer via Web Services, instead of hard coding the definition inside the .jrxml file. This is the string I would build in PHP, then pass over to JasperServer to be used in the execution of the report.
              <queryString>
                <![CDATA[SELECT * FROM table WHERE j=2]]>
            </queryString>
Basically, I'm trying to find a way to dynamically create the SQL in PHP, then pass the SQL over to Jasper to run the report...is it even possible? Thanks.
© Stack Overflow or respective owner