diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-05 21:30:40 +0200 |
---|---|---|
committer | Lionel Elie Mamane <lionel@mamane.lu> | 2012-06-05 21:36:06 +0200 |
commit | 32c943e161117e4362ac9246baac2c0fb54e7c79 (patch) | |
tree | 20324dfd7db0d7059257285e4c5e147ea6c91239 /wizards | |
parent | 98a8512939b3c5f08ca30f62c2cfcd6b93430812 (diff) |
fdo#47473 try to set new order only after field columns are available
Change-Id: If8ba8f4e12aaebadec86a7f445a6d32bd363106d
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/report/ReportTextImplementation.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java index c45d28210330..94b4e4088976 100644 --- a/wizards/com/sun/star/wizards/report/ReportTextImplementation.java +++ b/wizards/com/sun/star/wizards/report/ReportTextImplementation.java @@ -279,7 +279,6 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme { getRecordParser().Command = (String) oCommand.getPropertySet().getPropertyValue(PropertyNames.COMMAND); getRecordParser().getSQLQueryComposer().m_xQueryAnalyzer.setQuery(getRecordParser().Command); - getRecordParser().getSQLQueryComposer().prependSortingCriteria(); getRecordParser().Command = getRecordParser().getSQLQueryComposer().getQuery(); } else @@ -293,6 +292,12 @@ public class ReportTextImplementation extends ReportImplementationHelper impleme if (bexecute) { bexecute = getRecordParser().getFields(sFieldNameList, true); + if (bexecute && getRecordParser().hasEscapeProcessing(oCommand.getPropertySet())) + { + getRecordParser().getSQLQueryComposer().prependSortingCriteria(); + getRecordParser().Command = getRecordParser().getSQLQueryComposer().getQuery(); + bexecute = getRecordParser().executeCommand(nCommandType); + } } return bexecute; } |