跳至內容
選單
此問題已被標幟
1 回覆
4663 瀏覽次數

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 !

頭像
捨棄
最佳答案

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.

頭像
捨棄
作者

Thank you, it works !

相關帖文 回覆 瀏覽次數 活動
1
3月 15
3691
0
3月 15
3476
1
3月 15
3798
1
3月 15
4190
1
6月 24
1258