跳至内容
菜单
此问题已终结
1 回复
4666 查看

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
3478
1
3月 15
3799
1
3月 15
4190
1
6月 24
1261