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

webservice temporary table?


topkatz

Recommended Posts

I have a report I built that uses calculated data from my tables.  I would like to put this data in a temporary table, then have jasperserver webservice use it.  Up untill now I have not been able to get the webservice instance to see the temporay table.  Is there a way to do this via php, or must I use a static table for my results for the report?

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

I came up with a workaround, as I figure there is no way to tell the webservice what session to use.

 

This is what I did:

 

1. In the report and subreports setup a new parameter $P!{TABLE} and use it in the SQL

2. In my PHP script I built a random string generator function

3. Create a new table and name it using the random string function

4. stick my calculated data in the table

5. call my webservice and use the new TABLE parameter with the random name.

6. Delete the table.

 

Everything is working as you would expect!

 

Link to comment
Share on other sites

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