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

Methods for the TitleBar Object


Table 3 describes the methods that are available for the TitleBar object. The getButton() method is useful for the rare cases where preconfigured button IDs are not unique.

Table 3. Methods for the TitleBar Object
Method Name
Return Type
Description
Sample Code

getButton (buttonId)

Button

Gets a Button instance with a given button ID within a TitleBar instance.

In most cases, this method works in the same way as the oraclecrmod.getButton() method, and sometimes the oraclecrmod.getButton() method is simpler because you do not have to get a reference to the TitleBar. The only difference is that if there are two buttons that share the same ID, then the oraclecrmod.getButton() method cannot return both buttons. In this case, you can get the TitleBar instance first, then get the Button instance within that TitleBar. Buttons should not have the same ID.

var tb = oraclecrmod.getTitleBar("TitleBarID");

var btn = tb.getButton ("ButtonID");

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