Define the object structure, through an Editor.
The structure can be multilevel, similar to the transactions structure. Each level can have one or more elements (or items). They can be classified in simple elements or compound elements (with other elements).
· Simple Elements
On defining an element in a SDT design, you must specify the Name property identifying the element; therefore, there cannot be two elements with the same name. The DataType property allows selecting among the following data types:
· GeneXus basic types (numeric, date, etc.)
· Domains
· Another already defined SDT.
The Collectionproperty indicates whether the element has multiple instances (it can be repeated) or not. It has two possible values: True or False
· Compound Elements
A color bullet, in the editor, identifies the compound elements. They are those elements defining a new elements group (a new collection or a group of simple elements).
They have the same properties as the simple elements, but the Data Type property is not enabled. There is an exception: when a SDT is a simple type collection.
The Item Name property is only enabled when the compound element defines a Collection (Collection property in True). This property indicates the name of each one of its elements. This “name” is the SDT name, and will be selectable as data type for the variables definition. This means that two data types will be created: one with “Name” (SDT name) and another with Name.ItemName.