El 11/05/17 a les 09:59, Khurram Shahzad ha escrit:

Dear Cedric & Sergi,

Thanks for your kind responses.

In fact, I want to access the 'counter' attribute of the 'For Each'
construct in order to populate 'Serial No.' column of a table:
Have you tried with enumerate?

<for each="idx, line in enumerate(purchase.lines)">

Where idx will contain the 'counter' and line the line object.

Hope it helps!

--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/15fd55c9-e90b-449a-0e38-980c9ea14156%40koolpi.com.

Reply via email to