Skip to main content

Event data

The plug-in events have access to this.data referencing the plug-in data for the interactive grid, file, and plug-in methods.

Properties of this.data are listed in the table below:

PropertyDescription
this.data.elementjQuery reference to the triggering element.
this.data.fileAn object describing a downloaded file. See the property description in the table below.

Available only for File Download - file is ready and File Download - file downloaded events.
this.data.fnAn object containing references to the plug-in methods. See the property description in the table below.

Available only for File Download - file is ready and File Download - file downloaded events.
this.data.gridThe interactiveGridView interface returned from the getViews interactiveGrid widget method.
this.data.recordThe result of the grids widget method getContextRecord.
this.data.recordIdRecord id returned by the model interface using the getRecordId method.
this.data.regionThe region interface returned from the execution of apex.region.

Properties of this.data.file are listed in the table below.

PropertyDescription
this.data.file.contentFetched file contents (base64 clob). Result of apex_web_service.blob2clobbase64.
this.data.file.idBLOB file id.
this.data.file.nameFetched file name with extension.
this.data.file.sizeFetched file size in bytes.
this.data.file.typeFetched file mime type.

Properties of this.data.fn are listed in the table below.

PropertyDescriptionReturnsArguments
this.data.fn.downloadFunction initializing the transfer of the file to the end-user’s browser using an AJAX request. When the file is transferred (AJAX call ends) the callback function is executed. The callback function is executed with changed context (this) to an object similar to this.data variable. Additionally, you can reference a file’s contents using this.data.file.content.PromiseCallback Function
this.data.fn.downloadandsaveFunction initializing the transfer of the file to the end-user’s browser using an AJAX request. When the file is transferred (AJAX call ends) it automatically downloads the file.PromiseNone
this.data.fn.newtabFunction opening the file contents in a new browser tab.PromiseNone
this.data.fn.previewFunction opening an image or file preview in an inline popup.PromiseNone
this.data.fn.savefileFunction initializing the download of the file in the end-user’s browser. If the file is not yet available the plug-in raises an error.An object describing the downloaded file (name, size, type, and content)None