Oracle® Fusion Middleware Desktop Integration Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.5.0) E10139-04 |
|
![]() Previous |
![]() Next |
This chapter describes how to use the development tools provided by ADF Desktop Integration. It provides an overview of the development environment that Oracle ADF exposes within Excel and goes on to describe how you display and use the different elements of this environment.
This chapter includes the following sections:
ADF Desktop Integration provides several tools that you use to configure Excel workbooks so that they can access Oracle ADF functionality. The tools are available in the Oracle ADF tab and in the ADF Desktop Integration Designer task pane.
Before you start using the development tools, you must know that there are two modes in which you can work while you configure the Excel workbook that you integrate with a Fusion web application. The first mode is the design mode, and the second mode is the test mode.
In design mode, you use the tools provided by Oracle ADF in Excel to design and configure your integrated Excel workbook. In test mode, you can view and test the changes you make in design mode in the same way that the end user views the published integrated Excel workbook.
The Oracle ADF tab, also shown in Figure 5-1, provides various buttons in design mode.
You can use Oracle ADF tab buttons to invoke the actions described in Table 5-1.
Table 5-1 Oracle ADF Tab Options
In this group... | Click this button... | To... | Mode when the button is available... |
---|---|---|---|
Workbook |
![]() |
Display the Edit Workbook Properties dialog to view and edit integrated Excel workbook properties. The button is also used to enable ADF Desktop Integration in a non-integrated Excel workbook. |
Design |
Workbook |
![]() |
Display the Edit Worksheet Properties dialog to view and edit the current worksheet properties. |
Design |
Workbook |
![]() |
Open the About Oracle ADF 11g Desktop Integration dialog that provides version and property information of integrated Excel workbook. The button is also available in non-integrated Excel workbooks after ADF Desktop Integration is installed. |
Design, Test, Runtime |
ADF Components |
![]() |
Display a dropdown list of Oracle ADF components that you can insert in the selected cell. |
Design |
ADF Components |
![]() |
Display the property inspector window to view and edit component properties of the selected component. |
Design |
ADF Components |
![]() |
Delete the selected component from the Excel worksheet. |
Design |
ADF Components |
![]() |
Any modifications that you made to the page definition files in the JDeveloper project now become available in the Excel workbook. For more information, see Section 4.3.3, "Reloading a Page Definition File in an Excel Workbook." |
Design |
Test |
![]() |
Switch the Excel workbook from design mode to test mode. This button is active only when you are in design mode. |
Design |
Test |
![]() |
Switch the Excel workbook from test mode to design mode. This button is active only when you are in test mode. For more information about switching between design mode and test mode, see Section 13.3, "Testing Your Integrated Excel Workbook." |
Test |
Logging |
![]() |
Display a dialog to review the client-side log entries. For more information, see Section C.3.2, "About Client-Side Logging." |
Design, Test |
Logging |
![]() |
Reload the ADF Desktop Integration configuration file. For more information, see Section C.3.2, "About Client-Side Logging." |
Design, Test |
Logging |
![]() |
Display the Set Output Level dialog to choose client-side log output level. For more information, see Section C.3.2, "About Client-Side Logging." |
Design, Test |
Logging |
![]() |
Create a new temporary logging listener to act as a client-side log output file. For more information, see Section C.3.2, "About Client-Side Logging." |
Design, Test |
Publish |
![]() |
Publish the Excel workbook after you complete the integration between the Excel workbook and the Fusion web application. For more information about publishing an integrated Excel workbook, see Chapter 14, " Deploying Your Integrated Excel Workbook." |
Design |
Tip: For quick and easy access, you can add Oracle ADF tab buttons to the Excel Quick Access toolbar. |
Figure 5-2 displays the ADF Desktop Integration Designer task pane.
You can invoke the ADF Desktop Integration Designer task pane through launcher buttons available in the bottom-right corner of the Workbook and ADF Components group on the Oracle ADF tab, as illustrated in Figure 5-3.
Table 5-2 lists the view tabs and links that appear in the task pane, provides a brief description of each item.
Table 5-2 Overview of ADF Desktop Integration Designer Task Pane
The bindings palette presents the available Oracle ADF bindings that you can insert into the Excel worksheet. The page definition file for the current Excel worksheet determines what Oracle ADF bindings appear in the bindings palette. Figure 5-4 shows a bindings palette populated with Oracle ADF bindings in the ADF Desktop Integration Designer task pane. Note that the bindings palette does not display bindings that an integrated Excel workbook cannot use, so the bindings that appear may differ from those that appear in the page definition file viewed in JDeveloper.
You use the bindings palette in design mode to insert a binding. When you attempt to insert a binding, ADF Desktop Integration inserts an Oracle ADF component that references the binding you selected. ADF Desktop Integration also prepopulates the properties of the Oracle ADF component with appropriate values. For example, if you insert a binding, such as the Commit (action) binding illustrated in Figure 5-4, the property inspector for an Oracle ADF Button component appears. This Oracle ADF Button component has values specified for its ClickActionSet
that include invoking the Commit
action binding.
To insert an Oracle ADF binding, select the cell to anchor the Oracle ADF component that is going to reference the binding in the Excel worksheet, and then insert the binding in one of the following ways:
Double-click the Oracle ADF control binding you want to insert.
Select the control binding and click Insert Binding in the ADF Desktop Integration Designer task pane.
A property inspector for the Oracle ADF component that is associated with the binding you attempt to insert appears. In some instances, you may be prompted to select one Oracle ADF component from a list of Oracle ADF components where multiple Oracle ADF components can be associated with the binding. After you select an Oracle ADF component from the list, a property inspector appears.
The components palette displays the available ADF Desktop Integration components that you can insert into an Excel worksheet. Figure 5-5 shows the components palette as it appears in the ADF Desktop Integration Designer task pane.
You use the components palette in design mode to insert an Oracle ADF component. First, select the cell to anchor the Oracle ADF component in the Excel worksheet, and then insert the Oracle ADF component in one of the following ways:
Double-click the Oracle ADF component you want to insert.
Select the component and click Insert Component in the ADF Desktop Integration Designer task pane.
In both cases, the Oracle ADF component's property inspector appears. Use the property inspector to specify values for the component before you complete its insertion into the Excel worksheet.
Note: The ADF Desktop Integration components are also available in the Insert Component dropdown list of Oracle ADF tab. |
The property inspector is a dialog that enables you to view and edit the properties of Oracle ADF bindings, Oracle ADF components, Excel worksheets, or the Excel workbook. You can open the property inspector in one of the following ways:
Select the component or binding, and click the Edit Properties icon in the Oracle ADF tab.
Select the component or binding, right-click and choose Edit ADF Component Properties from the context menu.
Note that the ADF Button does not support the right-click action, click the button to open the property inspector dialog.
The property inspector also appears automatically after you insert an Oracle ADF binding or component into an Excel worksheet. Figure 5-6 shows a property inspector where you can view and edit the properties of an Oracle ADF Button component.
At design time, you can edit key properties of certain Oracle ADF components by editing the Excel cell where the component appears. For example, you can edit the Value property of ADF Label and ADF Input Text components by editing the value displayed in the cell.
Note: The property inspector does not validate that values you enter for a property or combinations of properties are valid. Invalid values may cause runtime errors. To avoid runtime errors, make sure you specify valid values for properties in the property inspector. |
You can display the properties in an alphabetical list or in a list where the properties are grouped by categories such as Behavior, Data, and so on. Table 5-3 describes the buttons that you can use to change how properties display in the property inspector.
Table 5-3 Buttons to Configure Properties Display in Property Inspector
Button | Description |
---|---|
![]() |
Use this button to display the properties according to category. |
![]() |
Use this button to display the properties in an alphabetical list. |
In Figure 5-6, the property inspector displays the properties grouped by category.
The binding ID picker is a dialog that enables you to select Oracle ADF bindings at design time to configure the behavior of Oracle ADF components at runtime. You invoke the binding ID picker from the property inspector. The binding ID picker filters the Oracle ADF bindings that appear, based on the type of binding that the Oracle ADF component property accepts. For example, the SuccessActionID
property for an ADF Button component supports only action bindings. Therefore, the binding ID picker filters the bindings from the page definition file so that only action bindings appear, as illustrated in Figure 5-7.
For more information about ADF Desktop Integration component properties and the bindings they support, see Appendix A, "ADF Desktop Integration Component Properties and Actions."
You use the expression builder to write Expression Language, or EL, expressions that configure the behavior of components at runtime in the Excel workbook. You invoke the expression builder from the property inspector of component properties that support EL expressions. For example, the Label
property in Figure 5-8 supports EL expressions and, as a result, you can invoke the expression builder to set a value for this property.
You can reference bindings in the EL expressions that you write. Note that the expression builder does not filter bindings. It displays all bindings that the page definition file exposes. See Table 4-1 to identify the types of bindings that each ADF Desktop Integration component supports.
To add an expression in the Expression box, select the item and click Insert Into Expression. You can also double-click the item to add it in the Expression box. Table 5-4 describes the folders available in the expression builder.
Table 5-4 Expression Builder Folders
Folder Name | Description |
---|---|
Bindings |
Lists the bindings supported in ADF Desktop Integration from the current worksheet's page definition. |
Components |
Lists the ADF components available in the current worksheet. |
Resources |
Lists the resource bundles registered in |
Styles |
Lists all Excel styles defined in the current workbook. For more information, see Section 9.2, "Working with Styles.". |
Workbook |
Lists parameters defined in |
Worksheet |
Lists the |
Excel Functions |
Lists sample Excel functions that you can use with ADF Desktop Integration. For more information, see Excel's documentation. |
For more information about using the expression builder, see Section 9.3, "Applying Styles Dynamically Using EL Expressions." For information about the syntax of EL expressions in ADF Desktop Integration, and guidelines on how you write these expressions, see Appendix B, "ADF Desktop Integration EL Expressions."
Use the web page picker to select a web page from your Fusion web application. At runtime, an Oracle ADF component, for example an Oracle ADF Button component, can invoke the web page that you associate with the Oracle ADF component.
You can invoke the web page picker when you add a Dialog
action to an action set in the Action Collector Editor. You use the web page picker to specify a web page for the Page
property of the Dialog
action, as illustrated in Figure 5-9.
For more information about displaying web pages in your integrated Excel workbook, see Section 8.4, "Displaying Web Pages from a Fusion Web Application."
Use the file system folder picker to navigate over the Windows file system and select folders. You use this picker to specify values for the following workbook properties:
The first time you open an Excel workbook the picker appears so that you can set values for the previously listed properties. For more information about opening an Excel workbook for the first time and the properties you set, see Section 4.4.3, "How to Configure a New Integrated Excel Workbook."
Figure 5-10 shows the file system folder picker selecting a value for the ApplicationHomeFolder
workbook property.
Use the page definition picker to select the page definition ID of a page definition file and associate the file with a worksheet. The picker appears the first time that you activate a worksheet in an integrated Excel workbook. It can also be invoked when you attempt to set a value for the worksheet property, PageDefinition
, as illustrated in Figure 5-11.
For more information about page definition files, see Section 4.3, "Working with Page Definition Files for an Integrated Excel Workbook."
ADF Desktop Integration uses collection editors to manage the properties of elements in a collection. The title that appears in a collection editor's title bar describes what the collection editor enables you to configure. Examples of titles for collection editors include CacheDataContext Collection Editor, TableColumn Collection Editor, and the Action Collection Editor. These collection editors allow you to configure collections of cached data, table columns in the ADF Table component, and actions in an action set. Figure 5-12 shows the collection editor that configures an action set for the Search button that appears at runtime in the Master Price List module's EditPriceList-DT.xlsx
workbook.
Tip: Write a description in the Annotation field for each element that you add to the Action Collection Editor. The description you write appears in the Members list view and, depending on the description you write, may be more meaningful than the default entry that ADF Desktop Integration generates. |