Generating Data Classes Based on a Data Request (AIS Client Class Generator v1.6.2)

The dataservice endpoint on the AIS Server enables AIS clients to receive responses from EnterpriseOne that contain either a count or a list of records matching a query of a table or view. You can use the AIS Client Class Generator to generate data classes based on the data request.

To use the AIS Client Class Generator to generate data classes based on the data request:

  1. In JDeveloper, select the ApplicationController project.

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

  2. Select the Tools menu, AIS Client Class Generator.

  3. Click the Data 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.

    • Target Type. This is the table or view based on the object on which the query is performed.

    • Target Name. The object name to be queried, for example F0101 or V0101A.

    • ReturnControlIDs. (Optional) Use this field to specify the exact fields on the form that you want generated. Specify fields by Table.Column, for example F0101.AN8 and F0101.ALPH.

    • MaxPageSize. (Optional)

    • 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.

    • 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. Make sure to select the Preview JSON Data and Keep JSON Files check boxes if you want to preview and keep the JSON files.

  6. Click the Generate button to generate the JSON, and then in the preview, 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 and Java class files.

  8. Click OK and close the generator.

  9. Highlight the Application Controller project 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.