by Bernd.N » Tue May 31, 2016 2:09 am
I think it is possible when you add two new fields to the table itself like
sequence (INT)
row_type (CHAR 1) -> G = Group Row, null = Normal Row
Then you can create and show a group line with the information you need, and use a special sort order to put the group row below the normal rows.
The group line could be shown in another color with an onRenderLine() function on each field.
In case you do not want that group line in the original table, you could create a temporary SELECT as you like and need, together with a UNION that adds the group lines, and convert that to a foundset and show it in the table form.
We used this approach to create a report of Top-Five-Sales-of-a-period for each branch of a customer, which had some additional lines below the top-5-lines, not only a summary. Then we just printed everything in the order we needed. Worked quite well with this approach.
Bernd Korthaus
LinkedInServoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro