...
2. Define the exception in the messages.xml file. Use a unique key for the expression tag. For more information on customising messages metadata, go to Customise Customize Messages Metadata.
Code Block |
---|
language | xml |
---|
title | messages.xml |
---|
collapse | true |
---|
|
<messages>
<message>
<code>COM.CRM.EXCEPTION.ACCOUNTS.ACCOUNTTERMINATIONEXCEPTION</code>
<expression>key_com_crm_exception_accounts_accountterminationexception</expression>
<description>You are not allowed to terminate the accounts receivable. This is only allowed for Active or Suspended accounts.</description>
</message>
.
.
.
</messages> |
...
3. Define the question code in metadata messages file.
Code Block |
---|
theme | Eclipse |
---|
language | java |
---|
title | messages.xml |
---|
collapse | true |
---|
|
<message>
<code>CONFIRM_FINANCIAL_TRANSACTION_SAVED_AS_POSTED</code>
<expression>key_confirm_financial_transaction_saved_as_posted</expression>
<description>Confirm Action</description>
</message> |
...
3. Define the message code in metadata messages file.
Code Block |
---|
theme | Eclipse |
---|
language | java |
---|
title | messages.xml |
---|
collapse | true |
---|
|
<message>
<code>LOGOUT_INFO_MSG</code>
<expression>key_logout_info_msg</expression>
<description>Logout to apply the changes</description>
</message> |
...
Code Block |
---|
theme | Eclipse |
---|
language | java |
---|
title | translation_eng.properties |
---|
collapse | true |
---|
|
<entry key="key_logout_info_msg">Please logout and login again so thethat changes will be applied.</entry> |