Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
6222 Vizualizări

Hi everybody,

I use aeroo to report on .odt, within a loop for I want ti initializze a variable i=0, then it increments in the loop, and in the end I will show the i

It's my idea to catch the value of i in every loop

<i=0>
<for each="oneaddress in o.address">
<i = i + 1>
</for>
<i>

the error :

__filter() got an unexpected keyword argument 'i'

Any idea, thanks

Imagine profil
Abandonează
Cel mai bun răspuns

If you want to use an autoincrement variable, you can change your for tag with this for tag:

<for each="inc in range(count(objects))">

end call the object in the loop with this one

<objects[inc].name or ''>

when you want show the variable you must only use this tag:

<inc>
Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
sept. 24
11060
1
iul. 23
2998
0
iul. 22
1611
1
dec. 15
3462
0
mai 15
3620