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

How can I merge two filters in an RML report? 

This one: [[repeatIn(filter(lambda l: l.x_printable_choice==0 ,o.invoice_line), 'l')]]

and the one above: [[repeatIn(filter(lambda l: l.name.find('>')==-1, o.invoice_line), 'l')]]

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try the below code:-

[[repeatIn(filter(lambda l: l.name.find('>')==-1 and  l.x_printable_choice==0, o.invoice_line), 'l')]]

 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

That worked perfectly! thank you very much Prakash!

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3747
3
ก.ค. 24
8519
2
ธ.ค. 17
3182
0
เม.ย. 17
3218
1
เม.ย. 17
4592