Intercept/change DB error message

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
hacegoya
Posts: 1
Joined: Tue 20 Oct 2020 07:05

Intercept/change DB error message

Post by hacegoya » Tue 20 Oct 2020 07:19

Please consider a grid with 2 columns (simplified). The first column is a 'lookup' column ("Name") while the second is a required field (ID Number).
Column A is used to select a 'Name' from a DB Lookup list and fill the associated ID Number into the second Column: "ID Number". Note that the actual value for "Name" does not have an underlying Field component in this table - column A just exists to get the ID Number and enter it in the table.

If one tries to post a record without selecting the 'Name' (and hence adding the ID number into the ID number field), one gets the error message "Field "ID Number" must have a value".
This could, of course, be confusing to the end user as the field they're entering is "Name" - not "ID Number" (especially if the ID number is not visible in the grid) ....
How can one intercept the database error mechanism to change the error message to "Field "Name" must have a value" to avoid confusion when the ID Number Field is null?

all the latest porn videos can be found here https://salegabriel.com/fr/
Last edited by hacegoya on Fri 28 May 2021 02:42, edited 1 time in total.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Intercept/change DB error message

Post by MaximG » Tue 20 Oct 2020 15:49

Please compose and send us a small sample, execution of which causes the mentioned problem. For your convenience, use the e-support form https://www.devart.com/company/contactform.html

Post Reply