In every transaction structure we define the attributes or fields that describe that object of reality.

Suppose you were asked to record, for each customer, his/her name, last name, address, phone, and email. Therefore, the data that must be recorded for each customer matches the attributes that have to be created for the Customer transaction.

Note that the first line is created for you to enter the first attribute:

AttributeDefinition

If you press the “period” key on the keyboard, GeneXus automatically shows the transaction name as prefix in the attribute name:

AttributeDefinition2

You only have to type "Id" after the "Customer" prefix to complete the first attribute name. Next, you press the Tab key and choose the data type that will be stored for this attribute:

AttributeTypeDefinition

The data type combo box displays the data types available in GeneXus. For this attribute you can leave the default data type, that is to say: Numeric of 4 digits (with no decimals).

Pressing Enter opens a new line for you to start creating the second attribute.

We recommend pressing the “period” key on the keyboard when creating a new attribute to obtain automatically the transaction name as prefix in the attribute name. This helps to avoid typing errors and to name attributes correctly.

Note that an icon key is associated with the first line. The reason is that in every transaction, an attribute – or set of attributes – must be set with identifier or key role.

Sample

You can see this example on TravelAgency (X Evolution 2).

Videos

Start Video First transaction design

See also

Insert Attribute/Variable Dialog