Dynamic table columns

I would like to have a MultiSelectField that I can use to extend the table columns with.
For example I select “Design” so all columns tagged with design (in constants.py) will be added to the table.
Visibility isn’t possible to change in tables, so I tried to apply conditions in the parametrization, but I don’t know how to use Lookup or FunctionLookup to get the selected list from the user…

It is currently not possible to add/remove columns from the Table dynamically. We do have it on our radar as a feature request, but not with high priority.

You could add all necessary columns and let the user leave them empty (ignore their content in code) for certain combinations with the MultiSelectField.

1 Like

Thanks, I will use different tables with visibility on/off instead. Not that dynamic, but with 4 versions it will work.