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 {{}} but this doesn't work. The report renders but without the custom data inputs. Thanks in advance.

    {{#each this}}
    <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>

  • The "invoice" example also uses each loop over sample data. Please check it out.

    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.