Forum

Template Report: he...
 
Notifications
Retirer tout

Template Report: headergrp

7 Posts
2 Utilisateurs
0 Reactions
2,322 Vu
(@robra81)
Posts: 106
Estimable Member
Début du sujet
 
[#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


 
Posté : 03/11/2023 10:57 am
(@babynus)
Posts: 14952
Membre Admin
 

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


 
Posté : 04/11/2023 2:38 am
(@robra81)
Posts: 106
Estimable Member
Début du sujet
 

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.


 
Posté : 06/11/2023 9:24 am
(@babynus)
Posts: 14952
Membre 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.


 
Posté : 06/11/2023 11:13 am
(@robra81)
Posts: 106
Estimable Member
Début du sujet
 

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


 
Posté : 06/11/2023 12:30 pm
(@babynus)
Posts: 14952
Membre 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)


 
Posté : 06/11/2023 2:21 pm
(@robra81)
Posts: 106
Estimable Member
Début du sujet
 

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


 
Posté : 13/11/2023 10:18 am
Share:
Retour en haut