Oracle OAF: Display messages

Here are some examples from OAF types of messages:

Debug Message:

pageContext.writeDiagnostics(this, "CustomDebug message: milestone 01", OAFwkConstants.PROCEDURE);

(Can be viewed with Diagnostics enabled on PROCEDURE level)

Error Message:

throw new OAException("XXX", "XXX_MY_CUSTOM_MSG", null, OAException.ERROR, null);

Confirmation Message:

OAException confirmMessage = new OAException("XXX", "XXX_RECORDS_SAVED", null, 
OAException.CONFIRMATION, null);
pageContext.putDialogMessage(confirmMessage);

Note: Please write the translations in FND_NEW_MESSAGES:

insert into   FND_NEW_MESSAGES (application_id, language_code, message_number, message_name, message_text, 
creation_date, created_by, last_update_date, last_updated_by, last_update_login, description,
type, max_length, category, severity, fnd_log_severity)
values (20003, 'EL', NULL , 'XXX_RECORDS_SAVED', 'Οι εγγραφές έχουν αποθηκευτεί', SYSDATE, 3603, SYSDATE,
3603, 1117433, NULL, '30_PCT_EXPANSION_PROMPT', NULL, NULL, NULL, NULL); 
insert into   FND_NEW_MESSAGES (application_id, language_code, message_number, message_name, message_text, 
creation_date, created_by, last_update_date, last_updated_by, last_update_login, description,
type, max_length, category, severity, fnd_log_severity)
values (20003, 'US', NULL , 'XXX_RECORDS_SAVED', 'The records have been saved', SYSDATE, 3603, SYSDATE,
3603, 1117433, NULL, '30_PCT_EXPANSION_PROMPT', NULL, NULL, NULL, NULL);

Leave a Reply