Opening the Attachments Dialog
The attachments dialog can also be opened in its usual form, allowing the user to upload, download, edit and delete attachments using the familiar web client user interface.
To open the attachments dialog, call
View.openScenarioAttachmentsDialog() or
View.openAppAttachmentsDialog(). An optional message can be provided as the first argument, which will be displayed at the bottom of the attachments dialog. This message can be used to prompt or instruct the user about what they are expected to achieve using the dialog. With
openScenarioAttachmentsDialog, you can also specify the scenario whose attachments should be displayed by passing the scenario's id or index (within the current selection) as an optional second argument.
var view = insight.getView(); view.openScenarioAttachmentsDialog('Delete any input files which are no longer needed');