Hello !
I have a source giving random product type. In order to know how many product of what type I got in the sink, I used the entry trigger to update a global table. As I do not know how many different products I will have I added an insert column in the entry trigger of the sink in case the product has never been seen before.
But then my calculated table showing the results from the global table is not updating at all. It just keeps displaying the columns in the first state of the simulation, not the columns that were added during it. The "always" or "interval" updates do not work for this purpose.
Is there a way to update the calculated table with the column added in the global table during the simulation ?
I created a dummy example attached below:
EDIT:
I tried the solution from @Roi Sánchez but I do not know what i'm doing wrong. Could somebody help me ? I attached the updated model below.
Moreover how can we also update the dashboard linked with the calculated table to always take new columns into account ?
test-dynamic-calculated-table-v2.fsm
Best regards,