Is there anything that can resemble a log file that you just write to and can be displayed in a modal?
This should be possible. It’s just a matter if continuously refreshing and writing data from/to a datasource. You can set sources to refresh every x seconds.
Where is your textfile stored and what have you tried so far?
Ah sorry my bad. There is no text file. In my app it runs a few queries then processes etc. This can take up to 15 seconds, so I want a display that says what it's doing. I was also looking at a progress bar, but want the text to display what it's found and what it's doing.
I only mentioned a log file as an example, as if I was tailing a log file, watching events coming in.
I can write to a textbox, but can't seem to append it.
As an example I'm simply trying
var textbox = ''
<snip - do stuff>
textbox = update_textbox.value
update_textbox.setValue(textbox + '\nDoing more stuff...')
But the second
setValue just seems to overwrite the first line.
If I run it again, the
clearValue() also doesn't seem to work. It's probably my bad Javascipt.
OK I've got it to work. I just need to keep appending a variable that I then update the textbox with.
You can write the data to a temporary state or store it on local storage and update that one by appending data. Then let the textbox read from that state. It should automatically update once the state’s data changes.