Creating a Client Data Model Definition for JClient Forms

JClient applications require a client data model definition to connect to ADF Business Components view objects. You use the ADF Business Components Client Data Model Definition wizard to add one or more client data model definitions to the client project configuration ( DataBinding.cpx) file.

Note: JDeveloper updates several application libraries based on the most recently saved data model definition. If you create or edit a data model definition, but want to run your project with a different data model definition, then you must open the desired data model definition in the ADF Business Components Client Data Model Definition wizard as described below and save it; this action will result in the generation of the appropriate classes.

To create a Business Components project:

  1. Create a project for your Business Components.

    In order to define a client data model, you must first create a project with a Business Components application module.

  2. Compile the Business Components project.

To create a client data model definition on a new JClient project:

  1. Create a project for your JClient application.

  2. Choose File | New to locate the Swing/JClient for ADF category in the New Gallery.

    Note: You must launch the ADF Business Components Client Data Model Definition wizard within the JClient form and panel wizards.

  3. In the Categories list, expand Client Tier and select Swing/JClient for ADF .

  4. In the Items list, select the Form or Panel wizard.

  5. In the wizard, define the data model and click Finish to save the changes.

    For detailed help about completing the wizard, press F1 or click Help within the wizard.

  6. You can delete the generated form or panel if you do not want to use it in your project. The change to the DataBinding.cpx file will remain.

To edit a client data model definition in an existing JClient project:

  1. In the Navigator, expand the JClient project for which you want to edit a data model definition.

  2. Double-click the client project configuration (DataBinding.cpx ) file to open the file.

  3. Choose View | Structure to display the Structure window for the file.

  4. In the Structure window, select the data control node you want to modify.

  5. Optionally, right-click the data control node and choose Delete.

  6. Choose View | Property Inspector to display the data control definition and edit its attributes.


About the Client Project Configuration File
Changing Client Data Model References for JClient Forms

 

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