OpenWGA 7.0 - TMLScript reference

PortletEvent
Method :

addParameter(name, value)

On object PortletEvent
Usage Adds a parameter to the event
Description

Portlet parameters are used to provide some custom data that can be processed by event receivers. They consist of some custom name and a value.

Up until OpenWGA 6.1 parameter values were strings only. Non-string values are converted to strings automatically.

On designs with design compliance 6.2 or higher parameter values may also be numbers, dates or booleans. They are provided to clientside Javascript catching the event the following way:

  • Numbers and booleans also as native JavaScript numbers and booleans
  • Dates as ISO8601 date strings
Parameters name (String):
Parameter name

value (Object):
Parameter value
Allowed in script types
  • WebTML pages and normal WebTML actions