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...")
 
(Added Edited template with July 12, 2025.)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
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.
{{Edited|July|12|2025}}
Triggers  a download of arbitrary byte array to a client under a file name and file type. This method is available within the context a of ViewModel.


==== OCL Expression ====
==== OCL Expression ====
<syntaxhighlight>
<syntaxhighlight>
selfVM.Download(<file name>, <file data>)
selfVM.Download(<file name>, <file data>)
</syntaxhighlight>'''Arguments'''
</syntaxhighlight>


==== '''Arguments''' ====
<code>file name:</code> '''String'''
<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.
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.
Line 16: Line 18:
'''Return Type'''
'''Return Type'''


<code>Byte[]</code>
<code>Blob</code>

Latest revision as of 06:31, 20 January 2025

This page was created by Charles on 2024-09-11. Last edited by Edgar on 2025-01-20.

Triggers a download of arbitrary byte array to a client under a file name and file type. This method is available within the context a 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

Blob

MDriven Chat

How would you like to chat today?

Setting up your conversation…

This may take a few moments