print value of loop counter for 'repeatIn' loops

Asked by Akshay Jain

does the repeatIn loops used in rml files have a counter variable? if yes then how can we print value of loop counter for 'repeatIn' loops?

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Addons (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Akshay Jain
Solved:
Last query:
Last reply:
Revision history for this message
Vinay Rana (OpenERP) (vra-openerp) said :
#1

Hello,

There is not any counter variable exist regarding to repeatin but you can trace it from " def _child_get(node, self=None, tagname=None):" method which is exist in following path :
 server_5.0/bin/report/render/rml2pdf/utils.py

Hope this will help you.

Thanks.

Revision history for this message
Akshay Jain (akshay-jain-7983) said :
#2

I got it. There is a <seq> tag in rml that is just like an oracle sequence. It generates sequence numbers everytime repeated. So in a repeatIn tag it can generate sucessive sequence numbers. For more information see the rml documentation on reportlab's website.