Methods for the oraclecrmod Object
This topic describes the methods for the top-level object, oraclecrmod. The following information lists the methods associated with events.
Method Name | Return Type | Description | Sample Code |
---|---|---|---|
onReady(customFunction) |
oraclecrmod |
Registers a custom function that is executed by the framework when the DOM tree is constructed. This method is the entry point for running custom code. |
|
onLoad(custom Function) |
oraclecrmod |
Calls a custom JavaScript function when the onload event is triggered for the document body. This method is similar to onReady(), but it is rarely used because the onReady() method is preferred. |
|
onUnload(customFunction) |
oraclecrmod |
Calls a custom JavaScript function when the onunload event is triggered for the document body. |
|
The following table lists the methods that are associated with UI components. The getTitleBar() and getButton() methods use the ID of the title bar or button as a parameter. For information about how to find these IDs, see Identifying the IDs of Buttons and TitleBars.
Method Name | Return Type | Description | Sample Code and Notes |
---|---|---|---|
getTitleBar(Id) |
TitleBar |
Returns a TitleBar instance referenced by the Id parameter. You can use this TitleBar instance to add another button to the TitleBar. |
|
getButton(Id) |
Button |
Returns a Button instance referenced by the Id parameter. This method can retrieve both preconfigured buttons and custom buttons. |
|
createButton (config) |
Button |
Creates a custom button. You can call this shortcut method to create a button, instead of using code like the following: new oraclecrmod.componen t.Button(config); The config parameter has the following properties:
|
Null is returned if a call to createButton() fails. This return value might result, for example, from trying to create a button that has a duplicate ID. For more information about tooltip formatting, see Considerations for Specifying Tooltips with HTML Formatting. |
registerButtonToolTip (tooltipInfoList) |
Registers tooltips for a set of buttons in one call. The input object is an array of button names and the associated tooltip text and tooltip format for each button. For more information about tooltip formatting, see Considerations for Specifying Tooltips with HTML Formatting. |
|
|
getList(listname) |
List |
Gets a List object on a List or Detail page, on which a custom display handler can be registered or unregistered. The List object is the starting point for getting Row objects from the list, and Field objects from rows. For more information, see Methods for the List Object. |
If there are no lists with the listname value on the screen, null is returned In full list pages there is only one list, so the listname parameter can be omitted. For information about finding list names, see Finding List Names. |
getForm() |
Form |
Gets a Form object on an Edit or Detail page, on which a custom display handler can be registered or unregistered. For more information, see Methods for the Form Object. |
If there is no Form object on the screen, then null is returned. If getForm() is used, for example, on a homepage or list page, null is returned. |