Idea Summary
Currently the columns are Static anerlog to a Select Statment. However, it is possible to create dynamic SQL statements with different number of columns using the table function. Here it would be nice if Apex could do that out of the box.
(Currently we use placeholders and fill them and then rename the header via Javascript. )
Use Case
Our application contains process data of machines unknown to us, which should be displayed in a table in a reasonable way.
Preferred Solution (Optional)
One idea for this case would be to make a select for the query and a select for the header of the table.
Another would be that the result of the query is a json containing all relevant data.