I have a button with a CLICK event with a "Run Typescript". This script takes a few seconds to complete while it reads and processes data.
The data is pushed into a varialble (logData). I then have a datatable with rows set to this variable and [hidden] logData.length==null.
After the button is clicked the datatable is unhidden and it shows in table footer that the right number of rows has been read, but the data table is emptly.
I'm guessing the table is not updating after the typescript is run. I tried adding a CLICK update datatable to the button, but this did not help. Probably as this does not wait on the typescript.
What should I do to fix this?