Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Template Report: he...
 
Notifications
Clear all

Template Report: headergrp

7 Posts
2 Users
0 Reactions
2,362 Views
(@robra81)
Posts: 106
Active Member
Topic starter
 
[#9126]

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]  
ID
   
Projekt
 
Beschreibung
 
Ansprechpartner
 
Zieldatum
 
letztes Update
 
Status
[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


 
Posted : 03 Nov 2023 10H57
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

I don't know how groups work, but I think it would be better with TABLE and TR than DIV


 
Posted : 04 Nov 2023 2H38
(@robra81)
Posts: 106
Active Member
Topic starter
 

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.


 
Posted : 06 Nov 2023 9H24
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

is as hidden as a div 😉

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.


 
Posted : 06 Nov 2023 11H13
(@robra81)
Posts: 106
Active Member
Topic starter
 

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: ..."
 


 
Posted : 06 Nov 2023 12H30
babynus
(@babynus)
Posts: 14966
Main Contributor Admin
 

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)


 
Posted : 06 Nov 2023 14H21
(@robra81)
Posts: 106
Active Member
Topic starter
 

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...


 
Posted : 13 Nov 2023 10H18
Share:

Scroll to Top