OpenWGA 7.0 - TMLScript reference

Method :

newCreateContentParams(contentClass, refContent)

On object HDBModel
Usage Creates a HDBModelParams object for creating a HDBModel content document

The created parameter object is to be used with method HDBModel.createContent(). Use it if you want to pass specific parameters to the creation operation.

If you do not want to add more information to the creation operation than content class and reference content, then you may as well use the convenience variants of HDBModel.createContent() directly, which do not need a HDBModelParams object.


contentClass (String):

Content class of the content to create

refContent (WGAPI object WGContent):

The reference document for the create operation. May be some immediate parent content or storage of the content to create (with no other contents in-between). May be null if the content to create has no parent content.

Writable False
Return value A HDBModelParams object containing the given information
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events