for loop with var



  • """
    "data":{
    "copies":5,
    "products":{
    "1"{
    "code":"123"
    },
    "2"{
    "code":"456"
    }
    }
    }'''

    """

    The goal of the previous sample is print 5 times "123" and then print 5 times "456".
    I'm using handlebars and chrome-pdf.
    How can i do it?
    I already tryed with this topic, but i don't know how to use the copies var from the data sent, instead of a fixed value.


Log in to reply
 

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