Products Downloads


French version


Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

This macro is the counterpart of the groupHeader macro. By placing this macro in the groupList macro content, it is possible, when browsing the ordered sequence, to detect when the current element is the last element in a group, in order to execute the nested content of this macro.

 


This macro can be used to display information on the current group (a sub total for example) after displaying the content of the current element. 


When browsing the ordered sequence, the nested content of this macro will only be executed once per group: when the current element is the last in the group.

 


For example

Pas de format
<#assign seqData = [{"name": "mary", "age": 18},
{"name": "Lucy", "age": 19},
{"name": "Mark", "age": 19},
{"name": "Charlie", "age": 17},
{"name": "Aaron", "age": 18},
{"name": "Tess", "age": 16},
{"name": "Isaac", "age": 16}
]/><#assign>
<#assign orderingCriteria = {"name": "original_order_by_age", "colName": "age", "order":"o"} /><@hardisAdv>
<@hardisAdv.groupList .data_model.seqData orderingCriteria; aPerson>$aPerson>
${ aPerson.name} has ${ aPerson.age }
<@hardisAdv.groupFooter "original_order_by_age">End>
End of age group.
</@hardisAdv.groupFooter><groupFooter>
</@hardisAdv.groupList> 

...


has the result:

Mary is 18

...

Pas de format
<#assign seqData = [{"name": "mary", "age": 18},
{"name": "Lucy", "age": 19},
{"name": "Mark", "age": 19},
{"name": "Charlie", "age": 17},
{"name": "Aaron", "age": 18},
{"name": "Tess", "age": 16},
{"name": "Isaac", "age": 16}
]/><#assign>
<#assign orderingCriteria = {"name": "original_order_by_age", "colName": "age", "order":"o"} /><@hardisAdv>
<@hardisAdv.groupList .data_model.seqData orderingCriteria; aPerson>$aPerson>
${ aPerson.name} has ${ aPerson.age }
<@hardisAdv.groupFooter "original_order_by_age"; infoGroupOriginalOrderByAge>EndinfoGroupOriginalOrderByAge>
End of group of ${ infoGroupOriginalOrderByAge .label}: ${ infoGroupOriginalOrderByAge .endRow - infoGroupOriginalOrderByAge .startRow } people<people
</@hardisAdv.groupFooter><groupFooter>
</@hardisAdv.groupList>

...



has the result:

Mary is 18

...

End of group of 16: 2 people
Empty directive: No

...


Parameters

Hardis - Tableau personnalisé
alternateColorstrue

String

groupName

Name of the group whose output is to be detected during browsing

Mandatory


 For example

Pas de format
<@hardisAdv.groupList .data_model.seqItems orderingCriteria; aItem><@hardisAdvaItem>
<@hardisAdv.groupHeader "orderGroup1"; infoGroup>BeginninginfoGroup>
Beginning of group ${ infoGroup.label }
</@hardisAdv.groupHeader>
... ${ aItem.fooAttribute} ...
<@hardisAdv.groupFooter "orderGroup1"; infoGroup>EndinfoGroup>
End of group ${ infoGroup.label }
</@hardisAdv.groupFooter><groupFooter>
</@hardisAdv.groupList> 


Hardis - Haut de page

↑ Top of page

...

 

...