A space is a named portion of a composite portal. Spaces, for composite portals, are similar to the "workspaces" in traditional ('fixed') User portals from V5.4 and earlier.
Define spaces on the Space tab of the Portal rule form. One space on a composite portal must be named Work. One space must be identified as the default space.
When a composite portal is in use, a user clipboard page named pyPortal
contains the current portal rule.
Within a custom JavaScript, you can call the API function pega.desktop.getCurrentSpaceName() to retrieve the name of the currently displayed space. (This value does not appear on the clipboard.)