Generating Data Classes Based on a Form

Use the AIS Client Class Generator to generate data classes for an EnterpriseOne form. In the AIS Client Class Generator, you supply the service request information.

Note: The AIS Client Class Generator supports form interconnects only; it does not support form events.

To use the AIS Client Class Generator to generate data classes for a form service request:

  1. In JDeveloper, select the ApplicationController project. For ADF application development, select the Model project in your ADF application workspace.

    JDeveloper will save the classes generated by the AIS Client Class Generator in this location.

  2. Select the Tools menu and then select AIS Client Class Generator.

  3. Click the Form Service radio button. (Available in AIS Client Class Generator v1.6.2.)

  4. On AIS Client Class Generator, complete the following fields to supply the service request information:

    • Username. This contains the default value entered in the preferences.

    • Password. This contains the default value entered in the preferences.

    • Environment. This contains the default value entered in the preferences.

    • Role. This contains the default value entered in the preferences.

    • Application Name. Enter the name of the EnterpriseOne application.

    • Form Name. Enter the name of the EnterpriseOne application form.

    • Version. (Optional) Enter the version name. If you leave it blank, the generator will use ZJDE0001 by default.

    • MaxPageSize. (Optional)

    • ReturnControlIDs. (Optional) Use this field to specify the exact fields on the form that you want generated. The return control IDs can specify hidden fields or a subset of fields.

    • FormInputs. (Optional)

    • FormServiceAction. Enter the action to be performed. Valid values include: Create, Read, Update, Delete.

    • FindOnEntry. (Optional)

    • DemoMode. (Optional, but recommended) This ensures at least one grid row is present, so grid classes are generated even if there is no data in the database.

    • Generate for Mobile Application. Select this check box for mobile applications only. For ADF and AIS client applications, make sure that this check box is cleared or not checked.

    • Output Version. Select Version 1, Version 2, or Grid Data to generate classes based on the output type. The Grid Data option is available starting with AIS Client Class Generator v2.2.0.

      For more information about output types, see "Additional Supported Output Types for Form Service and Data Service" in the JD Edwards EnterpriseOne Application Interface Services Client Java API Developer's Guide.

  5. If you want to preview and keep the JSON files, select the Preview JSON Data and Keep JSON Files check boxes.

  6. Click the Generate button to generate the JSON, and then verify that it has the fields and records you need.

  7. Click Continue to generate the Java files.

    If successful, a confirmation message appears that shows the location of the JSON files and Java class files.

  8. Highlight the Application Controller project (or Model project for ADF applications) and then click the "refresh" button to display the new files.

    The AIS Client Class Generator displays a dialog box that shows where the classes are saved.