OpenWGA 7.7 - TMLScript reference


Object:

HDBModelParams

Description

This is a parameter object for HDBModel create/update/delete operations.

These operations may take a variety of parameters, from which however many are seldomly used. This parameter object is able to take any of these parameters in any combination valid for the operation.

Use the object together with the full variants of methods HDBModel.createContent(), HDBModel.deleteContent() and HDBModel.updateContent().

Retrieval

HDBModel.newCreateContentParams()

HDBModel.newDeleteContentParams()

HDBModel.newUpdateContentParams()

Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events
Properties and methods
Name Purpose
contentClass The content class for contents to create
createContentID Defines a content id for the content to create
customParam Sets a custom parameter for the operation
form Sets a WebTML form to be processed in the operation
process A custom process to run on create or update
refDocument The reference document of the operation
refDocumentKey The content key of the reference document
setUpdateModuleProcess(db, moduleName) Sets the param process to execute the code of a TMLScript module
type Returns the type of operation for which this params object was created