コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4460 ビュー

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

アバター
破棄
最善の回答

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

Thanks Parvathy

アバター
破棄
著作者

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.

関連投稿 返信 ビュー 活動
0
10月 24
1770
0
8月 24
1594
0
1月 24
2089
1
11月 23
1791
0
6月 23
2149