getPortletSessionAttr()

Returns the PortletSession attribute value that is bound with the specified key in the specified session scope. This function returns null if the attribute is not found within the specified scope.

Syntax

portalLib.getPortletSessionAttr(
  key STRING in,
  scope SessionScopeKind)
returns (value Any)
key
A string value that indicates the key where the PortletSession attribute is stored.
scope
A value of the enumeration SessionScopeKind that indicates the PortletSession scope where the attribute is stored.
value
A return value of type Any that contains the value of the requested PortletSession attribute.

Example

returnValue Any;
returnValue = getPortletSessionAttr("myAttr", 
   SessionScopeKind.applicationScope);

Feedback