Creating a GlobalButton Using GlobalButtons

To create a globalButton:

  1. In the Design Structure Window of the desired file, expand the pageLayout or pageHeaderLayout node to locate the globalButtons named child node.

    The globalButtons node is under pageLayout Named Children in pageLayout. or pageHeaderLayout Named Children in pageHeaderLayout .

  2. In the Component Palette, select Navigation Components from the dropdown list, and then drag and drop the globalButtonBar component from the list to the globalButtons node.

    The globalButtonBar node is inserted under the expanded globalButtons node.

  3. In the Design Structure Window, right-click the globalButtonBar node and choose Insert inside globalButtonBar | globalButton .

    The new globalButton node is inserted and highlighted in the Structure Window. The Property Inspector displays the properties of the new component.

  4. In the Property Inspector, set the following attributes for the new global button:
  5. Repeat steps 3 and 4 to add additional global buttons.

    Global buttons are displayed in sequence horizontally. More than seven global buttons is undesirable because the information may be obscured from view without additional scrolling.

Tip: To enable a globalButton to work like a submitButton, set the onClick attribute to submitForm('formname', 0);return true; where formname is the name of the form to submit to the server.

Note: To use data binding, see Data Binding a Component Attribute.

Example (UIX XML)


...
<pageLayout>
  
  <!-- Navigation -->
  
  <globalButtons>
    <globalButtonBar>
      <contents>
        <globalButton text="View source" icon="images/globalhelp.gif" ctrl:event="viewSource"/>
        <globalButton text="Help" icon="images/globalhelp.gif" destination="http://www.oracle.com"/>
      </contents>
    </globalButtonBar>
  </globalButtons>
  
  <!-- REST OF PAGE LAYOUT-->
  
</pageLayout>
...    

About GlobalButton
About ApplicationSwitcher
About PageHeaderLayout and its Named Children

Creating an ApplicationSwitcher
Working with Navigation Components
Working with Layout Components

 

Copyright © 1997, 2004, Oracle. All rights reserved.