IDEMPIERE-369 Master Detail layout improvements. Fixed zoom to second level detail.
This commit is contained in:
parent
14d41aaf33
commit
9d44e22ad2
|
@ -439,11 +439,20 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
||||||
Object[] value = entry.getValue();
|
Object[] value = entry.getValue();
|
||||||
MQuery pquery = new MQuery(pTab.getAD_Table_ID());
|
MQuery pquery = new MQuery(pTab.getAD_Table_ID());
|
||||||
pquery.addRestriction((String)value[0], "=", value[1]);
|
pquery.addRestriction((String)value[0], "=", value[1]);
|
||||||
pTab.setQuery(pquery);
|
|
||||||
IADTabpanel tp = adTabbox.findADTabpanel(pTab);
|
IADTabpanel tp = adTabbox.findADTabpanel(pTab);
|
||||||
tp.createUI();
|
tp.createUI();
|
||||||
tp.query();
|
if (tp.getTabLevel() == 0)
|
||||||
}
|
{
|
||||||
|
pTab.setQuery(pquery);
|
||||||
|
tp.query();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tp.query();
|
||||||
|
pTab.setQuery(pquery);
|
||||||
|
tp.query();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
MQuery targetQuery = new MQuery(gTab.getAD_Table_ID());
|
MQuery targetQuery = new MQuery(gTab.getAD_Table_ID());
|
||||||
targetQuery.addRestriction(gTab.getLinkColumnName(), "=", parentId);
|
targetQuery.addRestriction(gTab.getLinkColumnName(), "=", parentId);
|
||||||
|
|
Loading…
Reference in New Issue