OpenWGA 7.10 - TMLScript reference

PortletEvent
Property :

sourceName

On object PortletEvent
Usage Returns the name of the portlet that threw the event
Description The name of the source portlet can not always used to uniquely identify the portlet that threw the event. Portlet names are only valid and unique per parent portlet. There for example may be multiple portlets registered under name "display" if they have different parent portlets.

To uniquely identify the portlet that threw the event use method portlet.getSourcePortlet() with the portlet event as parameter.
Writable False
Return value Name of the throwing portlet (String)
Allowed in script types
  • WebTML pages and normal WebTML actions