Official Content

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

&VarBasedOnBC.Check()

Where:
&VarBasedOnBC
     Is a variable defined in a GeneXus object, based on a Business Component.

Samples

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

   





Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant