rbf_getPageContext()

Purpose

This function returns a PageContext object for the current page. The PageContext object encapsulates all state and behavior of a page.. See PageContext for more information about the PageContext object and its interface.

Note: This API and the PageContext object are only available in the New UI.

Syntax

rbf_getPageContext()

Parameters

None

Note: This API is not supported in portals.

Return value

The PageContext object for the current page.

Example

The following example sets a variable to the ID of the current page:

var pageId = rbf_getPageContext().getPageId();