OCLOperators Download
(Created page with "Triggers a download of arbitrary byte array to a client under a file name and file type. The method is available within the context of ViewModel. ==== OCL Expression ==== <syntaxhighlight> selfVM.Download(<file name>, <file data>) </syntaxhighlight>'''Arguments''' <code>file name:</code> '''String''' Name to be assigned to the download file including the file extension. For example, for open document text document. add '''<nowiki/>'.odt'''' in the file name. <code>f...")
 
No edit summary
Line 10: Line 10:
Name to be assigned to the download file including the file extension. For example, for open document text document. add '''<nowiki/>'.odt'''' in the file name.
Name to be assigned to the download file including the file extension. For example, for open document text document. add '''<nowiki/>'.odt'''' in the file name.


<code>file data:</code> '''byte[] | Blob'''
<code>file data:</code> '''Blob | byte[]'''


Byte array of the file content to be downloaded.
Byte array of the file content to be downloaded.

Revision as of 00:52, 11 September 2024

Triggers a download of arbitrary byte array to a client under a file name and file type. The method is available within the context of 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 open document text document. add '.odt' in the file name.

file data: Blob | byte[]

Byte array of the file content to be downloaded.

Return Type

Byte[]

This page was edited 1 days ago on 09/19/2024. What links here