I have a client that wants a landing page and report that allows them to compare a list of attributes from multiple cases side by side where we create X number of columns based on the number of cases returned and then we display Y number of rows based on the size of the list we are including in the report. Specifically, we are comparing budgets across cases and the budget line items can vary in general, but they will be comparable across the cases that are being compared.
I don’t see a way in constellation to set up a repeating display that repeats by column and with the ultimate goal being to get the data into a spreadsheet, that kind of display wouldn’t translate.
Two solutions I can think of are
to create a structure that we manually populate where each row represents what we want to show from the grid and we would be leaving empty columns behind when we ran out of cases to populate them, or
creating a correspondence rule where we dynamically create table headers and table rows while iterating through the list of cases. This could get quite messy as we would effectively be iterating through two lists (and I might still have to go back and create something like the previously mentioned structure).
We can go with a standard constellation table (best to use insights) with promoted filters, sorting, row filtering, global search features which will give me below advantages (I am sure you might have already considered these…)
You can always search and compare multiple cases using promoted filters
You apply a default filters on the load itself which could reduce the list of cases fetched
You could apply for certain expense type and get related cases for certain thresholds
You can have total or aggregate at the bottom for each expense type (column)
You could use color coding for certain thresholds (if table is created through insights)
and more…
Not sure if you can get all these features you go with the horizontal display of cases and also when the list of cases increase, the horizontal scrolling could be a problem and comparison of cases would become a nightmare to scroll back and forth.
If you are very particular about the structure, we can also go with building a full blown custom table DX component as well with all the fancy features. But again it will be messy to maintain in future…
Assuming I could get the client to consider flipping the display . . .
how would you handle the variability of budget line items? The challenge as I see it is that the number of cases and the number of line items are both variable. To make matters worse, the will want to include summarizations of expenses and revenue and the net of both. The reason they want the display the way they want it is because they want to effectively compare the budgets across cases. And I should mention that the budget line items are in a page list on the case, so we would probably need to set up a declare index for those line items so they can be reported on.
When budget line items are increased, you can keep on adding more columns to UI and i believe this is less frequent than the number of cases getting increased. We can always prioritize the columns to display that are really important/necessary for user viewing.
Yes, for reporting flexibility, we might have to utilize the declare index approach and store the information.
For the summarization, we can utilize the insights to show various type of tiles, charts, graphs for expense and revenue and show them on the case or as a separate landing page.