OpenWGA 7.9 - TMLScript reference

WGA
Method :

hdb(dbkey)

On object WGA
Usage Returns a WGAPI HDB object for an application
Description

The HDB database object is a tool to use a OpenWGA content store as a simple hierarchical database for data storage.

This method is to retrieve the HDB database object for a content store that is addressed by database key. To retrieve the HDB object for a database in WebTML context you can use the method this.hdb() instead.

For backward compatibility there still is a method "hdb()" with dbkey parameter available on TMLContext whose use is discouraged since OpenWGA 5.3.

Parameters dbkey (String):
DBKey of the application whose database is to be used as HDB
Return value A HDB database object to manage hierarchical data in the given database (HDB API object WGAPI HDB object)
Allowed in script types
  • WebTML pages and normal WebTML actions
  • Master actions
  • TMLScript tasks in jobs
  • Content type events