Update Policy property

Official Content
This documentation is valid for:
Sets if the Transaction form will allow editing the attributes values or not.

Values

Read Only The Transaction form will not allow to edit the attributes values. Besides, if the Transaction has associated physical table(s), you will not be able to update their attributes either through procedures nor any object.
Updatable The Transaction form will allow to edit the attributes values.

Description

This property is offered under the 'Data' properties group available for Transactions.

UpdatePolicyPropertyImage

Run-time/Design-time

This property applies only at design-time.

Samples

1) Suppose the MaritalStatus Transaction showed in the above image was set to have an associated Data Provider (Data Provider property = True) and the Data Provider purpose is to populate (Used to property=Populate data). Thus, the Data Provider stores the whole necessary data in the MaritalStatus physical table (as the following image shows) and the objective is to keep those values unchanged: 

MaritalStatus_DataProvider2

For this, you have to set the Transaction Update Policy property with Read Only value. Thus, the attributes values will not be able to be updated either by end-users (because the transaction form behavior will be read-only) nor by you through GeneXus objects.


2) Now suppose a Country Transaction was set to have an associated Data Provider (Data Provider property = True) and the Data Provider purpose is to populate (Used to property=Populate data), too. That Data Provider stores only some initial data in the Country physical table. So, it is reasonable to set Update Policy property with Updatable value, so that the end-users can add new countries and edit them.

CountryTrn-PopulateData-FullSolution

Availability

This property is available since GeneXus 15.

Scope

Objects: Transaction

Was this page helpful?
What Is This?
Your feedback about this content is important. Let us know what you think.