[jasper-library-upgrade] Added missing AD_MESSAGE
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 21 May 2015 11:12:40 +0200
changeset 26758 6f7b69ae53ca
parent 26757 a1fbec4aff43
child 26759 30ce2d42cf6d
[jasper-library-upgrade] Added missing AD_MESSAGE
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java
modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml	Thu May 21 11:11:36 2015 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_MESSAGE.xml	Thu May 21 11:12:40 2015 +0200
@@ -1533,6 +1533,18 @@
 <!--CA656863135B44B6BF645936B34C61C7-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
 <!--CA656863135B44B6BF645936B34C61C7--></AD_MESSAGE>
 
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA--><AD_MESSAGE>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <AD_MESSAGE_ID><![CDATA[CB123A82E3EF4C8CAB80A01884C2C4EA]]></AD_MESSAGE_ID>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <VALUE><![CDATA[OBUIAPP_UnsupportedAction]]></VALUE>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <MSGTEXT><![CDATA[Unsupported export action: %0]]></MSGTEXT>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <MSGTYPE><![CDATA[E]]></MSGTYPE>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA-->  <ISINCLUDEINI18N><![CDATA[N]]></ISINCLUDEINI18N>
+<!--CB123A82E3EF4C8CAB80A01884C2C4EA--></AD_MESSAGE>
+
 <!--CB2FE513B6C0424A8D074AF6BDFC8607--><AD_MESSAGE>
 <!--CB2FE513B6C0424A8D074AF6BDFC8607-->  <AD_MESSAGE_ID><![CDATA[CB2FE513B6C0424A8D074AF6BDFC8607]]></AD_MESSAGE_ID>
 <!--CB2FE513B6C0424A8D074AF6BDFC8607-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java	Thu May 21 11:11:36 2015 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/BaseReportActionHandler.java	Thu May 21 11:12:40 2015 +0200
@@ -71,7 +71,7 @@
 /**
  * Action Handler used as base for jasper reports generated from process defition. This handler can
  * be extended to customize its behavior.
- *
+ * 
  */
 public class BaseReportActionHandler extends BaseProcessActionHandler {
   private static final Logger log = LoggerFactory.getLogger(BaseReportActionHandler.class);
@@ -240,7 +240,8 @@
       strJRPath = report.getPDFTemplate();
       break;
     default:
-      throw new OBException(OBMessageUtils.messageBD("OBUIAPP_UnsupportedAction"));
+      throw new OBException(OBMessageUtils.getI18NMessage("OBUIAPP_UnsupportedAction",
+          new String[] { expType.getExtension() }));
     }
     if (StringUtils.isEmpty(strJRPath)) {
       throw new OBException(OBMessageUtils.messageBD("OBUIAPP_NoJRTemplateFound"));
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java	Thu May 21 11:11:36 2015 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/report/ReportingUtils.java	Thu May 21 11:12:40 2015 +0200
@@ -1266,7 +1266,8 @@
       } else if ("XML".equals(action)) {
         return ExportType.XML;
       } else {
-        throw new OBException(OBMessageUtils.messageBD("OBUIAPP_UnsupportedAction"));
+        throw new OBException(OBMessageUtils.getI18NMessage("OBUIAPP_UnsupportedAction",
+            new String[] { action }));
       }
     }