Added code for getting table name.
authorManoharan Iyyadurai <manoharan.iyyadurai@openbravo.com>
Tue, 23 Mar 2010 15:59:37 +0530
changeset 6868 6b40d2de5e24
parent 6867 6ce57cd74bf4
child 6869 1bd2949f2f10
Added code for getting table name.
src/org/openbravo/erpCommon/ad_callouts/SL_AdvPayment_Document.java
--- a/src/org/openbravo/erpCommon/ad_callouts/SL_AdvPayment_Document.java	Mon Mar 22 18:18:44 2010 +0530
+++ b/src/org/openbravo/erpCommon/ad_callouts/SL_AdvPayment_Document.java	Tue Mar 23 15:59:37 2010 +0530
@@ -13,11 +13,12 @@
   protected void execute(CalloutInfo info) throws ServletException {
     VariablesSecureApp vars = info.vars;
     String strWindowNo = info.getWindowId();
-    String strTableName = vars.getStringParameter("inpTableId");
+    String strTableNameId = vars.getStringParameter("inpkeyColumnId");
     String strDocType_Id = vars.getStringParameter("inpcDoctypeId");
+    String strTableName = strTableNameId.substring(0, strTableNameId.length() - 3);
     String strDocumentNo = Utility.getDocumentNo(this, vars, strWindowNo, strTableName,
         strDocType_Id, strDocType_Id, false, false);
     info.addResult("DocumentNo", "<" + strDocumentNo + ">");
+  }
 
-  }
 }