RefMsg Rule

Official Content
This documentation is valid for:

Replaces GeneXus default message whenever a certain referential integrity check fails.

Syntax

Refmsg('Character-expression' | &var | att , att1 , ... , attn );
 
Where:

    Character-expression (or &var or att )
         Is the phrase (string) you want to display when the referential integrity check fails.

     att1 , ... , attn
         Attributes that forms the foreign key (simple o compound by several attributes) for which the referential integrity check fails.

Note: There are two types of referential integrity messages:

  • While inserting or updating:  " No matching ......"
  • When deleting: " Invalid deletion....."

Only the first type of message will be changed by defining this rule.

Example

Given the following transactions:

Airline
{
   AirlineId*
   AilineName
}

Flight
{
   FlightId*
   FlightDate
   FlightPrice
   AirlineId
   AilineName
}
The following rule is defined in the Flight transaction:
Refmsg('ENTER A VALID AIRLINE PLEASE', AirlineId);


Scope

Objects    Transaction object

 

See also

RefCall rule

 





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