The input data needs to be in the json.
You can either convert it to JSON in your app or send it as a string and convert to JSON in the jsreport custom script
Jan Blaha
@admin
Posts made by admin
-
RE: How to use csv data format when importing
-
RE: Import error - version 3.6 - Request has been terminated
Please try to increase the nodejs heap size to see if this doesn't help
https://stackoverflow.com/questions/34356012/how-to-increase-nodejs-default-memory -
RE: Date doesn't render on CSV report
You seem to be using jsrender and the jsrender syntax for the helper call is
{{:~now()}}
https://jsreport.net/learn/jsrender#helpers
https://www.jsviews.com/#helpersNote I would strongly recommend using a handlebars templating engine. It is the most documented and supported engine in jsreport.
https://jsreport.net/learn/handlebars -
RE: Error while executing templating engine. Missing helper: "toJS"
You may be on an older version of jsreport.
Try to completely delete jsreport app folder, and also runnpm uninstall -g jsreport-cli npm uninstall -g @jsreport/jsreport-cli
And then follow again the installation instructions
https://jsreport.net/on-premnpm install @jsreport/jsreport-cli -g mkdir jsreportapp cd jsreportapp jsreport init jsreport configure jsreport start
-
RE: Transferring payment to my company
Please reach us at
sales@jsreport.net
and include the email address you used for the purchase. -
RE: PDF and XLS Reports are not rendering in lambda Error: Navigating frame was detached
I've tested the lambda with the latest node20 runtime and I was able to get it working after updating the chromium.
I've updated the starter kit which should work now with node 20
https://github.com/jsreport/jsreport-aws-lambda-starter-kit -
RE: Is it possible to have a link from a TOC leading to a page in an appended report?
I apologize for the delay.
There were some issues I had to fix, but with the next version of jsreport, you should be able to get the outlines cross-templates working in the script better.
So this should work in the next update
https://playground.jsreport.net/w/anon/7ysL9rwuIt seems that at this moment you can also call
postprocess
twice as workaroundres.content = await jsreport.pdfUtils.postprocess(res.content, {}) res.content = await jsreport.pdfUtils.postprocess(res.content, { outlines: [{ id: 'a1', title: 'link to another template' }] })
If you want to test the current jsreport master, you can do git clone on https://github.com/jsreport/jsreport
and yarn install && yarn start.We plan to release this week likely.
-
RE: Cannot append PDFs created by pdftk to report
Thank you for sharing the pdf.
I've fixed the problem so it should be supported with the next version of jsreport.
We plan to release this week the most likely. -
RE: how to get the Location when sending parameter async=true in jsreport.render?
You need to do the following
const result = await jsreport.render({ template: { name: '/generic/generic-report', recipe: 'chrome-pdf' }, options: {reports: { save: true, async: true }}, context: { http: { baseUrl: 'http://localhost:5488' } } })
-
RE: Async function won't show component call
We have it fixed and planning the release likely during the next days.