From 01b6c83306b0ee3c962cd66ab9a67cbb125c77c0 Mon Sep 17 00:00:00 2001 From: teo_sarca Date: Tue, 24 Mar 2009 14:20:48 +0000 Subject: [PATCH] FR [ 1974354 ] VCreateFrom.create should be more flexible https://sourceforge.net/tracker/?func=detail&atid=879335&aid=1974354&group_id=176962 APanel: Run VCreateFrom form only if the button has no process defined. Forgot to commit on rev. 6434 --- client/src/org/compiere/apps/APanel.java | 27 ++++++++++++++---------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/client/src/org/compiere/apps/APanel.java b/client/src/org/compiere/apps/APanel.java index 381cdfa8b7..a6df44e5f1 100644 --- a/client/src/org/compiere/apps/APanel.java +++ b/client/src/org/compiere/apps/APanel.java @@ -118,6 +118,7 @@ import org.compiere.util.Util; *
  • BF [ 1824621 ] History button can't be canceled *
  • BF [ 1941271 ] VTreePanel is modifying even if is save wasn't successfull *
  • FR [ 1943731 ] Window data export functionality + *
  • FR [ 1974354 ] VCreateFrom.create should be more flexible *
  • BF [ 1996056 ] Report error message is not displayed *
  • BF [ 1998575 ] Document Print is discarding any error * @author victor.perez@e-evolution.com @@ -2322,21 +2323,25 @@ public final class APanel extends CPanel // Pop up Create From else if (col.equals("CreateFrom")) { - // m_curWindowNo - VCreateFrom vcf = VCreateFrom.create (m_curTab); - if (vcf != null) + // Run form only if the button has no process defined - teo_sarca [ 1974354 ] + if (vButton.getProcess_ID() <= 0) { - if (vcf.isInitOK()) + // m_curWindowNo + VCreateFrom vcf = VCreateFrom.create (m_curTab); + if (vcf != null) { - vcf.setVisible(true); - vcf.dispose(); - m_curTab.dataRefresh(); + if (vcf.isInitOK()) + { + vcf.setVisible(true); + vcf.dispose(); + m_curTab.dataRefresh(); + } + else + vcf.dispose(); + return; } - else - vcf.dispose(); - return; + // else may start process } - // else may start process } // CreateFrom // Posting -----