OpenWGA 7.7 - TMLScript reference
DesignMethod :
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. |
Parameters |
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 | A List of design names (String) |
Allowed in script types |
|
Examples |
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: WGA.design().resolve("..").getScriptModuleNames("tmlscript", false) |