Creating an ApplicationSwitcher

To create an applicationSwitcher:

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

    If the pageLayout node is not visible, expand page | content | dataScope | document | body | form. The globalButtons node is under pageLayout Named Children in pageLayout.

  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 Component Palette, drag and drop the applicationSwitcher component from the Navigation Components list to the globalButtonBar node in the Design Structure Window.

    The applicationSwitcher node is inserted under the expanded globalButtonBar node.

  4. In the Design Structure Window, right-click the new applicationSwitcher node and choose Insert inside applicationSwitcher | option.

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

  5. In the Property Inspector, set the following attributes for the option:
  6. Repeat steps 4 and 5 add additional options for the switcher.

    The options display vertically in a dropdown list when the page is viewed in a browser. The first option is numbered 0; the second option is numbered 1, and so on.

  7. In the Design Structure Window, select the applicationSwitcher node.

    The Property Inspector displays the properties of the application switcher component.

  8. In the Property Inspector, set the following attributes for the application switcher:

Notes:

Example (UIX XML)


Example:

<?xml version="1.0" encoding="windows-1252"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
      xmlns:ui="http://xmlns.oracle.com/uix/ui"
      xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
      xmlns:html="http://www.w3.org/TR/REC-html40"
      bindingLanguage="el">
  <content>
    <dataScope xmlns="http://xmlns.oracle.com/uix/ui">
      <provider>
        <!-- Add data sources here -->
        <data name="demo:appIs">
          <method class="oracle.cabo.doc.demo.ApplicationSwitcherData" method="getData"/>
        </data>
      </provider>
      <contents>
        <!-- Start page content here --> 
        <document>
          <metaContainer>
            <!-- Set the page title -->
            <head title=""/> 
          </metaContainer>
          <contents>
            <body>
              <contents>
                <form name="form0">
                  <contents> 
                    <pageLayout title=""> 
                      <contents>
                        <!-- Define the main content of the page here --> 
                      </contents>
                      <!-- Define the navigation elements here -->
                      <!-- Application Switcher -->
                      <globalButtons>
                        <globalButtonBar>
                          <contents>
                            <applicationSwitcher title="Select here"
                                                 name="mySwitcher"
                                                 selectedIndex="2"
                                                 formSubmitted="true">
                              <contents>
                                <option text="iReceivables" value="iReceivables"/>
                                <option text="Human Resources" value="HumanResources"/>
                                <option text="Finance" value="Finance"/>
                                <option text="iLearning" value="iLearning"/>
                              </contents>
                            </applicationSwitcher>
                          </contents>
                        </globalButtonBar>
                      </globalButtons> 

  <!-- REST OF PAGE LAYOUT--> 

                    </pageLayout> 
                  </contents>
                </form>
              </contents>
            </body>
          </contents>
        </document>
      </contents>
    </dataScope>
  </content>
  <handlers>
    <!-- Add event handlers here -->
    <event name="switchApp">
      <method class="oracle.cabo.doc.demo.ApplicationSwitcherData" method="appSwitchEventHandler"/>
    </event>
  </handlers>
</page>    

About ApplicationSwitcher
About GlobalButton

Creating a GlobalButton
Working with Navigation Components

 

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