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

i have problem how to make rml with 2 object in 1 table

<tr>
    <td><para style="P20L"><font>[[ repeatIn(get_lines(), 'o') ]]</font><font> [[ o['counter'] ]] </font></para></td><!--Added by Hengky Zhang-->
    <td><para style="P20L"><font>[[ repeatIn(get_lines2(), 'p') ]]</font><font> [[ p['counter'] ]] </font></para></td><!--Added by Hengky Zhang-->
    <td><para style="P20L"><font>[[ p['date'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ o['product_id'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['name'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ o['qty'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['stock_in'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['stock_out'] ]]</font></para></td>
    <td><para style="P20L"><font>[[ p['location_name'] ]]</font></para></td>
    <!-- End edited by Jenny Huang -->
  </tr>
  </blockTable>

thats my code and i have 2 object repeatIn(getlines(), o and repeatIn(getlines2(), p i want to retrieve data from that pbjects

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

One solution for solving this problem is while defining the getlines() function return required fields in the list of dictionary.

Thanks Parvathy

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

no i mean if i have 2 getline() function lets say get_line1 and get_line2 and i want to display this field from getlines 1 and 2 in 1 table in the RML

Call get_line1 and get_line2 in a comman function get_line and return required fields in the list of dictionary.

Hello, I have the same problem. But I dont understand how I call the function. Please help.

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
1767
0
thg 8 24
1591
0
thg 1 24
2086
1
thg 11 23
1789
0
thg 6 23
2147