[aprm-windows] add ad_message
authorSandra Huguet <sandra.huguet@openbravo.com>
Thu, 19 Jun 2014 15:58:32 +0200
changeset 23845 6779e260930b
parent 23844 644fb21b45d3
child 23846 f94f08e02e3a
[aprm-windows] add ad_message
modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddPaymentDefaultValuesExpression.java
--- a/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jun 19 16:13:15 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_MESSAGE.xml	Thu Jun 19 15:58:32 2014 +0200
@@ -168,6 +168,18 @@
 <!--1F3D51E013B34F1087BD5416EEB0387F-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--1F3D51E013B34F1087BD5416EEB0387F--></AD_MESSAGE>
 
+<!--20A08BD18EC44CEE9662419F9A420382--><AD_MESSAGE>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <AD_MESSAGE_ID><![CDATA[20A08BD18EC44CEE9662419F9A420382]]></AD_MESSAGE_ID>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <VALUE><![CDATA[APRM_NOHANDLER]]></VALUE>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <MSGTEXT><![CDATA[No handler found]]></MSGTEXT>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <MSGTYPE><![CDATA[I]]></MSGTYPE>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <AD_MODULE_ID><![CDATA[A918E3331C404B889D69AA9BFAFB23AC]]></AD_MODULE_ID>
+<!--20A08BD18EC44CEE9662419F9A420382-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--20A08BD18EC44CEE9662419F9A420382--></AD_MESSAGE>
+
 <!--2118F382AC3646CA8D8F2EAE6504B876--><AD_MESSAGE>
 <!--2118F382AC3646CA8D8F2EAE6504B876-->  <AD_MESSAGE_ID><![CDATA[2118F382AC3646CA8D8F2EAE6504B876]]></AD_MESSAGE_ID>
 <!--2118F382AC3646CA8D8F2EAE6504B876-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddPaymentDefaultValuesExpression.java	Thu Jun 19 16:13:15 2014 +0200
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/filterexpression/AddPaymentDefaultValuesExpression.java	Thu Jun 19 15:58:32 2014 +0200
@@ -32,6 +32,7 @@
 import org.openbravo.client.application.OBBindingsConstants;
 import org.openbravo.client.kernel.ComponentProvider;
 import org.openbravo.dal.core.OBContext;
+import org.openbravo.erpCommon.utility.OBMessageUtils;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -51,7 +52,7 @@
 
       AddPaymentDefaultValuesHandler handler = getHandler(strWindowId);
       if (handler == null) {
-        throw new OBException("No handler found");
+        throw new OBException(String.format(OBMessageUtils.messageBD("APRM_NOHANDLER")));
       }
       strCurrentParam = requestMap.get("currentParam");
       Parameters param = Parameters.getParameter(strCurrentParam);