diff --git a/org.adempiere.ui.zk.example/src/org/adempiere/ui/zk/example/action/ExportWindow.java b/org.adempiere.ui.zk.example/src/org/adempiere/ui/zk/example/action/ExportWindow.java index 9e67901d30..a7d44ab704 100644 --- a/org.adempiere.ui.zk.example/src/org/adempiere/ui/zk/example/action/ExportWindow.java +++ b/org.adempiere.ui.zk.example/src/org/adempiere/ui/zk/example/action/ExportWindow.java @@ -173,7 +173,11 @@ public class ExportWindow extends Window implements EventListener { childs.add(adTabPanel.getGridTab()); } - exporter.export(panel.getActiveGridTab(), childs, currentRowOnly, file); + int indxDetailSelected = 0; + if( adTab.getSelectedDetailADTabpanel()!=null ) + indxDetailSelected = adTab.getSelectedDetailADTabpanel().getGridTab().getTabNo(); + + exporter.export(panel.getActiveGridTab(), childs, currentRowOnly,file,indxDetailSelected); onClose(); AMedia media = null;