how I display data in a table with an array of arrays



  • someone can i help me, i try to make a pdf whit html code and i have been trying display some data, but i want to get an array of arrays and when it try to print no display any data. what you recomend to me

    that's my api data
    0_1611856242194_data.PNG

    that's my pdf code
    0_1611856336895_cosw.PNG



  • The totalRows is just an array ["1","2"]. So it doesn't include the nested array.

    You can iterate over the nested array in users property like this

    {{#each users}}
       {{#each this}}
          {{this}}
       {{/each}}
    {{/each}}
    

Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.