Creating a Message for an FOP Report
Prerequisite
To create a message for an FOP report you should have:
-
Error message added in the MessageRepository.java file. For example:
public static ServerMessage searchByIsNull() { MessageRepository repo = MessageRepository.getInstance(); MessageParameters messageParms = new MessageParameters(); return repo.getMessage(SEARCH_BY_IS_NULL, messageParms); }
-
Error code added in the ReportingMessage.java file. For example:
public static final int SEARCH_BY_IS_NULL = 2039;
Procedure
To create a message for an FOP report:
-
Click the Admin link in the Application toolbar.
A list appears.
-
From the Admin menu, select M and then click Message.
A sub-menu appears
-
Click the Add option from the Message sub-menu.
The Select Business Object screen appears. It contains the following field:
Field Name Field Description Mandatory (Yes or No) Message Business Object Used to indicate that you want to create a message for a business object. Yes - Select Message from the Message Business Object list.
-
Click OK.
The Message screen appears. It contains the following fields:
Field Name Field Description Mandatory (Yes or No) Message Category Used to indicate the category for which you want to create a message. The valid value is: -
Reports
Yes Message Number Used to specify the error code which you have added in the ReportingMessage.java file. Yes Message Text Used to specify the error message. Yes Detailed Description Used to specify additional information about the message. No -
-
Click Save.
The message is created.