Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
4453 Prikazi

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

Avatar
Opusti
Best Answer

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

Thanks Parvathy

Avatar
Opusti
Avtor

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.

Related Posts Odgovori Prikazi Aktivnost
0
okt. 24
1768
0
avg. 24
1592
0
jan. 24
2088
1
nov. 23
1790
0
jun. 23
2149