User: kz      
Date: 05/03/18 08:32:51

Modified:
 /dba/dbaccess/source/core/dataaccess/
  documentdefinition.cxx

Log:
 INTEGRATION: CWS dbwizard4 (1.20.4); FILE MERGED
 2005/03/17 16:37:23 bc 1.20.4.1: #44562#'fillReportData' modified

File Changes:

Directory: /dba/dbaccess/source/core/dataaccess/
================================================

File [changed]: documentdefinition.cxx
Url: 
http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.23&r2=1.24
Delta lines:  +35 -29
---------------------
--- documentdefinition.cxx      16 Mar 2005 15:49:18 -0000      1.23
+++ documentdefinition.cxx      18 Mar 2005 16:32:48 -0000      1.24
@@ -619,6 +619,8 @@
             ( ( aOpenCommand.Mode == OpenMode::ALL ) ||
               ( aOpenCommand.Mode == OpenMode::FOLDERS ) ||
               ( aOpenCommand.Mode == OpenMode::DOCUMENTS ) );
+        if ( xConnection.is() )
+            m_xLastKnownConnection = xConnection;
 
         if ( bOpenFolder )
                {
@@ -1345,11 +1347,15 @@
        if ( !m_bForm && _bFill && m_pImpl->m_aProps.bAsTemplate && 
!m_bOpenInDesign ) // open a report in alive mode, so we need to fill it
        {
                setModelReadOnly(sal_False);
-               Sequence<Any> aArgs(1);
+               Sequence<Any> aArgs(2);
                PropertyValue aValue;
                aValue.Name = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("TextDocument"));
                aValue.Value <<= getComponent();
                aArgs[0] <<= aValue;
+               aValue.Name = 
::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("ActiveConnection"));
+               aValue.Value <<= m_xLastKnownConnection;
+               aArgs[1] <<= aValue;
+
                Reference< XJobExecutor > 
xExecuteable(m_xORB->createInstanceWithArguments(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.wizards.report.CallReportWizard")),aArgs),UNO_QUERY);
                if ( xExecuteable.is() )
                        
xExecuteable->trigger(::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("fill")));




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to