Hi,
Exactly the same scenario only I am trying. adding one extra variable in the last chunk based on what I am trying to display. But in these, I am facing one difficulty. I have to fetch the count of the "Total person" value from the stored procedure itself. Normally, We return Json structure result in the Stored procedure. So Count function making some difficulties in querying. Instead of there is any chance to write a script in the jsreport. kind of After render process and merge all the chunks and find out the length of the total count.
Tamileniyan18
@Tamileniyan18
Posts made by Tamileniyan18
-
RE: Report generation takes too much time .
-
RE: Report generation takes too much time .
Hi, now I achieved it through .net itself so I get JSON data and assign it into an object array. further, I divide them into multiple chunks finally I pass the list of array objects into the report and merge the report parallelly. In my case, I am using chrome PDF. we had JSON data inside the "Data" object at the end of report we fetch {{Data. length}} to take count of persons. But now after dividing data into multiple chunks. Total count repeating for every chunk data. How I can resolve the issue. I need total counts at the end of the report at once only.
-
How to access dom element
Hi,
I have to print Qrcode from json data. For this I need to access dom element. So is there any way to access it to print qr code. I am using chrome pdf. Handlebars engine. -
RE: Report generation takes too much time .
I checked with that parallel script with large data. it results in me showing error like .
Error: Render cycle detected. Template at /Atims Reports/System/Active Roster/Active Roster - Detail/Active Roster - Detail was rendered previously in this render request (hierarchy: /Atims Reports/System/Active Roster/Active Roster - Detail/Active Roster - Detail -> /Atims Reports/System/Active Roster/Active Roster - Detail/Active Roster - Detail). Please verify that reporter.render is not causing cycle
at process.<anonymous> (E:\V2SOURCE\JS REPORT\node_modules\script-manager\lib\worker-processes.js:55:23)
at process.emit (events.js:200:13)
at emit (internal/child_process.js:876:12)
at processTicksAndRejections (internal/process/task_queues.js:84:9) -
Need System time instead of server time JSREPORT.
Hi,
I am using this function for calculating days between startDate and endDate.Further if end date is not available means it takes now date.
In a hosted server its taking server time as now for endDate.But in my scenario i need my local system time as now.Not a server time. In this any possible to take system time as now in hosted server.function CalculateDays(startDate, endDate) { if (startDate) { let start = new Date(startDate); let end = new Date(); let days, hours, minutes; if (endDate) { end = new Date(endDate); } // get total seconds between the times let delta = Math.abs(start.getTime() - end.getTime()) / 1000; // calculate (and subtract) whole days days = Math.floor(delta / 86400); return days; } }
-
RE: jsreport rendering templates for more than 12 mints to download.
Thank u @jan_blaha now its working awesome. Though 800 pages PDF report downloading within 1 mint .Thank u so much for your immediate response.Great work .
-
jsreport rendering templates for more than 12 mints to download.
Hi,
I am using PDF utils operation of "Render for every page".Because of i need header for every template and header content will dynamically change for every page. For this i am using {{{pdfAddPageItem}}}.
Such that its taking 12 mints to download for 800 page report.
In my requirement i need header for every page.such case any way to increase my performance issue. -
The response header exceeded the limit
After i started rendering my template through .net sdk.At last jsreport throwing an issue as "The size of the debug logs which should have been written to the response header exceeded the limit. The content of the response header was cut to avoid HPE_HEADER_OVERFLOW errors. To avoid this message, please decrease the number of console.log calls in the template." Further i doesn't get any response to my API application.
-
RE: Automatically Reloading
Thank U so much for your response.Now its working great!!
-
Automatically Reloading
While i working with my template its automatically reloading every 10 sec And also its rendering automatically while i am saving template in jsreport 2.5.0 .