Attaching qualification objects to rule components  Writing error functions

Chapter 3: Building Production Objects

Defining data objects

To define a data object:

  1. In the TRAN-IDE main window, select View | Data Objects or click the Variables icon to display a list of all data objects defined in the current file.

  2. To define a new data object, click New below the Data Objects list.

    To edit an existing variable, double-click its name in the Data Objects list.

    NoteTo delete data objects, select the object’s name in the Data Object list and click Delete.

    The Datalink Information window appears where the Name and Type fields define the data object.

  3. Complete these fields and options:

    Table 3-17: Data object keys

    Field (key)

    Description

    Name

    The name you want to assign to the data object.

    Module

    The name of the module where you want TRAN-IDE to place this data object.

    Type

    The datatype of the data object. You can choose any one of the items in the list. To view all the options, click the down-arrow at the end of this field. Options include: blob, string, integer, long integer, short integer, character, clFile, and decimal.

    You can also create a one dimensional array of any type. Type “nn”, where “nn” is the size of the array, after the type (for example, “string[30]” would create an array of 30 strings). In a character array, the size of the array should be the same as the number of characters in the field object’s data area, because e-Biz Impact fills the array by placing the first character from the data area into the first array element, the second character from the data area into the second array element, and so on. A rule component object cannot access the individual elements of the array. Access the array elements using ODL code in custom filter functions.See “Writing custom filter functions”.

    Public

    Sets the datalink to a “public” status. This means that different modules can use this data variable. The default is “static” (unselected), which mean that only the production objects in the current module can use the datalink. In most cases, you want to place all public datalinks in their own module.

    Display

    Shows the current value of the datalink.

  4. When you finish, click OK to save the data object (variable) and close the window.





Copyright © 2005. Sybase Inc. All rights reserved. Writing error functions

View this book as PDF