Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct aggregation : per aggregation configuration option to transpose data so records are in columns not rows #731

Open
cjohnsonuk opened this issue Mar 5, 2025 · 1 comment

Comments

@cjohnsonuk
Copy link

cjohnsonuk commented Mar 5, 2025

Feature Description

I would like the option to display aggregation data records in columns instead of rows. One column per record, as many rows as there are included in the cols: option of the struct definition markup.

In some data sets I only have a small number or records to show but each record has a lot of values. This does not display well on narrow screens (or wide ones where there are a lot of columns).
Something along the lines of a "show records in columns" option

---- struct table ----
schema: incident_records
cols: %padeid%,reported_date,team,account,status,resolved_date
dynfilters: 1
showrecordsincolumns: 1
max: 5
----

or an inferred 'records in columns' by replacing the cols: option with a rows: option

---- struct table ----
schema: incident_records
rows: %padeid%,reported_date,team,account,status,resolved_date
dynfilters: 1
max: 5
----

This would also allow replacing the struct data table that appears at the top or bottom of a page controlled by the "plugin»struct»bottomoutput" and "plugin»struct»topoutput" configuration options with something that I can control where in the page it appears, what fields are in it and allows the viewer the ability to edit the struct values for the page without having to go in to edit the page.

@cjohnsonuk
Copy link
Author

I've tried a JS based workaround https://forum.dokuwiki.org/d/22791-struct-data-with-records-in-columns/4 but as of 2025/03/05 11:15 its still not working

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant