jsreport.documentStore.collection('templates').insert



  • Dears,

    Am I able to pass a Data Array to this:

    jsreport.documentStore.collection('templates').insert({
              content: 'footer',
              shortid: 'footer',
              engine: 'handlebars',
              recipe: 'chrome-pdf'
          });
    

  • administrators

    hi, is your question about how to insert multiple records in single .insert call? i think that is not possible, but you can always do some iteration and insert the record one by one.


Log in to reply
 

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