I've implemented basic authentication directly in the node js code before I run jsreport now. It works fine, even with the jsreport .net SDK as it also uses basic auth on the API requests.
@mein-Jaan there are many things that can be going on here, i don't know the details of how are you testing this, are you doing http requests to render api? or are you trying just from jsreport studio Run button?
if possible try to share the template and sample data on the playground
Yes, the jsreport app includes the server.js file in the app root which you need to modify if you want to add a custom error handler.
Try to install jsreport as plain nodejs app locally and test the changes in the server.js https://jsreport.net/on-prem
Then you will need to create your own custom image with jsreport app which you then deploy to the AWS.
You can find some hints in jsreport docs https://jsreport.net/learn/docker
However, building custom docker images is a common task and you should find plenty of resources online for it.
@mein-Jaan This is a different kind of question. Please create a new forum topic so we can discuss it there. Please also share a playground workspace replicating the issue.
You either send in your API request template specification with template.chrome.width some negative number or you have it stored on the template:
In the first case you need to make sure to send positive number, on the second case you need to update the template with positive number. In case you see no value in pdf width and want to use the default, please save it with some positive number, remove it and save again.
Its usually better to route the request through your server part.
So on the front end you gonna call some fetch to reach your server and on server you make a server side call to the jsreport server and return back to the client.
I am getting an issue you can see here in line 57 that i am getting formAnswerDetail i am consoling it, but when i pass form Answerdetail as a prop in line 61 and in that component i am consoling it it dives me undeifine, as you can see in image that i am passing formAnswerdetail simple e.g formAnswerDetail=formAnswerDetail, I am also sending it like formAnswerDetail=../../../formAnswerDetail but give same issue, also i tried other scenarios like if i send just simple prop like data="123" then also i am not getting data in that component, I think we can't pass the props when in component when it is in #each, so can you please guide me that how can i access the data in each
Move Topic
Disabled Categories are greyed out
This topic will be moved to the category
Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.