NaturalONE Version 8.3.7
 —  Code Generation  —

Introduction

This section describes the Code Generation component supplied with NaturalONE and how to access the code generators. The Code Generation component provides wizards that generate the following modules:

Modules Code Generator Description
REQUEST-DOCUMENT subprogram and corresponding parameter data areas REQUEST-DOCUMENT Client Uses REQUEST DOCUMENT and PARSE XML statements to call an external Web service and interpret the response.
Object-maintenance subprogram and corresponding parameter data areas Object Maint Updates all entities within a Natural object.
Object-browse subprogram and corresponding parameter data areas Object Browse Provides the browse functionality for a Natural object.
Object skeleton subprogram Object Skeleton Provides a starting point to create an object subprogram.

The generated subprograms include a full range of user exits. For information about adding custom code within user exits, see Defining User Exits.

Notes:

  1. To install the code generators for NaturalONE, Designer > NaturalONE > Service Development must be selected in the installation tree for the installer. NaturalONE > Service Development is selected by default when you select Designer in the installation tree.
  2. Although the modules are not generated by Natural Construct, the source code lines in the editor are protected.

This section covers the following topics:


Access the Code Generators

Note:
The code generators must be initiated from an existing NaturalONE project in the NaturalONE perspective.

Start of instruction setTo access the code generators

  1. Open the context menu in the Navigator view for the NaturalONE project into which you want to generate the modules.

    Or:
    Open the context menu in the Navigator view for the library into which you want to generate the modules.

  2. Select Code Generation.

    The code generators are displayed. For example:

    graphics/code-generators-in-context-menu.png

    For information on using the client generation wizards for Natural Construct to generate modules locally, see Using Natural Construct.

Top of page