The header and footer content (even the code-behind) of my template ( chrome recipe ) disappears on a random fashion. For the first couple of times it renders with the header and footer and then the header and footer content disappears. There are no async calls in the header. However I still created a Print trigger to see if that solves the problem but unfortunately it didn't :( Am using JsReport 2.1.0. Is this something you have heard before ?
Rajkumar Balakrishnan
@Rajkumar Balakrishnan
Posts made by Rajkumar Balakrishnan
-
Header and Footer Content Disappears - Chrome Recipe
-
RE: reliability, performance, deployment and fw
we use jsreport in our company and i can say that we are very much satisfied. The solution is stable and has a high degree of reliability and performance. You can run a console app to run jsreport server.. There are also several other ways of doing it depending on where you want to host the service.. The best thing do it is to spin the service using a docker container if you are using a cloud service like Azure. Alternatively you might as well just run the npm commands on the server you wish to run jsreport service. The only prerequisite is you need to have node ( > 8.9 ) as of replying to this comment :) I wrote what i think about Jsreport here - you can give it a read and see if this answers your questions -> https://medium.com/@rajkumarb/continuous-integration-for-js-reports-on-azure-appservice-part-1-2a81aa55e06
-
RE: Cannot use 'in' operator to search for '$ref' in 0
Wow, You are so Cool :) Thanks a ton again !!
-
RE: Cannot use 'in' operator to search for '$ref' in 0
Hello Jan, you were spot on about the PreserveReferencesHandling.Objects. I disabled it in the client library during debug and everything went well. But what seems odd thought is the fact that the JSON is well formed in both cases ( before and after Enabling Preservereferences Settings ) but the rendering works only if the PreserveReferences Settings is turned off... I have attached the Json after turning off PreserveReferences.... I don;t see what's doing the trick here https://drive.google.com/open?id=1DVxU5RrDT-lId7sg0jERs298GvPOVkuN
-
RE: Cannot use 'in' operator to search for '$ref' in 0
Hello Jan, Thanks for your reply. I captured the output of ValidateandSerialize Request in jsclient and attached here. See if you find something off about this https://drive.google.com/open?id=1Op9BJJ6WbXVTGiKOjym5pukVrk8MOrSe
-
Cannot use 'in' operator to search for '$ref' in 0
I keep getting the exception Cannot use 'in' operator to search for '$ref' in 0 from Jsreport while using "RenderbyNameAsync" method in the jsreport.client. What i don't seem to understand is the fact that the same template renders if i make a restful call to the endpoint without any problem. I thought the timeout could be a problem and tried using RenderAsync Method with the Renderrequest Overload method. Again it ends up in the same error. I couldn't figure out why. For now i have hardwired the http call in my App. I also tried cloning the jsreport client library and added that to my project to debug this error around. But ending up in BadRequest Response Code and with the same exception with no further clues around. Do someone see what could be going on here.. Here's the full Exception from jsreport studio
Cannot use 'in' operator to search for '$ref' in 0
TypeError: Cannot use 'in' operator to search for '$ref' in 0 at recurse (/app/node_modules/jsreport-core/lib/render/resolveReferences.js:19:20) at recurse (/app/node_modules/jsreport-core/lib/render/resolveReferences.js:44:22) at recurse (/app/node_modules/jsreport-core/lib/render/resolveReferences.js:22:20) at recurse (/app/node_modules/jsreport-core/lib/render/resolveReferences.js:44:22) at module.exports (/app/node_modules/jsreport-core/lib/render/resolveReferences.js:52:5) at module.exports (/app/node_modules/jsreport-core/lib/render/engineScript.js:29:17) at IncomingMessage. (/app/node_modules/script-manager/lib/worker-servers.js:239:47) at emitNone (events.js:106:13) at IncomingMessage.emit (events.js:208:7) at endReadableNT (_stream_readable.js:1064:12)+0 Starting rendering request 1740 (user: admin)
+7 Rendering template { name: DSMCompanyReports, recipe: chrome-pdf, engine: handlebars, preview: false }
+8 Inline data specified.
+8 Resources not defined for this template.
+11 Replaced assets ["dsmcompanyreport.css","Akkurat-Normal.ttf","Akkurat-Bold.ttf","lineto-akkurat-pro-light.woff"]
+11 Base url not specified, skipping its injection.
+11 Rendering engine handlebars -
RE: In need of good resources/suggestions for learning jsreport inside and out
The best way to learn jsreport is by starting to use it. First design a report that you would like to see in the studio and run it from the studio. Printing it through a webstack(node,.net etc) should be no different that calling any other restful services. So start by playing around with pre-existing templates. Good luck
-
RE: Setting Up JSReports on Azure App Service
Cool !! Did you have a chance to use the ARM template ?
-
RE: Setting Up JSReports on Azure App Service
Yes, You have to create the container yourself !! I'll give you a easy tip. I scripted the entire setup of jsreport in Azure.. so u just have to right click and deploy and that should work like a charm .. read my blog post and if there are questions I will be glad to assist “Continuous Integration for JSReport on Azure AppService - Part 1” @iRajBalakrish https://medium.com/@rajkumarb/continuous-integration-for-js-reports-on-azure-appservice-part-1-2a81aa55e06