Creating a New Row in a JClient Table or Tree Control

If your business services supports create operations on the data collection, you can use the operation in a JClient panel to display a new row in your databound table or tree control. The new row will appear when the user clicks a Create button that has been bound to a create-and-insert action binding. Because the operation creates and inserts the row in a single step, this operation is ideal for in-place editing of the component by the user.

Note: Although the Data Control Palette displays this operation as Create, the action binding editor will be set to CreateInsert. This behavior will differ in the case of web applications.

To create a JClient bound control that uses a create operation to insert a row:

  1. Open the data panel in the Java Visual Editor.

  2. Open the Data Control Palette and select the collection node that contains the attributes you want your UI component to display. This is the collection to which the control will add the row. In the dropdown list, select the desired UI component to display the new row.

    Note: The data collection you select must not be a detail collection, represented in the data control hierarchy as a child of another collection node. This will ensure that the iterator binding does not perform navigation.

  3. Insert the UI component into the open JClient panel.

    Tip: Optionally, your panel can display navigation buttons to the allow the user to browse the collection.

  4. To insert the operation to create the row, select Create in the operations folder for the previously selected collection and select Button from the dropdown list.

  5. Insert the button into the open JClient panel.

    Note: Starting in JDeveloper 10.1.2, when you drag Create from the Data Control Palette, the button's action binding is set to CreateInsert. This behavior will differ in the case of web applications.


About Supported Data Collection Operations in Oracle ADF
About the Oracle ADF Bindings

Limiting Row Fetches Using an ADF Iterator Binding

 

 

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