setPortletSessionAttr()

Binds the given value to the PortletSession attribute that is specified by the given key within the specified session scope.

Syntax

portalLib.setPortletSessionAttr(
  key STRING in,
  value Any in,
  scope SessionScopeKind)
key
A string value that contains the key where the PortletSession attribute should be bound.
value
A value of type Any that will be stored under the given key in the specified PortletSession scope.
scope
A value of the SessionScopeKind enumeration that indicates the PortletSession scope where the attribute must be stored.

Example

myRec EmployeeRecord;
portalLib.setPortletSessionAttr("rec", myRec, SessionScopeKind.portletScope);

Feedback