İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
4718 Görünümler

Hello,

All is in the question, I would like to execute a loop based on the result of one of my boolean python function...

I tried this :

[[ repeatIn(filter( lambda a: my_bool_function(a) , objects), 'a') ]]

and this

[[repeatIn(my_bool_function(objects),'line')]]

but it didn't work... Any ideas ??

Thank you !

Avatar
Vazgeç
En İyi Yanıt

repeatln is normally on a list of items which makes it possible to also show data from these lines, e.g. invoice or sales order lines. A possible path might be to create a Python function which returns a list instead.

Avatar
Vazgeç
Üretici

Thank you, it works !

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 15
3691
0
Mar 15
3546
1
Mar 15
3834
1
Mar 15
4208
1
Haz 24
1275