View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Template Report: headergrp - ProjeQtOr
 

Template Report: headergrp

More
03 Nov 2023 08:57 #1 by RoBra81
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:
<div class="tabelle">[object; block=div; headergrp=object.nameType]
  <div class="zelle spalte1 nurabseite2" style="background-color: #FFA500;">ID</div> 
  <div class="zelle spalte2 nurabseite2" style="background-color: #FFA500;">Projekt</div>
  <div class="zelle spalte3 nurabseite2" style="background-color: #FFA500;">Beschreibung</div>
  <div class="zelle spalte4 nurabseite2" style="background-color: #FFA500;">Ansprechpartner</div>
  <div class="zelle spalte5 nurabseite2" style="background-color: #FFA500;">Zieldatum</div>
  <div class="zelle spalte6 nurabseite2" style="background-color: #FFA500;">letztes Update</div>
  <div class="zelle spalte7 nurabseite2" style="background-color: #FFA500;">Status</div>
</div>
<div class="tabelle">[object; block=div]
<div class="zelle spalte1">[object.nameType; att=class; attadd][object.id]</div>
<div class="zelle spalte2">[object.nameType; att=class; attadd][object.name]</div>
<div class="zelle spalte3">[object.description; strconv=no; ifempty=-]</div>
<div class="zelle spalte4">[object.nameType; att=class; attadd][object.nameContact; strconv=no; ifempty=-]</div>
<div class="zelle spalte5">[object.nameType; att=class; attadd][object.creationDateTime; strconv=no; ifempty=-]</div>
<div class="zelle spalte6">[object.nameType; att=class; attadd][object.lastUpdateDateTime; strconv=no; ifempty=-]</div>
<div class="zelle spalte7">[object.nameType; att=class; attadd][object.nameStatus; strconv=no; ifempty=-]</div>
</div>

Unfortunately that doesn't work.

Should it work to have multiple object-groups?

Thanks in advance.

Ronny Brandt

Please Log in or Create an account to join the conversation.

More
04 Nov 2023 00:38 #2 by babynus
Replied by babynus on topic Template Report: headergrp
I don't know how groups work, but I think it would be better with TABLE and TR than DIV

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
06 Nov 2023 07:24 #3 by RoBra81
Replied by RoBra81 on topic Template Report: headergrp
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.

Please Log in or Create an account to join the conversation.

More
06 Nov 2023 09:13 #4 by babynus
Replied by babynus on topic Template Report: headergrp
<TD style="display=none"> 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.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
06 Nov 2023 10:30 #5 by RoBra81
Replied by RoBra81 on topic Template Report: headergrp
Using "display=one" for a single cell leads to misformated tables.

Allthough I tried it with table according to the TBS example:
<table>
  <tr>
    <td class="name" colspan="2">NameType: [object.nameType; block=tr;headergrp=object.nameType]</td>
  </tr>
  <tr>
    <td class="name">[object.name; block=tr][object.nameType; att=class; attadd]</td>
    <td class="description">[object.description; strconv=no; ifempty=-]</td>
  </tr>
</table>

Unfortunately this don't work either: allthough having multiple tickets with different types there is only one line "NameType: ..."
 

Please Log in or Create an account to join the conversation.

More
06 Nov 2023 12:21 #6 by babynus
Replied by babynus on topic Template Report: headergrp
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)

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.053 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.