IDEMPIERE-2789:csv export:query for detail tab is run same as number of record
This commit is contained in:
parent
5e4575f822
commit
44a48fac03
|
@ -282,8 +282,16 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while(true){
|
|
||||||
if(childs.size()>0){
|
if(childs.size()>0){
|
||||||
|
for (GridTab childTab:childs){
|
||||||
|
if (!childTab.isLoadComplete()){
|
||||||
|
childTab.initTab(false);
|
||||||
|
}
|
||||||
|
|
||||||
|
childTab.query(false, 0, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
while(true){
|
||||||
Map<String, Object> tmpRow = resolveMasterDetailRow(rowDetail,tabMapDetails,headArray,index);
|
Map<String, Object> tmpRow = resolveMasterDetailRow(rowDetail,tabMapDetails,headArray,index);
|
||||||
if(tmpRow!= null){
|
if(tmpRow!= null){
|
||||||
for(Map.Entry<String, Object> details : tmpRow.entrySet()) {
|
for(Map.Entry<String, Object> details : tmpRow.entrySet()) {
|
||||||
|
@ -296,8 +304,7 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
}else{
|
}else{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}else{
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +355,6 @@ public class GridTabCSVExporter implements IGridTabExporter
|
||||||
GridTab childTab = childTabDetail.getKey();
|
GridTab childTab = childTabDetail.getKey();
|
||||||
//String whereCla = getWhereClause (childTab, parentGrid, currentParentIndex);
|
//String whereCla = getWhereClause (childTab, parentGrid, currentParentIndex);
|
||||||
//childTab.getTableModel().dataRequery(whereCla, false, 0);
|
//childTab.getTableModel().dataRequery(whereCla, false, 0);
|
||||||
childTab.query(false, 0, 0);
|
|
||||||
Map<String,Object> row = new HashMap<String,Object>();
|
Map<String,Object> row = new HashMap<String,Object>();
|
||||||
boolean isActiveRow = true;
|
boolean isActiveRow = true;
|
||||||
if (childTab.getRowCount() > 0) {
|
if (childTab.getRowCount() > 0) {
|
||||||
|
|
Loading…
Reference in New Issue