From f743aca69d029e6feda9d5d22026d4d864ac48b7 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Sun, 29 Jul 2007 11:04:55 +0000 Subject: [PATCH] FR [ 1762465 ] Add count number for each zoom accross item found http://sourceforge.net/tracker/?func=detail&atid=879335&aid=1762465&group_id=176962 --- client/src/org/compiere/apps/AZoomAcross.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/AZoomAcross.java b/client/src/org/compiere/apps/AZoomAcross.java index 89fe147f3f..3b74ae298c 100644 --- a/client/src/org/compiere/apps/AZoomAcross.java +++ b/client/src/org/compiere/apps/AZoomAcross.java @@ -31,6 +31,8 @@ import org.compiere.util.*; * * @author Jorg Janke * @version $Id: AZoomAcross.java,v 1.2 2006/07/30 00:51:27 jjanke Exp $ + * + * @author Teo Sarca, SC ARHIPAC SERVICE SRL - FR [ 1762465 ] */ public class AZoomAcross implements ActionListener { @@ -84,7 +86,6 @@ public class AZoomAcross implements ActionListener + "(SELECT AD_Table_ID FROM AD_Column " + "WHERE ColumnName=? AND IsKey='N' AND IsParent='N') " // #x + "ORDER BY 2"; - KeyNamePair pp = null; try { PreparedStatement pstmt = DB.prepareStatement(sql, null); @@ -168,7 +169,7 @@ public class AZoomAcross implements ActionListener if (count <= 0) return false; // - KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name); + KeyNamePair pp = new KeyNamePair (AD_Window_ID, Name + " (#"+count+")"); m_list.add(pp); m_popup.add(pp.toString()).addActionListener(this); return true;