Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4691 Lượt xem

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 !

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you, it works !

Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 3 15
3691
0
thg 3 15
3503
1
thg 3 15
3823
1
thg 3 15
4195
1
thg 6 24
1262