This topic is locked

unique database field

4/21/2008 1:16:17 PM
PHPRunner General questions
D
dakk author

I have an unique constraint on an Oracle database field. If I try to add a duplicate record in my php web app I get Error ocurred (Record was NOT added ......) which is good and is supposed to happen. My question is can I change the database error message to something a user can relate to.

Thanks

Sergey Kornilov admin 4/21/2008

You can find all language constants in C:\Program Files\PHPRunner4.2\lang\English.lng file.

D
dakk author 4/22/2008

You can find all language constants in C:\Program Files\PHPRunner4.2\lang\English.lng file.


Thanks for the reply. The duplicate error message occurs durring inline add. On the inline_add.htm template (based on Paris) I don't see any of the supplied messages. The only message I see is <message status="{$status}">{$message}</message> which is near the bottom of the page. If I cut this out and re-deploy the app it doesn't change anything so this tag isn't generating the message. I've looked at the list.htm page and haven't been able to pin down what piece of code is generating the duplicate record message. Looking at the deployed web html code I see javascript var TEXT_INLINE_ERROR='Error occurred';