Widgets FileViewer - thica/ORCA-Remote GitHub Wiki

FILEVIEWER

The fileviewer widget enables you show the content of of a text file. This widget shares the same attributes as the the textfield widget. Instead of the caption you have to set the filename of the file to show. Even if the user can edit the the file on screen, changes are not saved to the file. You need to call the updatewidget action to read and show the file The following attributes are additional attributes to common widget attributes

The following attributes are additional attributes to common widget attributes and text attributes

Attribute Description
type fixed: needs to be "FILEVIEWER". Capital letters!
filename This defines the filename to show.

Below you see an example for a fileviewer widget

<element name="Shows a definition files" type="FILEVIEWER"  filename="$var(DEFINITIONPATH)/definition.xml" htextalign="left" vtextalign="top" backgroundcolor='#FFFFFFFF' />
⚠️ **GitHub.com Fallback** ⚠️