summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/query
diff options
context:
space:
mode:
authorPascal Junck <pjunck@openoffice.org>2004-10-27 12:35:47 +0000
committerPascal Junck <pjunck@openoffice.org>2004-10-27 12:35:47 +0000
commitea96e4260bb7863d7e69bfac7904a7584e2b3a78 (patch)
treeed119140beadda12143002723d2ee47093ff3587 /wizards/com/sun/star/wizards/query
parent7439680ec61c5c736f20c7a5237fdab5ad2a727e (diff)
INTEGRATION: CWS dbwizard1 (1.2.36); FILE MERGED
2004/10/01 12:39:01 bc 1.2.36.3: ## several changes in dbwizards 2004/09/09 20:42:59 bc 1.2.36.2: ##several changes in tablewizard 2004/09/07 10:12:26 bc 1.2.36.1: ##several changes for the reportwizard
Diffstat (limited to 'wizards/com/sun/star/wizards/query')
-rw-r--r--wizards/com/sun/star/wizards/query/QueryWizard.java14
1 files changed, 8 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/query/QueryWizard.java b/wizards/com/sun/star/wizards/query/QueryWizard.java
index 387f6bbf3402..27406e8c7123 100644
--- a/wizards/com/sun/star/wizards/query/QueryWizard.java
+++ b/wizards/com/sun/star/wizards/query/QueryWizard.java
@@ -2,9 +2,9 @@
*
* $RCSfile: QueryWizard.java,v $
*
-* $Revision: 1.2 $
+* $Revision: 1.3 $
*
-* last change: $Author: kz $ $Date: 2004-05-19 12:45:33 $
+* last change: $Author: pjunck $ $Date: 2004-10-27 13:35:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -126,7 +126,9 @@ public class QueryWizard extends WizardDialog {
XMultiServiceFactory xLocMSF = Desktop.connect(ConnectStr);
if (xLocMSF != null) {
PropertyValue[] curproperties = new PropertyValue[1];
- curproperties[0] = Properties.createProperty("DataSourceName", "TESTDB");
+ curproperties[0] = Properties.createProperty("DatabaseLocation", "file:///C:/Documents and Settings/bc93774.EHAM02-DEV/New Database9.odb"); //baseLocation ); "DataSourceName", "db1");
+
+// curproperties[0] = Properties.createProperty("DataSourceName", "TESTDB");
QueryWizard CurQueryWizard = new QueryWizard(xLocMSF);
CurQueryWizard.startQueryWizard(xLocMSF, curproperties);
}
@@ -305,7 +307,7 @@ public class QueryWizard extends WizardDialog {
switch (nOldStep) {
case SOFIELDSELECTIONPAGE :
CurDBMetaData.setFieldNames(CurDBCommandFieldSelection.getSelectedFieldNames());
- CurDBMetaData.setAllIncludedFieldNames();
+ CurDBMetaData.setAllIncludedFieldNames(true);
CurDBMetaData.setFieldColumns(false);
CurDBMetaData.setNumericFields();
searchForOutdatedFields();
@@ -376,7 +378,7 @@ public class QueryWizard extends WizardDialog {
public void setID(String sIncSuffix) {
ID = 1;
if (sIncSuffix != null) {
- if (sIncSuffix != "") {
+ if ((!sIncSuffix.equals("")) && (!sIncSuffix.equals("_"))) {
String sID = JavaTools.ArrayoutofString(sIncSuffix, "_")[1];
ID = Integer.parseInt(sID);
int a = 0;
@@ -403,7 +405,7 @@ public class QueryWizard extends WizardDialog {
boolean bEnabled = (CurGroupFieldSelection.getSelectedFieldNames().length > 0);
String CurFieldName = SelItems[0];
if (JavaTools.FieldInList(CurDBMetaData.NonAggregateFieldNames, CurFieldName) > -1) {
- SystemDialog.showMessageBox(xMSF, "ErrorBox", VclWindowPeerAttribute.OK, resmsgNonNumericAsGroupBy);
+ showMessageBox( "ErrorBox", VclWindowPeerAttribute.OK, resmsgNonNumericAsGroupBy);
CurGroupFieldSelection.xSelFieldsListBox.addItems(SelItems, CurGroupFieldSelection.xSelFieldsListBox.getItemCount());
String FieldList[] = CurGroupFieldSelection.xFieldsListBox.getItems();
int index = JavaTools.FieldInList(FieldList, CurFieldName);