Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks

SFU​.includeCustomJsFiles()

  • Last UpdatedAug 06, 2024
  • 1 minute read

Use includeCustomJsFiles() method to include custom JS files in the form.

In the AVEVA Work Tasks Pro app, the API loads the content asynchronously.

Syntax

SFU.includeCustomJsFiles(filesArray);

Parameters

Parameter

Description

filesArray

Path array of custom JS Files to include in the form.

Return Value

None

Example

// In Form On Load event, include your JS file as a part of the rendering form.

var files=["custom/js/MyCustomFile.js"];

OR

var files=["custom/js/myCustomFile1.js", "custom/js/myCustomFile2.js"];

SFU.includeCustomJsFiles(files);

Note:
- Update the js files in the path: ../<BPMUITemplates>/Default/NextGenForms/custom/js
- The js file must be tagged with FormCustomPath or FormCustomThemePath. For example, var jsFiles=["FormCustomThemePath:myCustomFile.js"]; and must be placed in ../<BPMUITemplates>/Default/NextGenForms/custom/js.
- For support in the AVEVA Work Tasks Pro app, update the js files in the path ../<BPMUITemplates>/Default/NextGenForms/custom/js.
- For AVEVA Work Tasks Pro app, mapping of themes is not considered.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in