Dynamically regenerate table columns

Hi,

In my app, I have two tables along with a CSV file upload button, see the screenshot:

User will upload a CSV, the data from the CSV is displayed in "CSV Data" table. After some processing, the processed data will be displayed in the "Results" table. The "results" table will be identical to the "csv data" table except it will have one extra column.

The issue I am running into is that the CSV structure will be different each time, so I need to dynamically regenerate the columns of "Results" table so that it is identical to the "CSV data" table except for the one extra column.

Is it possible to regenerate columns dynamically? We do it via the UI just not sure if there's a code way to do it.

Thanks,
Anand


Is this you want?

1 Like

@AnsonHwang Thank you so much, that is what I was looking for.