Custom actions

API

Examples

Redirecting to an edit view

workflow ActionRunTest; function main(s as selection) as navigation { var result as navigation; foreach k in ui->getKeys(s) { var runKey = test->run(k); result.openEditViewKey = runKey; result.openEditView = "wfTestRunEditor"; } return result; }

Showing a message

workflow ActionRunTest; function main(s as selection) as navigation { var result as navigation; result.message = "Hello world..."; return result; }

Downloading a file

workflow ActionRunTest; function main(s as selection) as navigation { var result as navigation; result.storageFileKey = 100; result.storageFileDownload = true; //Download return result; }

Displaying a file

Types

type navigation {
    var openEditView as string;
    var openEditViewKey as int;
    var storageFileKey as int;
    var storageFileDownload as boolean;
    var message as string;
}