Button Class

The Button class represents buttons in the Oracle CRM On Demand UI. Each Button instance must have a unique ID. Preconfigured buttons are assigned a unique ID by the Oracle CRM On Demand framework, and you must specify a unique ID for custom buttons that you create with JavaScript code. If no ID is supplied when creating a custom button, then an internal unique ID is assigned to the Button instance.

A TitleBar instance is not required to create a Button object. However, a button must be displayed inside a title bar, so the TitleBar instance is required when trying to display the button.

For most Edit pages, Oracle CRM On Demand has a title bar at the top of the form and also at the bottom of the form and the same named button, say New, appears on both the top and bottom title bars. However, the buttons are not linked and are treated as different buttons. So, for example, if you want to hide the New button, then you must hide the two buttons in each title bar explicitly.

See the second table in Methods for the oraclecrmod Object and the table in Methods for the TitleBar Object for information about the API methods used to get Button IDs and create buttons, and the table in Methods for the Button Object for information about the API methods that operate on Button instances.