That's it. Thanks Jan!
dark0
@dark0
Posts made by dark0
-
RE: Using data from POST request instead of local file
-
RE: Using data from POST request instead of local file
I am testing it locally with postman app while my jsreport is running. It renders the report but with data from a local file...
Here is my request body from postman:POST /api/report HTTP/1.1 Host: localhost:5488 Content-Type: application/json User-Agent: PostmanRuntime/7.20.1 Accept: */* Cache-Control: no-cache Postman-Token: e1dc0fd9-d6dc-4204-b2b9-9c2ccbb9b827,5b88bbe6-0abf-43fd-b5c3-84ae03dc2a46 Host: localhost:5488 Accept-Encoding: gzip, deflate Content-Length: 171725 Cookie: render-complete=true Connection: keep-alive cache-control: no-cache { "template": { "shortid": "B1QSGTZSr", "data": {...} }
What else could be helpful to share with you?
-
Using data from POST request instead of local file
Hi guys,
I want to invoke jsreport render by passing the data like this: https://jsreport.net/learn/api#rendering-report
The problem is that, if I pass the data, it still uses the data from local data file. How can I configure jsreport to use the one that is being passed through POST request? -
RE: Text to html
Thank you very much Jan!
I noticed that content renders with double as well as triple brackets, but did not know the difference. -
Text to html
Hey guys,
I am wondering what is the easiest way to parse html that I get from data and render it to the template?
Playground link.I saw that there is this npm module, but I don't know how to use html-to-text recipe along with chrome-pdf because I need this functionality inside my pdf template.
I know I could use jquery after rendering and just rewrite every element that I need but I want to avoid that because of the volume of the work and performance.
Any help would be great!
-
RE: Accessing data from header/footer
Yeah, silly mistake.
Thanks a lot Jan :)
-
Accessing data from header/footer
Is there a way to access data from header or footer so that I can dynamically generate company name from json?
Here is the link in the playground what I'm trying to do.