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

I have a function in python wich returns an array like this [[code,value1,value2...],[code,value1,value2].....]  them i call the function  in a xml which geberate a report. my question is how can i loop the array i want in each line of the table show the values of the items in the array

part of the code in the xml but it gives me an out of range error

regards


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

Hi,

Try refer the following blog which will help you to perform looping in xml for report.

https://www.cybrosys.com/blog/conditional-and-looping-in-qweb-templates


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 24
3955
1
พ.ค. 25
591
QWeb: use t-if to check birthday date แก้ไขแล้ว
1
เม.ย. 25
1700
1
ก.พ. 25
839
0
เม.ย. 25
889