OpenWGA 7.7 - TMLScript reference

Design
Method :

getScriptModule(codeType)

On object Design
Usage Returns a WGAPI script module object for a module at this designs base reference
Description

This retrieves a script module of the name that is stored in the design contexts base reference and the given code type.

Use this together with Design.resolve() to retrieve script modules in a way that takes relative WebTML addressions and overlay adressation into account.

Parameters

codeType (String):

The scipts code type: "tmlscript", "js", "css" or "xml"

Return value WGAPI script module object or null if none was found
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events