Page 1 of 2

call mySQL stored procedures

Posted: Wed Jul 06, 2011 12:42 pm
by pier
Is it possible?

How?

Im trying "call sp_list()" but I get "Data not found"


call mySQL stored procedures

Posted: Thu Jul 07, 2011 9:17 am
by Vladimir
Hello, Pier

Unfortunately, we have not tested work of the Reports.Fx for PHP with stored procedures. Please send us a sample of your database to support[at]stimulsoft.com with a link on this forum topic, we will try to find a solution for you.

Thank you.

call mySQL stored procedures

Posted: Thu Jul 07, 2011 12:36 pm
by pier
Hi Vladimir

What we need is a way of letting the programmers change the MySQL queries, without having to open and save the report file everytime there's a little change.

Of course we are aware the result has to have the same columns.

Is there some way to do that dynamically for example with an external file?

Regards

call mySQL stored procedures

Posted: Fri Jul 08, 2011 7:37 am
by Vladimir
Hello, Pier

You can check and change the SQL query in the following location: the handler.php file, sti_client_event_handler function, case "LoadData" section, $query variable.

Thank you.

call mySQL stored procedures

Posted: Mon Jul 11, 2011 10:40 am
by pier
Thanks Vladimir!

Ok, so I change the query in:
case "LoadData":
and
case "RetrieveColumns":

But how do I configure the data source in the designer? Do I leave the query field blank?

call mySQL stored procedures

Posted: Tue Jul 12, 2011 1:11 am
by Vladimir
Hello, Pier

It does not matter. It is important for the designer and the viewer, what a response is received from the server.

Thank you.

call mySQL stored procedures

Posted: Tue Jul 19, 2011 3:07 pm
by pier
Hi again Vladimir

I've tried putting the query in the handler.php and it worked. The problem is that I can't use procedures in that query. I suppose it's because your flash can't read the table column names.

Is there way to use mysql stored procedures?

I'm considering using an XML Webservice instead of stored procedures to separate data generation from the presentation. But that would be my second option...

TIA

call mySQL stored procedures

Posted: Wed Jul 20, 2011 7:30 am
by Vladimir
Hello, Pier

Unfortunately, we have not tested work of the Reports.Fx for PHP with stored procedures. This task has already been added to our to-do list.

Thank you.

call mySQL stored procedures

Posted: Wed Jul 20, 2011 6:05 pm
by pier
We'll try to find another solution then.

Thanks again


call mySQL stored procedures

Posted: Wed Jul 20, 2011 11:29 pm
by Andrew
Ok!