2021 September Release

Defining fieldsPermanent link for this heading

A field is a property that does not belong to an object class. Thus, fields may be used to temporarily compute values that are not persistently stored.

The fields keyword is used to define fields. It must be nested within the objmodel block.

Each field consists of a datatype followed by a reference and a semicolon.


objmodel APPDUCXSAMPLE@200.200
  import COOSYSTEM@1.1;

  fields {
    User orderagent;
    currency ordertotal;
    string orderstatusmsg;