Business Component Check method

Official Content
This documentation is valid for:

Performs the same validations as the Save method, but without updating the database. It is used when you want to validate data, mainly to get feedback, before actually updating the database.

Syntax

&VbleBasedOnBC.Check()

Where:

&VbleBasedOnBC
      Is a variable defined in a GeneXus object, based on a Business Component.

Specific case: Delete.Check

In order to validate if a delete action can be performed, the Allow non-standard functions property must be set to True.

&Country.Load("uru")
&Country.Mode=TrnMode.Delete
&Country.Check()

if &Country.Success()
   msg("Delete check ok", status)
else
   msg("Delete check fails", status)
endif

See Also

Business Component Save method