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

Creating Tooltips for Buttons

Changing the Look and Feel of a Button

Changing the Behavior of Buttons

Error Handling

Contexts in Which You Can Customize Buttons

Color Coding of Fields and Rows

Color Coding of Fields in Detail and Edit Pages

Color Coding of Fields and Rows in Lists

Restrictions That Apply to Color Coding of Fields


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

About Enabling and Disabling Customized Code in Oracle CRM On Demand

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

Considerations for Specifying Tooltips with HTML Formatting

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 the Field Object

Finding Field Names

Getting and Setting Screen Values

Guidelines for Setting Screen Values

Getting and Setting LIC Values of Picklists

Color Values for JSONObjects

Methods for the Form Object

Example of a Custom Handler for a Form Object

Callback Handler for the commitValues() Method

Methods for the List Object

About the Custom Handler for a List Object

Finding List Names

Methods for the ListRow Object

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

Method for Setting the Search Specification for the Solutions Popup Window Associated with Service Requests

Errors and Error Handling


Back to top


JavaScript API Code Samples

Getting Started with the Code Samples

Code Sample 1 for Creating a Custom Button for Validation

Code Sample 2 for Creating a Custom Button for Validation

Code Sample for a Custom Button That Creates a Record

Code Sample for a Custom Button That Creates a Child 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 a Custom Button That Creates a Task

Code Sample for Hiding a Button

Code Sample for Changing the Behavior of a Save Button

Code Sample for a Read Operation on an Account Record

Code Sample for Color Coding of Fields and Rows

Back to top

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