Oracle CRM On Demand JavaScript API Developer's Guide > JavaScript API Reference > Classes Exposed >

Context Class


The Context class (oraclecrmod.ctx) represents a global object. The ctx object has attributes including those for the current object (record type), page type, and logged-in user that allow you to determine the context in which you run your code. For information about the attributes, see Methods for the Context Object, in particular, Table 10.

Not all attributes are available on all pages. For example, the object attribute is not available on My Homepage, and Layout attributes are not available on association Lookup windows.

Some helper functions are available as alternatives to using attributes directly. For information about the helper methods, see Table 9.

Oracle CRM On Demand JavaScript API Developer's Guide, Release 38 Copyright © 2019, Oracle and/or its affiliates. All rights reserved. Legal Notices.