System API

System API provides a set of methods to discover the underlying client environment and current EPCM object. For background information, see System and Environment .

EPCM.getVersion()

Returns the current framework version as a number.

EPCM.getLevel()

Returns the current EPCF level as a number.

The EPCF level defines which EPCF services are available. Make sure that your portal application only uses services that are available at the current EPCF level.

EPCM.getUAType()

Returns the client (user agent) type as a number.

The return value is equal to one of the predefined EPCM constants:

EPCM.MSIE, EPCM.NETSCAPE, EPCM.MOZILLA, EPCM.OPERA, EPCM.NOKIA, EPCM_UP, EPCM_ERICSSON, EPCM_MSPIE, EPCM_PALM, EPCM.OTHER.

EPCM. getUAVersion()

Returns the version of the client as a number.

EPCM.getUAPlatform()

Returns the platform on which the client is running as a number.

The return value can be compared to the predefined EPCM constants:

EPCM.NT_PLATFORM, EPCM.WIN_PLATFORM, EPCM.MAC_PLATFORM, EPCM.LINUX_PLATFORM, EPCM.WAP_PLATFORM, EPCM.PDA_PLATFORM, EPCM.OTHER_PLATFORM.

EPCM.getInstanceId()

Returns a unique EPCM instance ID as a string.

When a page is refreshed, the previous instance of the EPCM object is discarded and a new instance is created. To check whether the EPCM instance has changed, compare the value returned by this method with a previously stored value.

EPCM.getUniqueWindowId()

Returns an unique identifier of the IFrame as a string.

You can use this method to append the returned IFrame identifier string to the name you use to define a client data bag. This creates a client data bag that can only be accessed by a specific IFrame.

EPCM.getSAPTop ()

Returns the reference to the topmost frame that belongs to the SAP EP.