I need, in a report I'm building, to combine two columns (cust_LastName and cust_FirstName), into one report field (to be used as a group header and report ORDER BY-- I don't want the report simply sorted by "cust_LastName", I want it sorted and grouped by "cust_LastName, cust_FirstName").
In other places (for example, browse forms and select boxes on forms), I've been able to specify the SQL statement CONCAT(cust_LastName,", ",cust_FirstName) and it's worked well. For example:
However, I'm not finding a way to do this for a report field. I've tried making the report's underlying SQL include CONCAT AS Name, but that gets blown out when the SQL Builder closes. I've tried adding a field in the Fast Reports builder then changing the Field Name column to the desired SQL statement, but that causes PHP errors when I try to run the report and causes the report to not be editable (the window opened when the Report Designer button is clicked, is blank.)
Is there any way to do what I'm wanting to do?
Thank you!
Mike
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
CONCATing a field for a report
-
- Posts: 14
- Joined: Mon Jan 15, 2018 7:53 pm
CONCATing a field for a report
You do not have the required permissions to view the files attached to this post.
Re: CONCATing a field for a report
Mike,
I've tried to answer this question in your related post.
http://forums.nubuilder.cloud/viewtopic.p ... 544#p15544
Steven
I've tried to answer this question in your related post.
http://forums.nubuilder.cloud/viewtopic.p ... 544#p15544
Steven