Inserting Business Service Method Results Using the Data Control Palette

You can use the Data Control Palette to display the result of a method invocation. The method is defined by the business service through the Oracle ADF data controls. The Data Control Palette lets you display the method result using a range of visual elements that depend on the method's return type and whether or not the method returns a collection (or bean) which contains attributes.

The Data Control Palette relies on the presence of metadata specified by the collection's attributes to filter the list of visual elements. When no attributes are present, the Data Control Palette displays Show Result or Read-Only Dynamic Table for the method that returns a scalar value or collection.

Note: The Data Control Palette may appear empty when you first open it. Complete the prerequisite steps to populate the palette with business services from your model project.

To insert a method result into a web page to display a dynamic value:

  1. Create the ADF-enabled web page or ADF-enabled Swing panel and open it in the Visual Editor.

  2. Choose View | Data Control Palette to open the palette.

  3. Expand the Data Control Palette hierarchy.

    The Data Control Palette displays two types of method returns inside the Operations folder of the data control:

  4. To display the result of a method invocation, expand the Operations folder at the root level, locate the method return node, and select the desired visual element from the dropdown list.

    Note, Show Result will appear in the dropdown list, when the method invocation returns a scalar value:

    Data Control Palette shows scalar method

    Note, Read-Only Dynamic Table will appear in the dropdown list when the method invocation returns of a collection with no attributes defined:

    Data Control Palette shows collection method

  5. Add the dynamic display component into your web page by dragging the selection from the top portion of the Data Control Palette into the open web page in the Visual Editor.

  6. If the method that your action executes takes parameters, supply the parameter values.

    An iterator binding definition is created in the binding definitions file for the displayed web page.


For details about the hierarchy displayed by the Data Control Palette:

You can set properties of the iterator binding and action binding at design time:

 

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