Curso GeneXus

Versión: Evolution 3
Curso online

How to update data using transaction logic without screen

To carry out the same Insert, Update and Delete operations that a transaction performs, including gall the controls it performs, but with no screen and by code from any object, we introduce the Business Component concept.    

With an example where we create a new category called “Tourist Site” and change the category of all the transactions that were “Monument” in Beijing to the new category, we introduce the business component as a data type created as mirror of the transaction, and usable through variables and their Save(), Load(), Delete() methods, as well as Insert(), Update(), InsertorUpdate(), Success(), in any object. A comparison is made of the update through the transaction against the update through the business component. An explication is made regarding the need to use the Commit command.

We suggest to follow up with the video “Data Population using Business Components and Data Providers

Click here for a PDF transcript of the video.
Executing the first project
New entities added to the project
How to create a product image-gallery
Creation of a transaction
Creation of a two-level transaction
Declaration of rules
Business Components
Rules definition
Rules in Transactions - More Knowledge
Rules definition
Compound Data Types
Another example of database update using transactions without form
More about order of execution in transaction rules
Two level transaction used as Business Component, and error management
Rules definition
Curso em processo de tradução

Content (20)