Page 1 of 1
Setting datasource programmatically
Posted: Mon Sep 19, 2016 6:01 am
by mahfouz
Hi there.
Could someone show me in PHP how to set a report's data source to a MySQL server and database programmatically, please?
Regards
Mahfouz
Re: Setting datasource programmatically
Posted: Mon Sep 19, 2016 7:46 am
by Alex K.
Hello,
Please check the sample at the following link:
https://www.stimulsoft.com/en/samples/p ... ta-sources
Thank you.
Re: Setting datasource programmatically
Posted: Mon Sep 19, 2016 8:11 am
by mahfouz
Hi Dear,
I'm using
library => Stimulsoft-Reports-PHP
version => 2016.1-Pack
sample => js
and i did not see handler->onBeginProcessData in handler.php
Re: Setting datasource programmatically
Posted: Mon Sep 19, 2016 8:38 am
by HighAley
Hello.
Please, upgrade to our latest build.
It was added later.
Thank you.
Re: Setting datasource programmatically
Posted: Mon Sep 19, 2016 11:32 am
by mahfouz
Hi,
I upgrade to latest build => FXPHP_2016.08.26
and I did not see the function
also, I trying to add it, but it did not work
I have set another question here from 2 days but I did not get any reply
viewtopic.php?f=18&t=52401
please give me a clear solution to connect with MySQL without add connection data into the report file
Re: Setting datasource programmatically
Posted: Mon Sep 19, 2016 12:07 pm
by HighAley
Hello.
The onBeginProcessData is in the \Samples\stimulsoft\helper.php file.
This event is used in the Sample.
We have answered your second question too.
Thank you.