OpenWGA 7.4 - TMLScript reference

TMLPortlet "portlet"
Property :

portletPath

On object TMLPortlet "portlet"
Usage Returns the absolute name path of this portlet
Description

This path, unique for every portlet on a WebTML page, consists of the name of the current portlet plus all names of portlets up the parent axis, divided by slashes. The root portlet is represented as a beginning slash on the path. So, for example, the path of a portlet "menu" below a parent portlet "main", which itself is directly created below the root portlet would be:

/main/menu

You can use the path of a portlet with method TMLContext.portletByPath() to resolve the portlet under that path.

Writable False
Return value The portlet path (String)
Allowed in script types
  • WebTML pages and normal WebTML actions