NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: ianburgess on December 27, 2012, 01:54:44 AM

Title: Customize error messages
Post by: ianburgess on December 27, 2012, 01:54:44 AM
In Nettalk web app (Nettalk 5) how can I customize the error messages that users get, eg. Creates Duplicate Key type messages?
Title: Re: Customize error messages
Post by: Bruce on December 27, 2012, 02:57:45 AM
Hi Ian,

context matters - so you have to be very specific about what error message you are looking at, and when the user sees it.
Screen-shots are good.

cheers
Bruce
Title: Re: Customize error messages
Post by: ianburgess on December 28, 2012, 03:32:11 AM
Here is example screenshot of Duplicate key error - see attached.

[attachment deleted by admin]
Title: Re: Customize error messages
Post by: Bruce on December 30, 2012, 10:43:26 PM
The generic duplicate text message is in

p_web.site.DuplicateText

it defaults to

'Creates Duplicate Record on'

You can change this in the WebHandler procedure, ProcessLink method, before parent call.

If you want to suppress the message more then I recommend embedding in the CheckForDuplicate routine in the specific form affected.

cheers
Bruce
Title: Re: Customize error messages
Post by: ianburgess on December 31, 2012, 03:04:57 AM
Many thanks for that!