summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/report
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2003-04-24 14:44:20 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2003-04-24 14:44:20 +0000
commit703a98a70ff2807cfa9bb9e69042db0cc200a0ea (patch)
tree2ed8a513d60daf290c1652cc92ebf69b0b637099 /wizards/com/sun/star/wizards/report
parent333138e1f828aaf21aa27b98ae3ffd064a850576 (diff)
INTEGRATION: CWS extras5 (1.22.2); FILE MERGED
2003/04/16 17:11:23 bc 1.22.2.2: #108731# FillupfieldsListbox improved 2003/04/11 13:14:57 bc 1.22.2.1: #108714# index reference of dbcolumns improved
Diffstat (limited to 'wizards/com/sun/star/wizards/report')
-rw-r--r--wizards/com/sun/star/wizards/report/Dataimport.java22
1 files changed, 9 insertions, 13 deletions
diff --git a/wizards/com/sun/star/wizards/report/Dataimport.java b/wizards/com/sun/star/wizards/report/Dataimport.java
index a70dbe8d5017..5dd3ee5bdf7b 100644
--- a/wizards/com/sun/star/wizards/report/Dataimport.java
+++ b/wizards/com/sun/star/wizards/report/Dataimport.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Dataimport.java,v $
*
- * $Revision: 1.23 $
+ * $Revision: 1.24 $
*
- * last change: $Author: vg $ $Date: 2003-04-11 15:03:37 $
+ * last change: $Author: rt $ $Date: 2003-04-24 15:44:20 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -330,6 +330,9 @@ public class Dataimport extends ReportWizard{
return false;
}
}
+ catch (Tools.InvalidQueryException queryexception){
+ return false;
+ }
catch(java.lang.Exception javaexception ){
javaexception.printStackTrace(System.out);
return false;
@@ -359,15 +362,8 @@ public class Dataimport extends ReportWizard{
Object[] OldGroupFieldValues = new Object[GroupFieldCount];
XTextTable[] xGroupBaseTables = new XTextTable[GroupFieldCount];
int RecordFieldCount = FieldCount - GroupFieldCount;
- int[] SelColIndices = null;
- int[] GroupColIndices = null;
BreakType CorrBreakValue = null;
String CorrPageDescName = "";
- int iCommandType = CurDBMetaData.CommandType;
- if ((iCommandType == com.sun.star.sdb.CommandType.QUERY) || (iCommandType == com.sun.star.sdb.CommandType.COMMAND)){
- SelColIndices = CurDBMetaData.getSelectedQueryFields(CurDBMetaData.RecordFieldNames);
- GroupColIndices = CurDBMetaData.getSelectedQueryFields(CurDBMetaData.GroupFieldNames);
- }
XNameAccess xTextTables = CurReportDocument.xTextTablesSupplier.getTextTables();
xTextDocument = CurReportDocument.xTextDocument;
xTextCursor = CurReportDocument.createTextCursor(CurReportDocument.xTextDocument.getText());
@@ -387,19 +383,19 @@ public class Dataimport extends ReportWizard{
Tools.setUNOPropertyValue(xGroupBaseTables[ColIndex], "PageDescName", "");
}
}
- CurGroupValue = CurDBMetaData.getGroupColumnValue(iCommandType, GroupColIndices, ColIndex);
+ CurGroupValue = CurDBMetaData.getGroupColumnValue(ColIndex);
OldGroupFieldValues[ColIndex] = CurGroupValue;
CurDBColumn = (ReportDocument.DBColumn) CurReportDocument.GroupFormatVector.elementAt(ColIndex);
addLinkedTextSection(xTextCursor, "GroupField" + Integer.toString(ColIndex+1), CurDBColumn, CurGroupValue);
}
- if (CurDBMetaData.getcurrentRecordData(ColIndex, FieldCount, RecordFieldCount, SelColIndices, iCommandType, DataVector, sMsgQueryCreationImpossible) == true){
+ if (CurDBMetaData.getcurrentRecordData(ColIndex, FieldCount, RecordFieldCount, DataVector, sMsgQueryCreationImpossible) == true){
int RowIndex = 1;
bStopProcess = false;
while ((CurDBMetaData.ResultSet.next() == true) && (bStopProcess == false)){
RowIndex += 1;
breset = false;
for (ColIndex = 0; ColIndex < GroupFieldCount; ColIndex++){
- CurGroupValue = CurDBMetaData.getGroupColumnValue(iCommandType, GroupColIndices, ColIndex);
+ CurGroupValue = CurDBMetaData.getGroupColumnValue(ColIndex);
if ((CurGroupValue.equals((Object) OldGroupFieldValues[ColIndex]) == false) || (breset)){
breset = true;
insertDataToRecordTable(xTextCursor, DataVector, RecordFieldCount);
@@ -409,7 +405,7 @@ public class Dataimport extends ReportWizard{
breset = !(ColIndex == GroupFieldCount-1);
}
}
- CurDBMetaData.getcurrentRecordData(ColIndex, FieldCount, RecordFieldCount, SelColIndices, iCommandType, DataVector, sMsgQueryCreationImpossible);
+ CurDBMetaData.getcurrentRecordData(ColIndex, FieldCount, RecordFieldCount, DataVector, sMsgQueryCreationImpossible);
updateProgressDisplay(RowIndex);
}
insertDataToRecordTable(xTextCursor, DataVector, RecordFieldCount);