Passing and handling variables to reports

Stimulsoft Reports.PHP discussion
Post Reply
marcello.scacchetti
Posts: 1
Joined: Thu Jul 15, 2010 10:04 am

Passing and handling variables to reports

Post by marcello.scacchetti »

Hello,
it's possible to pass variables to a report (report viewer) and use them in the report designer while defining data sources? For example suppose
the php web application calls report viewer passing a record id and on the report side the data source sql should look like: SELECT * FROM table WHERE recId = [recordid]
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Passing and handling variables to reports

Post by Vladimir »

Hello,

Unfortunately at this moment it is not implemented. It will be implemented later. But you can modify the PHP script to realize this feature. In the database.php file on functions entry comes SQL query ($query parameter in functions header), you need to programmatically change the user parameter to the desired value.

Thank you.
marcelbesteman
Posts: 2
Joined: Wed Jun 09, 2010 5:39 am
Location: Netherlands

Passing and handling variables to reports

Post by marcelbesteman »

Dear Vladimir,

Will this be implemented in the release of September? I really hope so because we need to pass multiple variables to our reports.

Regards,

Marcel Besteman
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

Passing and handling variables to reports

Post by Vladimir »

Hello,

At this moment we can not answer this question, because to release remains to be done a lot of improvements.

Thank you.
Andrew
Posts: 4107
Joined: Fri Jun 09, 2006 3:58 am

Passing and handling variables to reports

Post by Andrew »

Hello,

On the current moment we cannot answer this question, because a lot of improvements must be done for the next release. Sorry.

Thank you.
Post Reply