Quantcast
Viewing all articles
Browse latest Browse all 16689

Create a report with a dynamic number of columns and lines

Hi everyone

I need to create a report that will display an array.
This array will have some columns (the number depends of a field from my request) and lines (same logic)

I'll give an example. I'm working on a fiancial report. Every columns correspond to an Agency, and every line correspond to a certain type of income / outcome

Here is an example of what I need

Image may be NSFW.
Clik here to view.


Capture.PNG
The blank case are where i'll have the values

The number of agency will evolve in the future, that's why I don't want to write them as "hard code" but prefer to let the request tell me the number

Thanks a lot for your help



EDIT
I changed my request and i have now 1 SQL line per agency with all the datas (line of the array I want) on it
The thing is now, I need that each of my line (= each agency) display as a column, and not as a line (normal behaviour)

The solution I thought of, is to do 1 subreport per agency and then put all the subreport next to each other (I don't really like this solution, I think it's dirty)

Any other idea??
Attached Images
  • Image may be NSFW.
    Clik here to view.
    File Type: png
    Capture.PNG (9.6 KB)

Viewing all articles
Browse latest Browse all 16689

Trending Articles