Creating reports using qxorm
Posted: Sun Sep 30, 2012 7:31 pm
I want to create reports in my system. Report is some SELECT query with SQL functions like SUM and GROUP BY. This means that output field will be different then in my business objects. Query will be like this:
How can i execute such SELECT query and output results to client using qxorm?
I see only one way to solve this: create business object for this and fetch all data using qx_query into this object manually.
SELECT status.caption, SUM(orders.amout)
FROM orders
JOIN status ON orders.status_id = status.id
GROUP BY status.id
How can i execute such SELECT query and output results to client using qxorm?
I see only one way to solve this: create business object for this and fetch all data using qx_query into this object manually.