Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4444 Vues

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
Ignorer
Meilleure réponse

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

Thanks Parvathy

Avatar
Ignorer
Auteur

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.

Publications associées Réponses Vues Activité
0
oct. 24
1767
0
août 24
1591
0
janv. 24
2086
1
nov. 23
1789
0
juin 23
2147