Object Windows

An object window displays detailed information about a form field or about a record that has a one-to-one relation from the file that stores that form field.

The following entries make up an object window definition. The number of DEFINE OBJWIN statements in an object rules file is not limited.

Use To
DEFINE OBJWIN

Begin each object window definition.

Put the title for the window that displays the record to the right of DEFINE OBJWIN. The title is required and must be inside double quotes.

The standard for the title is the object of the window. For example, if the window displays company information, the title would be Company.

ID Specify a unique identifier for this object rules object. For more information on IDs, see Object Rules Guidelines.
FILENAME Name the file that this rule accesses records in.

COMMENT

TYPE=x

Define a category (TYPE=x) that lets you organize your attachments. Multiple types can be attached to the same record by adding a COMMENT entry for each type.
URL TYPE=x Define a category (TYPE=x) that lets you organize your attachments. Multiple types can be attached to the same record by adding a Uniform Resource Locator (URL) entry for each type.
ATTRIBUTES

Use the following attribute keywords to specify how the comment or Uniform Resource Locator (URL) attachments display in a window.

ONEONLY - If this keyword is present, only one attachment of the specified type can be added.

URLSCHEME

Specifies how the URL should be used.

http - Specifies an address on the World Wide Web using the HTTP protocol.

Mailto - Not fully implemented.

corpmail - Not fully implemented.

VALIDITY Name one or two valid condition names, defined in the database definition, for the FILENAME. This entry is optional. Separate condition names with a comma. These conditions determine if Drill Around (F5) lets you select this object window from the Select Detail window. If the record does not meet the conditions, this object window title does not appear in the Select Detail window.
WINFLDS

Name the fields you want the Object window to display. You can use fields from the primary file or from a file that has a one-to-one relation from the primary file. You can also enter derived fields.

For detailed information on derived fields, see Derived Fields.

This entry can have multiple lines, including blank lines for easier reading. Each line is a physical line in the Object window. WINFLDS appears only on the first line. Separate fields on the same line with a comma (,). For example,

WINFLDS CITY,STATE,ZIP
To use a field from a one-to-one related file, prefix the field name from the related file with the file name and a period (.). In the following example, the primary file is APDISTRIB, and the related file is VENDOR.

FILENAME APDISTRIB

WINFLDS VENDOR.NAME

VENDOR.ADDR1

The size of the displayed field defaults to the defined field size. To override the default size, use the following syntax.
WINFLDS FieldName=size
The label for a field in an object window defaults to the formatted field name (for example, the label for the field Acct-Unit is Acct Unit) without dot leaders. To override the default field label, use the following syntax.

WINFLDS FieldName:"Label"

The colon (:) is the override operator. Put the field label inside double quotes. For example, to display the label Account Unit with dot leaders for the field Acct-Unit, use the following syntax.

WINFLDS    ACCT-UNIT:"Account Unit . . . ."
To display no field label, use the following syntax.
WINFLDS FieldName:"

Example for Object Window Definition

When you select the object window Company Detail, the window shows the data for the Company record that the define form detail (DEFINE SCRDTL) rule accessed.

DEFINE OBJWIN    "Company Detail"
     ID          IF-GLS-W-0001
     FILENAME    GLSYSTEM
     WINFLDS     COMPANY:         "              Company:",NAME:"-"
                     CHART-NAME:       "      Chart of Accounts:",CHART-OF-ACCTS.DESCRIPTION:"-"
                 CURRENCY-CODE:   "        Base Currency:",CUCODES.DESCRIPTION:"-"
                 ACTIVE-STATUS:   "               Status:",PROJ-ACCT-FLG:"  Projects:"
                 ACCT-PERIOD:     "       Current Period:",FISCAL-YEAR:"/"
                 NBR-ACCT-PERS:   "    Number of Periods:"
                 COND-DFT-PRD:    "  Drill Around Period:"
                  CONTROL-CODE:    "      Journal Control:",AUTO-JE-NBR:  "Auto Numbering:"
                 JOURNAL-BY-DOC:  "  Journal By Document:"
                 CURR-CONV-FLG:   "  Currency Conversion:",CURR-TRAN-FLG:"Translation:"
                 INTLV-BAL-FLG:   "       Zone Balancing:",BASE-ZONE:    "  Zone:"
                 GL190-RUN-DT:    "         Last Posting:",GL190-RUN-TM:"at"
                 GL150-RUN-DTE:   "    Last Consolidated:"
                 UPDATING:        "   Update in Progress:"