Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4700 มุมมอง

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 !

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
3691
0
มี.ค. 15
3526
1
มี.ค. 15
3826
1
มี.ค. 15
4200
1
มิ.ย. 24
1263