IDEMPIERE-761 New record on role is showing role 0 info on detail.

This commit is contained in:
Heng Sin Low 2013-03-19 17:23:09 +08:00
parent 013487eecb
commit 502192986b
1 changed files with 20 additions and 0 deletions

View File

@ -747,6 +747,26 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
setCurrentRow(0, true);
} // query
public void clearForNewParentRecord() {
if (m_mTable.isOpen())
{
StringBuffer where = new StringBuffer("2=3");
m_extendedWhere = where.toString();
m_oldQuery = where.toString();
m_parentNeedSave = true;
m_currentRow = -1;
/**
* Query
*/
if (log.isLoggable(Level.FINE)) log.fine("#" + m_vo.TabNo + " - " + where);
m_mTable.dataRequery(where.toString(), m_vo.onlyCurrentRows && !isDetail(), 0);
// Go to Record 0
setCurrentRow(0, true);
}
}
/**
* Validate Query.
* If query column is not a tab column create EXISTS query