how to loop over sample (local) data?



  • I've scoured the documents and SO forum and I can't seem to get the inputs right. I've tried to use {{this.foo}} but this doesn't work. The report renders but without the custom data inputs. Thanks in advance.

    {{#each this}}
    <div>
    <span>Artist: {{artist}}</span></br>
    <span>Song: {{song}}</span></br>
    <span>Id: {{id}}</span></br>
    <span>Price: {{priceUsdCents}}</span></br>
    <span>Publisher: {{publisher}}</span></br>
    </div>
    {{/each}}



  • The "invoice" example also uses each loop over sample data. Please check it out.
    https://playground.jsreport.net/w/admin/hBfqC7af

    If you still encounter problems, please create a playground workspace replicating the issue and share it here.
    Thank you


Log in to reply
 

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