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

Can anyone knows how to sort a list in mako file for a webkit report?

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

Hi Surendar,

In mako template you can open python code block like this:

<%
      # You can sort your list of records here
%>

I hope this helps :-) Cheers, Petar

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

Webkit report supports Python code, to use the python code in the mako template you can use,

<%
#Python code
%>

Here you can write your python code to sort the data!

อวตาร
ละทิ้ง