OpenWGA 7.9 - TMLScript reference

TMLContext "this"
Property :

portlet

On object TMLContext "this"
Usage Returns a portlet object for the current WebTML portlet
Description The portlet object provides portlet specific functionalities, including access to the portlet configuration and registration.

Outside of any explicit WebTML portlet this property returns the implicit root portlet, which is used as base for portlet registration.

As the portlet registry is a part of the users personalisation profile it is not available if the user has no profile. In that case the property this.portlet returns null.
Writable False
Return value A portlet object
Allowed in script types
  • WebTML pages and normal WebTML actions