On Thu, May 11, 2017 at 1:08 PM, Sergi Almacellas Abellana <[email protected]
> wrote:

> 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!
>

Its working like a magic. Fantabulous! Thank you!

-- 
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/CAM3N3Cym1z4EsNm3TaGtApfb0tvdNFF_JFPgQ2R0jL5tgfHDjQ%40mail.gmail.com.

Reply via email to