* Remove 'save parent first' feature that doesn't work as expected

* Detail tab don't retrieve all when parent is empty or new
This commit is contained in:
Heng Sin Low 2007-02-12 23:38:13 +00:00
parent 565422ab49
commit 3a5a379385
2 changed files with 4 additions and 2 deletions

View File

@ -1044,6 +1044,7 @@ public final class APanel extends CPanel
{ {
MRole role = MRole.getDefault(); MRole role = MRole.getDefault();
m_curGC.query (m_onlyCurrentRows, m_onlyCurrentDays, role.getMaxQueryRecords()); m_curGC.query (m_onlyCurrentRows, m_onlyCurrentDays, role.getMaxQueryRecords());
/*
if (m_curGC.isNeedToSaveParent()) if (m_curGC.isNeedToSaveParent())
{ {
// there is a problem, so we go back // there is a problem, so we go back
@ -1051,7 +1052,7 @@ public final class APanel extends CPanel
m_curWinTab.setSelectedIndex(previousIndex); m_curWinTab.setSelectedIndex(previousIndex);
setBusy(false, true); setBusy(false, true);
return; return;
} }*/
} }
// Set initial record // Set initial record
if (m_curTab.getRowCount() == 0) if (m_curTab.getRowCount() == 0)

View File

@ -603,10 +603,11 @@ public class GridController extends CPanel
vTable.autoSize(true); vTable.autoSize(true);
} // query } // query
/*
public boolean isNeedToSaveParent() public boolean isNeedToSaveParent()
{ {
return m_mTab.isNeedToSaveParent(); return m_mTab.isNeedToSaveParent();
} }*/
/************************************************************************** /**************************************************************************
* Switch from single to multi & vice versa * Switch from single to multi & vice versa