OpenWGA 7.7 - TMLScript reference

Design
Method :

loadObjectDefinition([moduleName])

On object Design
Usage Loads the definition of a custom TMLScript object from the design
Description The object created is a precompiled definition object (in fact a JavaScript function) which can be used with createObject() to create real instances of the defined object.

While it is theoretically possible to directly use the definition object with the "new" operator of JavaScript we do not recommend it as specific TMLScript functionalities - like the TMLScript constructor function - will not work that way.

For backward compatibility there still is a global function "loadObjectDefinition()" available whose use is discouraged since OpenWGA 5.3.

Parameters modulename (String, optional):
Variant 1: Name of the TMLScript module containing the object code. Omit to use the Design objects current base reference as name.
Return value Object definition (Function)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events