I am interested in knowing if and how I can modify a specific AHD Error Message:
AHD05917: Activity Log Comment is Required
Right now the error message is sort of generic, stating a log comment is required. We have certain status transitions setup where a comment is required when changing to a particular status.
Not all of our analysts update the ticket status the same way ... some use the "Update Status" function from the menu-bar or right mouse click while others just click the "Edit" button and change the field right on the ticket form.
I would like the error message to tell the user where and how to accomplish the requirement. Maybe have it say the following:
Activity Log Comment is Required, you must use the "Update Status" function to do this.
AHD error messages templates are in pdm.xml.
Info about file location could be found here: https://comm.support.ca.com/kb/modifications-made-to-the-pdmxml-file-do-not-take-effect-even-if-the-steps-in-the-implementation-guide-are-followed/kb000020059
Timur has it right on how to change it.
Some other comments on error message text in general.
* Just because messages can be changed, does not mean that they should.
* Messages are often "generic" because it is never known how many pieces of code will call them, or under what conditions. You might understand perfectly how and why a message is called for one scenario. But will it always be called under the same conditions? By the same piece of code? In the same location? How about in future versions?
* Short specific changes - like your text change - are better than longer, more details messages.
* Consider pointing out to Knowledge Documents or similar sources to give extra detail.
So you might maintain a Knowledge Document with common error messages and how to fix them.
These are typically easier to maintain than altering the application code. For a start, you can delegate this out to anyone with knowledge document rights. (You could combine this with an update to the Error Message, so that the Error message points to your documentation source.)
Thank you for the extra information (suggestions) on changing error messages.
When I looked at the AHD Error in the pdm.xml file ... the action listed was exactly what I wanted the error message to say so I think I am good with changing the text for this one and not impacting anything else.