Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Granularity of Foreign Key Error Messages
Wed, May 1 2013 1:50 PMPermanent Link

Chris Clark

I really love the ability to be able add a nice simple error code / message to a foreign key constraint. Its already saved me a lot of work.

Most of the tables I have are On Delete Restrict so I use the message to simply inform the user that the record can't be deleted as it has child records - perfect.

The situation it creates though is that this error message applies both to restricting deletes, and to primary key violations. So if the primary key is violated I tell the user the record can't be deleted because it has child records. which is somewhat confusing Smile

I mostly prevent violations before they occur....mostly.

I am assuming there is nothing I can do here, its just the way it works - just checking thats the case.
Fri, May 3 2013 10:48 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Chris,

<< I am assuming there is nothing I can do here, its just the way it works -
just checking thats the case. >>

There's an existing enhancement request from Barry about adding the ability
to use formatting and string substitution in the constraint messages, so
that should be able to get you what you need when it is implemented.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, May 3 2013 1:58 PMPermanent Link

Chris Clark

<<There's an existing enhancement request from Barry about adding the ability
to use formatting and string substitution in the constraint messages, so
that should be able to get you what you need when it is implemented.>>

That's perfect. Look forward to it. Thank You

Chris.
Image