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.
Given the following Transactions:
The following rule is defined in the Flight Transaction:
Refmsg('Enter a valid Airline, please.', AirlineId);
Since GeneXus 16 upgrade 9 the Refmsg rule offers the following features:
- You can include the Format function as the first argument containing any attribute that is present in the Transaction Structure in the message to be shown.
- A warning spc0158 is displayed when a Refmsg rule will be never triggered.
- A warning spc0231 is displayed to warn if the Refmsg rule references secondary attributes that cannot be instantiated.
Objects Transaction object