Weird. Seems to have fixed itself!
geoffatsource
@geoffatsource
Posts made by geoffatsource
-
NPM Fetch issue
I am all of a sudden seeing errors like this when I try to generate a document:
Error when evaluating engine handlebars for template /request-for-quote-dev/request-for-quote-dev (because) "npmModule" helper call failed (because) unable to find module /tmp/jsreport/npm/modules/showdown@2.1.0/node_modules/showdown The require calls: require('/tmp/jsreport/npm/modules/showdown@2.1.0/node_modules/showdown') require('/usr/src/app/tmp/jsreport/npm/modules/showdown@2.1.0/node_modules/showdown') require('/usr/src/app/lib/tmp/jsreport/npm/modules/showdown@2.1.0/node_modules/showdown') Error: Unable to find module /tmp/jsreport/npm/modules/showdown@2.1.0/node_modules/showdown
The package is here and it's the latest version: https://www.npmjs.com/package/showdown
I've not made any changes to the template.
-
JSReport Online API and Version Control
Hi!
Is there a way to develop in JSReport online without affecting production templates?
Ideally if we could specify in the API to use the last commit from version control, that would be amazing. We could continue to develop in the JSReport UI without affecting production users, then commit the updates after we complete testing.
-
PDF Forms - Expressions
Is it possible to include expressions for calculated fields in PDF form fields?
https://helpx.adobe.com/sign/using/calculated-fields.html -
RE: PDF forms - border
Okay.. no problem. I'm just creating a pdfFormField for a client to fill out. By the way, passing functions for dynamic naming works, and you may want to add that to your docs
{{{pdfFormField name=(ff "item_price" 4) type="text" backgroundColor="#ffdd00" fontSize="10px" width="90px" height="24px" }}}
Where
ff
is just a concatenation function.function ff (param1, param2) { return `${param1}_${param2}`; }
So the results will yield
item_price_0, item_price_1, item_price_2, ...
Very cool!
-
PDF forms - border
I can't seem to get the PDF border to appear on form fields, referenced here
-
External Modules in jsreportonline?
I am not seeing a way to allow for external modules in scripts in jsreportonline as there needs to be a modification to a configuration file?
-
RE: Feature Request: Github Integration
Yes, jsreportonline
For branch, one could specify the branch name alongside the template name in the API request to render the PDF, and that branch would be used when retrieving the template assets.
-
Feature Request: Github Integration
I like the ability to make commits in the cloud UI, but would love it if we could integrate that with our own repo.
It would also be cool if we could specify a branch in the API so we can promote template changes to our dev, staging, prod environments.
-
RE: UTF8 Text in JSON Data
Fixed!
For anyone lurking, adding this line to the top of the template fixes it:
<meta charset="UTF-8">