I’m storing appointments records in my database. I want to expose a report of the daily appointments to the client grouped by date. Here is a screenshot of a sample report I want to obtain
Could someone kindly suggest to me how I can achieve this.
Is using reporting and reportingRest module the way to go? If so where can I get some developers guiding documents on this, I would appreciate any useful links
@dkayiwa@rickysilas@mseaton
The approach is i was creating a POJO to help me group appointments by date. I them processing the appointments to group them by date and mapping them to this POJO class. The idea is to obtain response like
date:2019-1=05-05,
count: 5 // total number of appointments in that day
appointments:[ ] //list of appoitnment in that day
I then exposed this data using a resource.
As per the reviews resources should only used with entities that have CRUD operations.
That leads to the question, can someone suggest for me how i can group this data by date and expose them to a client?