Page 1 of 1

How do I get a report with GET parameter

Posted: Thu Mar 13, 2025 8:58 am
by evilcat
hi
I am using php version into mrt file
How to change the data with get parameter

Re: How do I get a report with GET parameter

Posted: Thu Mar 13, 2025 1:41 pm
by Lech Kulikowski
Hello,

You can use variables:
https://www.stimulsoft.com/en/documenta ... iables.htm

Thank you.

Re: How do I get a report with GET parameter

Posted: Thu Mar 13, 2025 5:00 pm
by evilcat
thank you very much for the return can you make me a small mrt file and index.php with get variables

Re: How do I get a report with GET parameter

Posted: Fri Mar 14, 2025 2:45 pm
by Lech Kulikowski
Hello,

https://www.stimulsoft.com/en/documenta ... iables.htm
Report variables transferred in a URL query

The report generator has the ability to automatically assign values to variables passed in a URL request. To enable this, you need to set the passQueryParametersToReport property to true in the event handler:

Code: Select all

<?php
use Stimulsoft\Report\StiReport;

$report = new StiReport();        
$report->handler->passQueryParametersToReport = true;
$report->process();
?>
Thank you.