Hello,
I'm creating an html-report for my tickets and would like to have an header per ticket type. Within Tiny But Strong framework I found headergrp like that:
Grouping sections:
Grouping sections are displayed every time a column's value in the record-set changes. You can define header, footer, splitter or parent sections using parameters headergrp, footergrp, splittergrp, and parentgrp. See block's parameters for more details.Example:
Year: [b1.year;block=tr;headergrp=year]
[b1.caption;block=tr] [b1.amount]
I tried to use it within my code like thate:
[object; block=div; headergrp=object.nameType]IDProjektBeschreibungAnsprechpartnerZieldatumletztes UpdateStatus[object; block=div][object.nameType; att=class; attadd][object.id][object.nameType; att=class; attadd][object.name][object.description; strconv=no; ifempty=-][object.nameType; att=class; attadd][object.nameContact; strconv=no; ifempty=-][object.nameType; att=class; attadd][object.creationDateTime; strconv=no; ifempty=-][object.nameType; att=class; attadd][object.lastUpdateDateTime; strconv=no; ifempty=-][object.nameType; att=class; attadd][object.nameStatus; strconv=no; ifempty=-]
Unfortunately that doesn't work.
Should it work to have multiple object-groups?
Thanks in advance.
Ronny Brandt
I don't know how groups work, but I think it would be better with TABLE and TR than DIV
Reason for using DIV instead of TABLE is, that I'd like to hide single cells using css which isn't possible with TABLE afaik.
If you try new feature such a group, first try it with the structure it is designed for...
Then when you have ot working, try new things.
Using "display=one" for a single cell leads to misformated tables.
Allthough I tried it with table according to the TBS example:
| NameType: [object.nameType; block=tr;headergrp=object.nameType] | |
| [object.name; block=tr][object.nameType; att=class; attadd] | [object.description; strconv=no; ifempty=-] |
Unfortunately this don't work either: allthough having multiple tickets with different types there is only one line "NameType: ..."
Possibly Headergroup should be in main block group, not in header line
(well, as I don't kniw this feature, possibly best is to refer to TBS documentation)
All I tried was according to TBS documentation and I have no further idea to get it work - that's why I tried to ask the developer if and how it should work...