details: /erp/devel/pi-engdev/rev/6b40d2de5e24 changeset: 6759:6b40d2de5e24 user: Manoharan Iyyadurai <manoharan.iyyadurai <at> openbravo.com> date: Tue Mar 23 15:59:37 2010 +0530 summary: Added code for getting table name.
diffstat: src/org/openbravo/erpCommon/ad_callouts/SL_AdvPayment_Document.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diffs (18 lines): diff -r 6ce57cd74bf4 -r 6b40d2de5e24 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 + ">"); + } - } } ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits