Skip Headers
Oracle® Fusion Middleware Desktop Integration Developer's Guide for Oracle Application Development Framework
11g Release 1 (11.1.1.5.0)

Part Number E10139-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

2 Introduction to the ADF Desktop Integration Sample Application

This chapter provides an overview of the Master Price List module, which is the ADF Desktop Integration module's sample application. The Master Price List module is a module in the Fusion Order Demo application. It contains several Microsoft Excel workbooks that are integrated with a Fusion web application.

This chapter includes the following sections:

2.1 Introduction to the Master Price List Module

The Master Price List module allows end users to download information (product names, prices, and so on) about electronic devices that are sold through a storefront-type web application. End users can search the downloaded information, modify pricing information, and upload the modified information to the Fusion web application.

You must set up your development environment before you can set up and run the Master Price List module. After you set up your development environment, you can download the Fusion Order Demo application, which includes the Master Price List module.

2.2 Setting Up and Executing the Master Price List Module

Set up your development environment as described in Chapter 3, "Setting Up Your Development Environment", so that you can run the Master Price List module.

Once you have set up your development environment, download the Fusion Order Demo application, which includes the Master Price List module. For information about how to download the Fusion Order Demo application, see the "How to Download the Application Resources" section in the Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.

The Fusion Order Demo application that you download includes a directory named Infrastructure. This directory includes scripts that create the users and data that the Fusion Order Demo application and Master Price List module require. For information about how to run these scripts, see the "How to Install the Fusion Order Demo Schema" section in the Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.

Note:

If you have an old version of ADF Desktop Integration installed on your system, you must do the following:
  1. Upgrade ADF Desktop Integration as described in Section 3.7, "Upgrading ADF Desktop Integration."

  2. Refresh your Fusion Order Demo schema as described in "How to Install the Fusion Order Demo Schema" section in the Oracle Fusion Middleware Fusion Developer's Guide for Oracle Application Development Framework.

To run the Master Price List module:

  1. Open the MasterPriceList.jws file in JDeveloper.

    This file is located in the MasterPriceList subdirectory of the directory into which you extracted the Fusion Order Demo application.

  2. In the Application Navigator, click the Application Resources accordion title to expand the panel.

  3. Right-click FOD connection and choose Properties.

  4. In the Edit Database Connection dialog, modify the connection information shown in Table 2-1 for your environment.

    Table 2-1 Database Connection Properties for the Master Price List Module

    Property Description

    Host Name

    The host name for your database. For example:

    localhost

    JDBC Port

    The port for your database. For example:

    1521

    SID

    The SID of your database. For example:

    ORCL or XE


    Do not modify the user name and password fod/fusion. These must remain unchanged. Click OK.

  5. In the Application Navigator, right-click Model and choose Rebuild Model.jpr.

  6. In the Application Navigator, right-click ViewController and choose Rebuild ViewController.jpr.

  7. In the Application Navigator, expand the ViewController project, right-click login.jspx and choose Run.

    The login.jspx page runs and displays a login form.

  8. To log on as an administrator, enter sking in the User Name field and welcome1 in the Password field. To log on as a manager, enter ahunold in the User Name field and welcome1 in the Password field. For more information about users, see Section 2.4.1, "Log on to the Fusion Web Application from an Integrated Excel Workbook."

    You can now open and connect the integrated Excel workbooks described in Section 2.4, "Overview of the Integrated Excel Workbooks in the Master Price List Module" to the Fusion web application that the Master Price List module deploys.

2.3 Overview of the Fusion Web Application in the Master Price List Module

The Fusion web application in the Master Price List module enables end users to edit and navigate through a list of products, search for a product, download integrated Excel workbooks, sort and reorder columns, and so on.

2.3.1 Log on to the Fusion Web Application in the Master Price List Module

When the end user runs the Master Price List Fusion web application in JDeveloper, the default browser opens the login page after the Master Price List module is deployed on Oracle WebLogic Server.

Figure 2-1 Login Dialog of Master Price List Fusion Web Application

Fusion Web Application login page

The Master Price List module provides two user profiles to log on to the Fusion web application. Table 2-2 summarizes both user profiles.

Table 2-2 User Profiles for the Master Price List Module

Login Name Password Role Description

sking

welcome1

Administrator

Enables you to access and modify information.

ahunold

welcome1

Manager

Enables you to access information, but you cannot modify it.


After the login credentials are verified, the end user is redirected to the home page of the Master Price List Fusion web application.

2.3.2 Introduction to the Fusion Web Application in the Master Price List Module

The Master Price List Fusion web application is divided into four panes: Product Search, Matching Products, Product Detail, and Active Discounts.

Figure 2-2 Web Interface of Master Price List Fusion Web Application

The web interface of MPL web application.

The Product Search pane has tabs for searching a product in the application repository. The Product Search pane is an accordion pane and the end user can hide it, if desired. For more information about search functionality, see Section 2.3.4, "Searching a Product."

The Matching Products pane displays products in a tabular format, according to the search criteria set in the Product Search pane. By default, all products are displayed. The end user can use the Matching Products pane's toolbar to do various activities such as download integrated Excel workbooks, sort columns in ascending or descending order, hide a column, and so on. For more information about the toolbar, see Section 2.3.3, "Using the Matching Products Toolbar."

The Product Detail pane displays detailed information about the product selected in the Matching Products pane. The information includes the attributes available in the table, and additional information about the product's supplier, product's current availability status, a graphical representation of the product's sale in each month, and so on.

The Active Discounts pane is an independent pane. It displays the available discounts on products with their discount codes and discount percentages.

2.3.3 Using the Matching Products Toolbar

End users can use the toolbar in the Matching Products pane to do the following:

  • Save changes

  • Download integrated Excel workbooks

  • Show or hide columns

  • Sort columns

  • Detach Products table from Matching Products pane

  • Freeze or unfreeze a column

  • Reorder columns

  • Wrap or unwrap a column's values

2.3.3.1 How to Download Integrated Excel Workbooks

The Master Price List module provides various integrated Excel workbooks to meet different requirements. End users can download the integrated Excel workbooks from the Excel menu of the toolbar.

Figure 2-3 Excel Menu of Matching Products Toolbar

Excel menu of Master Price List module.

Table 2-3 provides the description for each menu option.

Table 2-3 Download Excel Menu Options

Menu Option Description

Export as Read-only Spreadsheet

Exports all Product table data into a spreadsheet. The spreadsheet is not an integrated Excel workbook.

The exported file is saved as read_only_pricelist.xls.

Edit Using Live Spreadsheet

Downloads the integrated Excel workbook that enables you to edit and update common data.

The downloaded file is saved as EditPriceList.xlsx.

Edit Using Advanced Live Spreadsheet

Downloads the integrated workbook that enables you to edit and update all data.

The downloaded file is saved as AdvEditPriceList.xlsx.

View and Query Using Live Spreadsheet

Downloads the integrated workbook that enables you to view all products and, if desired, search for a product. This integrated Excel workbook does not allow you to edit and update data.

The downloaded file is saved as ReadOnlyPriceList.xlsx.


2.3.3.2 How to Sort, Hide and Reorder Columns

The Master Price List module provides various operations on the Products table columns of the Matching Products pane. Using options available in the View menu, the end user can sort a column, show or hide a column, and reorder columns based on their requirements.

To show or hide columns:

  1. In the Matching Products pane, from the toolbar, choose View > Columns.

  2. In the Columns submenu, choose a column name to show or hide it in the Matching Products table. To show all columns, click Show All.

To sort a column:

  1. In the Matching Products pane, select the table column to be sorted.

  2. From the toolbar, choose View > Sort.

  3. In the Sort submenu, choose Ascending to sort the values of the selected column in ascending order. Choose Descending to sort the values of the selected column in descending order.

    Tip:

    To sort a column in ascending or descending order, you can also click the Up or Down triangle in the column name header.
  4. To sort multiple columsn by the same values at once, choose Advanced. In the Advanced Sort dialog, select the desired columns.

To reorder columns:

  1. From the View menu, click Reorder to open the Reorder Columns dialog.

  2. In the dialog, click the respective column name to select it, and then use the navigation buttons to reorder it.

    Tip:

    To order multiple columns, select their corresponding checkboxes, and then use navigation buttons. All selected columns move as a group.

2.3.3.3 Other Toolbar Operations

The Matching Products toolbar has buttons to save your changes, to detach the Matching Products table from the Matching Products pane, to freeze or unfreeze columns, and to wrap or unwrap a column's values.

  • To save changes, click Save.

  • To detach the Matching Products table from Matching Products pane, click Detach.

  • To freeze a column, click the column header to select the column, and then click Freeze. Click Freeze again to unfreeze the column.

  • To wrap a column's values, click the column header to select the column, and then click Wrap. Click Wrap again to unwrap the column values.

Note:

The Master Price List Fusion web application allows edits in the following:
  • Site Price column (Matching Products pane)

  • Supplier dropdown list (Product Detail pane)

  • Current Product Status option button (Product Detail pane)

2.3.4 Searching a Product

The Master Price List module provides a basic search and an advanced search facility to search for a product item. You can use the Product Search accordion panel to find an item.

By default, the Product Search accordion panel shows the Basic Search tab where you can enter a search term to invoke a query on the Fusion web application and view the results.

Figure 2-4 Basic Search Tab in the Master Price List Fusion Web Application

The figure shows basic search tab of MPL web application.

The Advanced Search tab enables you to find products by category, and if required, search among discontinued products by selecting the Include Discontinued Products checkbox.

Figure 2-5 Advanced Search Tab in the Master Price List Fusion Web Application

The figure shows advanced search tab of MPL web application.

2.4 Overview of the Integrated Excel Workbooks in the Master Price List Module

The Master Price List module provides the EditPriceList.xlsx, AdvEditPriceList.xlsx, and ReadOnlyPriceList.xlsx integrated Excel workbooks. All workbooks enable end users to:

In addition, the EditPriceList.xlsx and AdvEditPriceList.xlsx workbooks permit end users to:

Subsequent sections in this chapter provide more information about the functionality in the workbooks along with cross-references to implementation details.

2.4.1 Log on to the Fusion Web Application from an Integrated Excel Workbook

At runtime, the integrated Excel workbooks in the Master Price List module render an Excel ribbon tab that allows end users to log on to the Fusion web application. Figure 2-6 shows the runtime Fusion Order Demo tab in the Ribbon of the EditPriceList.xlsx workbook.

Figure 2-6 Runtime Fusion Order Demo Tab

FOD tab at runtime in EditPriceList-DT.xlsx

The EditPriceList.xlsx workbook prompts the end user to log on to the Fusion web application when the end user clicks Login or invokes an action that requires a connection with the Fusion web application. Because the worksheet Startup event in the EditPriceList.xlsx workbook invokes the ADF Table component Download action, end users are prompted to log on immediately after starting up the EditPriceList.xlsx workbook.

The Login button invokes the workbook Login action. For information about configuring the Login button (and other buttons in Figure 2-6), see Section 8.3, "Configuring the Runtime Ribbon Tab."

The workbook Login action invokes the Fusion web application's authentication process. For more information about implementing this functionality, see Chapter 11, "Securing Your Integrated Excel Workbook."

The Master Price List module provides two user profiles to log in to the application, as summarized in Table 2-2.

2.4.2 Download Rows of Data About Product Pricing

The EditPriceList.xlsx workbook uses an ADF Table component to host information downloaded from the Fusion web application about product pricing. This component allows end users to edit rows and upload modified rows to the Fusion web application.

The following sections provide information about how to implement the download functionality:

The ReadOnlyPriceList.xlsx workbook uses an ADF Read-only Table component to download data from the Fusion web application about product pricing. End users can view this data, but they cannot modify data or save changes to the Fusion web application.

The following sections provide information about how to implement the download functionality of the ReadOnlyPriceList.xlsx workbook:

2.4.3 Simple Search for Products in the Workbooks

The integrated Excel workbooks have ADF components configured to provide end users with a search form. End users can enter a search term in the form to invoke a query on the Fusion web application and download the results to the workbook. Figure 2-7 shows a runtime view of these components in the EditPriceList.xlsx workbook.

Figure 2-7 Runtime View of a Simple Search Form in the EditPriceList.xlsx Workbook

Runtime View of a Simple Search Form

The following sections provide information about how to implement a simple search form that you can use in the EditPriceList.xlsx workbook:

2.4.4 Advanced Search for Products in the Edit Price List Workbook

The EditPriceList.xlsx and AdvEditPriceList.xlsx workbooks have search functionality configured that allow end users to invoke a page from the Fusion web application, specify search criteria, and download the results to the ADF Table component in the workbooks. Figure 2-8 shows the page from the Fusion web application that end users invoke by clicking the Advanced Search button.

Figure 2-8 Advanced Search Dialog in the EditPriceList.xlsx Workbook

Advanced Search Dialog

For more information about how to implement the advanced search functionality in the EditPriceList.xlsx workbook, see Section 8.6, "Creating ADF Databound Search Forms in an Integrated Excel Workbook."

2.4.5 Modify Product Pricing Information in the Edit Price List Workbook

End users of the EditPriceList.xlsx and AdvEditPriceList.xlsx workbooks can edit product pricing information that the ADF Table component downloads from the Fusion web application. Columns in the runtime ADF Table component that have an UpdateComponent property configured permit end users to modify values and upload the changes to the Fusion web application. For example, end users can modify the values that appear in the ProductId, ProductName, and CostPrice columns.

End users can enter or modify the values that appear in the cells of other columns. However, the ADF Table component does not upload these changes to the Fusion web application, because some of these columns display the results of evaluating Excel formulas using values downloaded from the Fusion web application. Such columns should use a read-only style to distinguish themselves from other columns. For example, the Difference column displays the result of an Excel formula that subtracts the cost price from the list price and uses a read-only style, which makes it easily distinguishable from other input columns.

Other columns, such as Status and Changed, appear in the ADF Table component to provide status information about upload operations and changed columns.

The following sections provide information about how to implement this functionality:

2.4.6 Upload Modified Product Information to the Fusion Web Application

The EditPriceList.xlsx and AdvEditPriceList.xlsx workbooks allow end users to upload modified data in the ADF Table component to the Fusion web application. An action set is configured for the runtime Save Changes button that invokes the ADF Table component's Upload action. For information about implementing this functionality, see Section 7.8, "Configuring an Oracle ADF Component to Upload Changes from an ADF Table Component."

Tip:

You can also use the Upload to Server button in the Fusion Order Demo tab to upload modified data.