Using the JClient JUArrayComboBox Control

The JUArrayComboBox control can be bound to an attribute of a business service data collection that has been mapped as type Oracle.jbo.domain.array. Because the array combobox displays its list of values from a single attribute, it works with the ADF attribute binding, which accesses the data stored in the database through an attribute of a data collection. Currently, without design-time support in JDeveloper for editing Object arrays, the elements of the array attribute are limited to Scalar values, such as numbers, strings, or date.

Note: While the JUArrayComboBox does not currently provide design-time support for using object arrays, you can create an extension in JDeveloper that implements the JClient interface.

Users can use the array combobox to view the existing attribute values; they can also add, update, and delete displayed values.

To bind to a array attribute of type scalar:

  1. In the JClient project, open the Java Visual Editor on the desired data panel or form.

  2. From the View menu choose Data Control Palette to open the palette.

  3. In the top portion of the palette, select the attribute you want to bind to the image control.

  4. From the Drop As list select JUArrayComboBox.

  5. From the top portion of the palette, drag the selected attribute into the desired position in the open form or panel. JDeveloper adds code to the class file to bind the JUArrayComboBox to the attribute:

    myJUArrayComboBox1.setDocument((Document)panelBinding.bindUIControl("MyAttribute", myJuArrayComboBox1"));

Using the array combobox at runtime:

To insert a value to the array attribute:

To update an existing value of the array attribute:

To remove an existing value from the array attribute:


About JClient-Specific Controls
Customizing an ADF Array ComboBox Binding

 

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