Oracle CRM On Demand JavaScript API Developer's Guide


What's New in This Release


Back to top


Overview of the JavaScript API

Overview of Customizing Buttons

Creating Custom Buttons

Examples of Uses for Custom Buttons

Hiding and Disabling Buttons

Changing the Look and Feel of a Button

Changing the Behavior of Buttons

Error Handling

Contexts in Which You Can Customize Buttons


Back to top


Getting Started with the JavaScript API

Overview of Using Custom JavaScript Code

Privileges Required

Uploading JavaScript Libraries

Guidelines for Uploading Client-Side Extensions

Managing HTML Head Additions

Guidelines for Managing HTML Head Additions

Security Considerations


Back to top


JavaScript API Reference

Classes Exposed

TitleBar Class

Button Class

Context Class

JavaScript API

Chaining of Methods

Methods for the oraclecrmod Object

Methods for the TitleBar Object

Methods for the Button Object

Defining an Event Handler for a Button

Identifying the IDs of Buttons and TitleBars

Methods for Getting and Setting Screen Values

Finding Field Names

Guidelines for Setting Screen Values

Methods for the Context Object

Methods for CRUD Operations

Parameters and Return Values for CRUD Methods

Finding Record Type Names

Guidelines for Performing CRUD Operations

User-Defined Callback Function

Helper Functions for Callback Functions

Sample Code for Callback Function

Errors and Error Handling


Back to top


JavaScript API Code Samples

Code Sample for Creating a Custom Button for Validation

Code Sample for a Custom Button That Creates a Record

Code Sample for a Custom Button That Updates a Record

Code Sample for a Custom Button That Gets a Shipping Address to Pass to an External Site

Code Sample for Changing the Behavior of a Save Button

Back to top

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