Mensaj (Example of user's message registration

Top  Previous  Next

This is the procedure that registers to the audit file the messages that are shown to the user. If you want to create this procedure in your program, select the “File” menu, option “Import from application” and import the MENSAJ procedure from the NMA55.APP program supplied in your examples folder under NeatMessage.

Go the “Extensions” button and insert the “JALExtFRMsg” extension, the FullRecord local extension for the message box.

 

clip0027

Once you did this, you have to go to the “File Schematic” and specify which file is going to receive the messages descriptions (The file “Mensajes” in our dictionary).

Finally, go to the application global properties, press “Extensions”, select the “NeatMessage” one, go to the “Extras” tab and press the “Message()” button. Enter the “Template Hook” button and activate the checkbox “replace Message() function”.

Below you have to specify the name of the procedure that holds the message box replacement (“Mensaj”, in this example).

When you do that all the messages that the user sees will be recorded in the audit file with the operation code “ME”. The message text itself it's recorded to the specified file (Mensajes), and in the audit file there only be a reference to that file, for saving space.