Transaction object

Official Content
This documentation is valid for:

Describes an object or actor of reality, defining the structure of the database, business rules, and the UI for data manipulation.

Description

Transactions are the first GeneXus objects you create in a Knowledge Base, as they allow you to describe objects or actors of reality. We recommend paying attention to the nouns used by the users when describing their reality and needs, to identify which Transactions you must create (I.e., Customer, Country, etc.).

Each Transaction contains the following selectors:

Transaction Selectors GX 17

Structure The Transaction structure allows you to define the attributes or fields that describe the object of reality.
The structure may have one Level or several Levels (nested or parallel). The attributes that belong to the same level will be entered, updated and deleted together. It is necessary to define, among the attributes making up each level, an attribute or set of attributes, acting as a unique identifier (primary key).
Web Layout GeneXus automatically creates a Web Layout according to the defined structure. This layout will allow users to add, change and delete data at runtime.
Rules This section is used to define specific behavior rules for the Transaction. For example, validations for the entered data, etc.
Events This section allows you to define events with idle code, which are activated in response to certain actions by the user or the system.
Variables This section allows you to define variables that will be local to the Transaction (temporary, in memory).
Help Here you can write help texts, which users will be able to refer to during Transaction runtime.
Documentation Here you can write technical text, in wiki format, to be used as documentation of the system.
Patterns Here you can apply Patterns to the Transaction. Patterns allow us to empower our applications by easily adding new features! When you apply a pattern, GeneXus creates all the necessary objects to provide the desired behavior without the need for us to program them.

WW pattern for Web icon Work With for Web. You can apply the Work With Pattern to the Transaction. The Work With Pattern is one of the best-known and most useful patterns in business applications.

WW for SD icon Work With for Smart Devices. You can apply the Work With for Smart Devices object to the Transaction. In user interfaces, we frequently find a view that shows a list of items and when one of them is selected, that item's detail is displayed. Sometimes this pattern is called Master-DetailTransaction.

GeneXus analyzes the Transaction structures and generates the necessary programs to create the database (if it doesn't exist), which will be automatically normalized to third normal form, according to the main theories of relational databases. In other words, GeneXus extracts the knowledge from the Transaction structures to define the physical tables to be created or updated in the database. After that, GeneXus also generates programs (forms with several functionalities) to interact with the database previously created.

See also

Videos

Start Video First Transaction design
Start Video Defining more Transactions
Start Video Working with attributes and domains


Subcribe to this category's changes
Sub CategoriesAdd a new subcategory in this category
PagesAdd a new page in this category