Show TOC

Other Client-Side APIsLocate this document in the navigation structure

Use
addToWorkspace Event

By raising this Enterprise Portal Client Framework (EPCF) event, you can enable the user to add portal content items, such as iViews, pages or Web Page Composer snippets, directly to workspace pages. The event opens the Add to Workspace window, in which the user can choose a workspace and a page to which to add the item.

You can raise this event either from a custom implementation of the portal iView tray, or from an individual content item that runs in the portal.

Parameters

  • objectID: the ID of the object to add to a workspace

  • contentProviderID: the ID of the content provider

Sample Code EPCM.raiseEvent(urn:com.sap.workspaces, "addToWorkspace", {contentProviderID: "PortalContentProvider", objectID: "pcd:portal_content/someiViewId"})
addLink Event

By raising this EPCF event, you can let the user add a link to a link list module in a workspace.. The event opens the Add to Workspace window, in which the user can choose a workspace, a page, and a link list module to which to add the link.

You can raise this event from an implementation of a portal content item that contains links.

Parameters

  • linkTitle: the title of the link to add to a link list

  • linkURL: the URL of the link to add to a link list

Sample Code EPCM.raiseEvent(urn:com.sap.workspaces, "addLink", {linkTitle: "google", linkURL: "http://www.google.com"})