OpenWGA 7.11 - TMLScript reference

Method :

setUpdateModuleProcess(db, moduleName)

On object HDBModelParams
Usage Sets the param process to execute the code of a TMLScript module

This fills the property hdbModelParams.process with a process that executes the code of a TMLScript module on the operation. The code is executed with the content to create/update in context and may do custom modifications, which automatically get saved.

Valid for operations:

  • create (optional)
  • update (optional)

db (WGAPI object WGDatabase):

The application containing the module

moduleName (String):

Name of the TMLScript module.

Writable False
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events