Read and Display Text From File in DashBoard

This is probably a silly question, but is there a way for DashBoard to read/import a file and display just the text contents? Perhaps through OGscript?

The files I have are production flow scripts in the DOCX format (but they can be converted to other formats if needed).

#DashBoard​

Hi Nick
This is simple to do with plain text files with ogscript.asyncPost and providing the file URL (or just the filename if it is in the same folder as the CustomPanel):

ogscript.asyncPost('text.txt', null, function(result) { params.setValue('MultiLine_Text', 0, result); }); ​

Thank you very much James! That worked.

I have an additional question. If I wanted to change the text color based on the text displayed, how would I go about that? I’m specifically trying to “highlight” a certain recurring sentence in the text document.

If you just want to display, you may want to switch from the multi-line text to the rich text display or just a label with HTML-based content. This will give you the ability to use HTML tags to set the size, color, and weight for your fonts.

Here is a modified/quick example:

ogscript.asyncPost('text.txt', null, function(result) { params.setValue('MultiLine_Text', 0, '
' + result + '
'); }); ​