Hi All,
Is it possible to create dynamic columns in a Business Central List page (pivot-style view)?
I have a custom table with the following structure:
| Job No. |
Step |
Completed |
| JOB001 |
Estimate |
TRUE |
| JOB001 |
Planning |
FALSE |
| JOB001 |
QA |
TRUE |
| JOB002 |
Estimate |
TRUE |
| JOB002 |
Repair |
TRUE |
I would like to display the data in a List page like this:
| Job No. |
Estimate |
Planning |
QA |
Repair |
| JOB001 |
✓ |
✗ |
✓ |
|
| JOB002 |
✓ |
|
|
✓ |
The challenge is that the list of Steps is not fixed. New steps can be added over time, so I need the page to generate the columns dynamically based on the data.
From what I understand, Business Central page layouts are compiled, so fields and columns must be defined at design time. Is there any supported way to create truly dynamic columns in a List or Worksheet page?
If not, what is the recommended approach for implementing a pivot-style view in AL?
-
Is the Matrix page pattern the only native solution?
-
Has anyone implemented this using a Control Add-in?
-
Are there any standard Business Central pages or examples that achieve this?
I'm looking for a solution that stays within Business Central if possible, rather than exporting the data to Excel.
thank you