getRecipeTypeEx

[ Function ]

public static getRecipeTypeEx (
    recipeTypeName: string,
    path: string | null,
    options?: TcHmi.Server.RecipeManagement.IRecipeOptions | null,
    requestOptions: TcHmi.Server.IRequestOptions | null = null,
    callback: null | ((this: void, data: TcHmi.Server.RecipeManagement.IRecipeTypeGetResultObject) => void) = null
): TcHmi.IErrorDetails;

Provides the definition of a recipe type.

Parameter

Name

Type

Description

recipeTypeName

string

Name of the recipe type. The name may include the full path. In this case, '::' must be used as the separator for folders.

path

string

Path of the destination folder. If this is not specified, the recipe type is created in the main folder.

options

TcHmi.Server.RecipeManagement.IRecipeOptions, null

Recipe management options

requestOptions

TcHmi.Server.IRequestOptions, null

Server request options

callback [ optional ]

(data: TcHmi.Server.RecipeManagement.IRecipeTypeGetResultObject) => void, null

Asynchronous callback function that is triggered once the action is completed.

Return value

Type

Description

TcHmi.IErrorDetails

Returns confirmation as to whether the operation was successfully sent.

getRecipeTypeEx 1:

Available from version 1.12

Sample - JavaScript

TcHmi.Server.RecipeManagement.getRecipeTypeEx (
    'recipeType10',
    'testRecipeCategory',
    null,
    null,
    function (data) {
        if (data.error === TcHmi.Errors.NONE) {
            // Success
        } else {
            // Error
        }
    }
);