UploadRecipeFiles

function UploadRecipeFiles(ctx: TcHmi.SelectableRequired<TcHmi.Context<void>, 'success' | 'error'): void

The UploadRecipeFiles function allows you to upload previously downloaded recipes and recipe types. This function opens a file selection dialog, allowing you to select the files to be uploaded. This function must be triggered by a direct user interaction, e.g. clicking on a button, in order to be successful.

Parameters

Name

Type

Description

ctx

TcHmi.SelectableRequired<TcHmi.Context>

Context object

Does not need to be specified by the user when used in a trigger or function expression. In this case the transfer and the evaluation is done by the corresponding parser.

Is used by the caller to indicate success or failure to the framework during execution.

If the function is used directly in JavaScript/TypeScript, the context object must be passed in the call and evaluated if necessary.

Return value

Type

Description

void

No return value

NuGet package: Beckhoff.TwinCAT.HMI.Functions

UploadRecipeFiles 1:

Available since version 1.12.758