OpenWGA 7.10 - TMLScript reference

HDBModel
Method :

getID(document)

On object HDBModel
Usage Returns the HDBModel document id of the given document
Description

This would be the storage id of a given storage or the content id (!= content key, struct key) of a given content.

This id is used in the unique name of this document and all its childs document to identify it (see Using the HDBModel unique name and name parts). For contents it can be set to a custom value using HDBModel.assignContentID().

Parameters

document (WGAPI object WGContent):

The document to get the ID from

Writable False
Return value The document id (String)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events