Modifying tables to support arrays
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Modifying tables to support arrays
The DataServer allows you to extend OpenEdge's ability to support database arrays to your data source. To have access to this functionality, you must make changes to your data source table.
To modify a table to support arrays:
- Name the columns of a data source table that you want the DataServer to roll into an array column##1, column##2, etc. The columns must be adjacent and in sequence.
-
Make sure that these columns are of the same data type and
size. For example, if you want the schema holder to include an array named
MONTHwith 12 elements, the data source table must have 12 adjacent columns of the same data type namedmonth##1,month##2,month##3, and so forth. OpenEdge names the corresponding field in the schema holdermonth. In your applications, refer to each element of the array asmonth[1],month[2],month[3], and so forth. - If you have already created your schema holder, update it to reflect your changes to the data source table.