|
|
File Visualizer |
This helper visualizes various types of files by converting them into HTML.
|
Applicable To |
Controlled
File, Hyperlink |
|
Menu
Entry |
Power
Pack Reporting Tools Open in File Visualizer |
|
Demonstration |
In Rhapsody 10 you may also use the toolbar button (after first selecting the model element).
The helper first obtains the path to the file (either the controlled file or a file that the hyperlink targets) and then uses the file extension to convert it into HTML.
Supported file types and extensions:
· CSV (.csv)
· Microsoft Excel (.xlxs)
· JSON (.json)
· XML (see below)
The list of file extensions the helper considers as XML is dictated by the following property:
RhapsodyPowerPack.FileVisualizer.XMLFileExtensions
The file is converted into HTML (the file is generated into the user temp directory) and then is automatically opened either inside Rhapsody, outside or both as dictated by the following property:
RhapsodyPowerPack.ReportingToolsOpenInBrowser
CSV and Microsoft Excel* files are converted into a simple table. The table may be sorted by clicking the header rows:

*Only the first sheet in the Excel file is converted.
JSON and XML files are presented as expandable trees, clicking a node will display its details:
