To create an applicationSwitcher:
If the pageLayout node is not visible, expand page | content | dataScope | document | body | form. The globalButtons node is under pageLayout Named Children in pageLayout.
The globalButtonBar node is inserted under the expanded globalButtons node.
The applicationSwitcher node is inserted under the expanded globalButtonBar node.
The new option node is inserted and highlighted in the Structure Window. The Property Inspector displays the properties of the new component.
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.
The Property Inspector displays the properties of the application switcher component.
Notes:
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.