Hide last authors
Alexandru Colesnicov 1.3 1 {{velocity}}
2 #set($class="Duncan1.Code.GDataClass")
3 #set($template="Duncan1.Code.GDataTemplate")
4 #set($xwlquery="from doc.object($class) as obj where doc.fullName <> '$template' order by doc.date desc")
5 #set($list=$services.query.xwql($xwlquery).execute())
6 #set($totalF=0)
Alexandru Colesnicov 3.1 7 #set($totalM=0)
8 #set($nPos=$list.size())
Alexandru Colesnicov 1.3 9 #foreach($item in $list)
10 #set($itemdoc = $xwiki.getDocument($item))
Alexandru Colesnicov 2.1 11 ###$itemdoc.getName()
Alexandru Colesnicov 3.1 12 ###$itemdoc.get('Profession')
Alexandru Colesnicov 4.1 13 #set($nFInPos = $itemdoc.getValue('QuaWoman'))
14 #set($nMInPos = $itemdoc.getValue('QuaMan'))
15 #set($totalF = $totalF+$nFInPos)
16 #set($totalM = $totalM+$nMInPos)
Alexandru Colesnicov 1.3 17 #end
Alexandru Colesnicov 4.1 18 #set($totalFM=$totalF+$totalM)
Alexandru Colesnicov 3.1 19 $nPos records processed
Alexandru Colesnicov 4.1 20 $totalFM pers. incl. woman: $totalF; man: $totalM
Alexandru Colesnicov 1.3 21 {{/velocity}}

Need help?

If you need help with XWiki you can contact: