Hi,
I'm looking at Lazreport to create a simple Report from a Database.
In the Designer though (at design time), I see the wrong DB Fields.
My SqlQuery has the following SQL Text:
SELECT changes.id AS id, DATE_FORMAT(changes.date_created, "%Y-%m-%d") AS DATE, items.name AS Item, changes.amount AS Amount, changes.cost AS PRice FROM changes LEFT JOIN items ON changes.item_id = items.id;
But the Report Designer shows me the fields of the "changes" table (id, item_id, amount, date_created, cost), not the result of the query, therefore I cannot assign Report Variables to e.g. Item name - as it's not shown.
frDBDataSet.Dataset is set to the SQLQuery, and the Datasource to the SQLQuery's Datasource.
The SQLQuery has the joined-statement set, and doesn't get overwritten anywhere in my code.
Any help or pointer appreciated :-)