🚀 Welcome to MDriven Learn –  Don’t miss the latest Release Notes.
OCLOperators Download

Triggers a download of an arbitrary byte array to a client under a file name and file type. This method is available within the context of a ViewModel.

OCL Expression

selfVM.Download(<file name>, <file data>)

Arguments

file name: String

Name to be assigned to the download file, including the file extension. For example, for an open document text document, add '.odt' to the file name.

file data: Blob | byte[]

Byte array of the file content to be downloaded.

Return Type

Blob