OpenWGA 7.11 - TMLScript reference

Method :

getScriptModuleNames(codeType, descend)

On object Design
Usage Returns the names of all script modules of the given code type whose design name starts with the baseReference of this design object
Description Use this method to query for script modules that are on the folder (or subfolders if parameter descend is true) addressed by the current baseReference.

codeType (String):

The code type of the script modules to retrieve: "tmlscript", "js", "css" or "xml"

descend (Boolean):

Specify true to also add resources on subfolders. When false only resources on the exact folder of the base reference are returned.

Return value List of design names (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events

Assuming that this code is run from a TMLScript module it will return the script modules that are stored in the same design folder as the current one:"..").getScriptModuleNames("tmlscript", false)