Hi @bjrmatos,
My git repo has been updated with your solution.
I have managed to follow your guidance and got an output.
I am interested in knowing how many pages each object in the data array(which has for now 2 objects) took.
For example: first object in the array took 3 pages, i would like to have it displayed on the report, "1/3 " on the first page, "2/3" on the second and "3/3" on the third.
For the second object, lets assume it took 2 pages, it should display "1/2", and the second page "2/2".
What im looking for is: pageNumber and pageIndex of each group, in other words group.pageNumber, group.pageIndex, group.totalPages ... Something like that.
How can I reach this functionality?
Thanks in advance.
----- EDIT -----
Please check my repo, and generate a report for latest update
Thanks in advance.
----- EDIT 2 -----
Instead of retrieving data from mock file, i am getting them from an api call using
request(url, { json: true }, (error, response, body) => {
// manipulate the data
// to have a proper format
// similar to the mock
// call jsreport.render .... (similar to the repo)
});
the data retrieved and manipulated is around 2000 records.
i am getting the following error:
Error: Navigation Timeout Exceeded: 30000ms exceeded
at Promise.then (C:\Users\jsreport-git\node_modules\puppeteer\lib\NavigatorWatcher.js:71:21)
at <anonymous>
GET /test/policy - - ms - -
I tried changing the
"strategy": "in-process"
to
"strategy": "http-server"
but nothing works.