System data parts

Data parts can be categorized in the following two ways: The following table categorizes data parts according to both these systems:
Table 1. Categories of data parts
  Simple Complex
Language supplied primitives, literals DataTable, Dictionary, Exception, arrays, ArrayDictionary
User defined DataItem Record, Exception

System-defined data parts provide basic building blocks for EGL programs. They provide models for the variables you create. Storage is reserved only when you declare a variable based on the part.

EGL offers the following system data parts:
Primitive data types
These fundamental numeric and character types are available to all programs; you do not need to declare them (see Primitive data types.
Literals
Direct expressions of values (see Literals).
DataTable
A collection of data in tabular form.
Dictionary
A Dictionary part holds key and value pairs, and is always available to your program (see Dictionary part).
Exception
The system provides a number of basic exceptions; you can define others yourself (see Exception handling).
Arrays
Arrays are multiple occurrences of another data part (see Arrays).
ArrayDictionary
Effectively an array of Dictionary parts, the ArrayDictionary is always available to your program (see ArrayDictionary).

Compatibility considerations

Table 2. Compatibility considerations
Platform Issue
JavaScript generation The following types are supported: ANY, BIGINT, BIN (but only in the absence of decimal places), Boolean, DataItem, DATE, DECIMAL, Delegate, Dictionary, FLOAT, INT, NUM, NUMBER, SMALLFLOAT, SMALLINT, STRING (but only in the absence of a size limit) , TIME, TIMESTAMP, NUM, MONEY, Service parts, Interface parts, External types (stereotype JavaScript), arrays of supported types, and non-structured Basic, Exception, and SQL Record parts.

The following types are not supported: ArrayDictionary, BIN (with decimal places), BLOB, CHAR, CLOB, DBCHAR, HEX, INTERVAL, MBCHAR, NUMC, STRING (with a size limit), PACF, UNICODE, and structured Record parts.


Feedback