Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
4445 Visualizzazioni

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
Abbandona
Risposta migliore

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

Thanks Parvathy

Avatar
Abbandona
Autore

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.

Post correlati Risposte Visualizzazioni Attività
0
ott 24
1767
0
ago 24
1591
0
gen 24
2086
1
nov 23
1789
0
giu 23
2147