What Happens at Runtime When a Cell Displays a Hyperlink using EL Expression

Adding Interactivity to Your Integrated Excel Workbook 8-37

8.9.1 How to Configure a Cell to Display a Hyperlink Using EL Expression

You write an EL expression that uses the Excel T function to evaluate the output of the Excel HYERLINK function. The following task illustrates how you configure an ADF Output Text component to display a hyperlink that, when clicked, invokes a search operation on the Oracle OTN Discussion Forum for Developer Tools using the value of the ProductName binding as the search term. To configure a cell to display a hyperlink using EL expression: 1. Open the integrated Excel workbook. 2. Insert an ADF Output Text component into the Excel worksheet. 3. Write an EL expression for the Value property of the ADF Output Text component. The EL expression that you write invokes the Excel HYPERLINK function and uses the Excel T function to evaluate the output. In our example, we entered the following EL expression for the Value property: =T=HYPERLINKhttp:forums.oracle.comforumssearch.jspa?objID=c19q={bind ings.ProductName}, {bindings.ProductName}

4. Click OK.

8.9.2 What Happens at Runtime When a Cell Displays a Hyperlink using EL Expression

ADF Desktop Integration evaluates the EL expression that you write at runtime. In the following example, ADF Desktop Integration: ■ Retrieves the value of the ProductName binding ■ Inserts the value of the ProductName binding into a URL ■ Inserts the result into a hyerlinked cell that a user can click to invoke a search Figure 8–30 shows the runtime view of the example configured in Section 8.9.1, How to Configure a Cell to Display a Hyperlink Using EL Expression, where Zune 30GB is the retrieved value of the ProductName binding. When the end user clicks the cell that hosts the ADF Output Text component, he or she invokes a search operation for Zune 30GB on the Oracle OTN Discussion Forum for Developer Tools. Note: Excel requires that you write double quotes for example, {bindings.ProductName} in the EL expression so that it can evaluate the expression correctly. 8-38 Desktop Integration Developers Guide for Oracle Application Development Framework Figure 8–30 ADF Output Text Component Configured to Display a Hyperlink

8.10 Using Calculated Cells in an Integrated Excel Workbook

You can write Excel formulas that perform calculations on values in an integrated Excel workbook. Before you write an Excel formula that calculates values in an integrated Excel workbook, note the following points: ■ Formulas can be entered in cells that reference Oracle ADF bindings and cells that do not reference Oracle ADF bindings ■ End users of an integrated Excel workbook can enter formulas at runtime ■ You developer of the integrated Excel workbook can enter formulas at design time ■ During invocation, the ADF Table component actions Upload and RowUpSync send the results of a formula calculation to the Fusion web application and not the formula itself ■ Excel recalculates formulas in cells that reference Oracle ADF bindings when these cells are modified by: – Invocation of the ADF Table component RowDownSync and Download actions – Rendering of Oracle ADF components ■ The ADF Table and ADF Read-only Table components insert or remove rows as they expand or contract to accommodate data downloaded from the Fusion web application. Formulas are replicated according to Excel’s own rules. ■ You can enter formulas above or below a cell that references an ADF Table or ADF Read-only Table component. A formula that you enter below one of these components maintains its position relative to the component as the component expands or contracts to accommodate the number of rows displayed. For more information about Excel functions, see the Function reference section in Excel’s online help documentation.