Compiling a Form

The Compile Form option compiles the 4GL form definition file for the selected program or for all programs in a product line or system code. The compiler builds the TranMap file that the user interface uses to process the form. You must compile the Form Definition file before the program can use it.

To compile a form

  1. From the Programmer Utilities menu, choose Compile Tools.
  2. Choose Compile Form.

    The Compile Form window appears.

    Field Description
    Compile Options
    • s - Build SD.

      This option creates the form definition library (SD) and updates the TranMap file. The SD is not necessary unless you need to compile a user exit routine that calls the SD.

    • c - Build C-type SD.

      For internal use at Lawson Software.

    • x - Create executable form IDs.

      For internal use at Lawson Software.

    • v - Verbose.

      This option visibly prints nonprinting characters (with the exception of tabs, new lines, and form feeds).

    Product Line The product line of the form definitions you want to compile.
    System Code

    The system code of the form definitions you want to compile.

    Leave this field blank to compile all form definitions in the product line. If you leave this field blank, you must also leave the Program Code field blank.

    Program Code

    The program code of the form definition you want to compile.

    Leave this field blank to compile all forms definitions in the product line or system code.

    I/O Options Optional. Lets you redirect output to the form or to a file.
  3. Press OK.

Command syntax: scrgen [-scxv] productline [systemcode [programcode …]]