XML Datasource

Hello:
I am trying to change a datasource at runtime using java.  The datasource is an XML file located on the local machine.  The original and new XML datasource are the same format from a tag perspective.
I convert the XML file and pass it to the setDatasource() method of the dbcontroller.
The following exception is then thrown:
Exception caught: com.crystaldecisions.sdk.occa.report.lib.ReportSDKLogonException: Logon failed.
Error in File C:\WINDOWS\TEMP\TRW_Test {6BA2425C-D38F-43BA-B394-0382CA1AF83F}.rpt:
Unable to connect: incorrect log on parameters.---- Error code:-2147217393 Error code name:dbLogonFailed
It appears the RAS is trying to logon to this temporary report or datasource.  I'm not sure.
What do I need to do to get around this?
I'm assuming I need to logon into something.
Many thanks
TRW

Hi Praveen,
           I found this following procedure in the sap library. They r also said that 'Choose Delta Process Initialization mode on the Update tab page and select Initialization without Data Transfer'
          Thatz why I asked..I am confused now...please help.
Procedure
To activate data transfer to the delta queue, create an InfoPackage for your XML DataSource in order to initialize without a data request.
       1.      In the Modeling InfoSource tree of the Administrator Workbench , choose InfoSources ®Your Application Component ® Your InfoSource for Requesting XML Data ® myself BW System ® Create InfoPackage
       2.      Enter a description for your InfoPackage in the following dialog box. Select the XML DataSource and confirm your entries.
       3.      Edit the tab pages for the InfoPackage. Choose Delta Process Initialization mode on the Update tab page and select Initialization without Data Transfer.
       4.      Schedule the InfoPackage.
Regards,
Vithul

Similar Messages

  • SSRS Designer - XML Datasource - Parameter passing XML gets encoded, causes error on WS Request

    Hello,
    I am attempting to query a List from SharePoint using the XML Datasource. I am forced to use this datasource as our infrastructure team will not be upgrading our SSRS 2008 farm to SSRS 2008 R2 anytime soon. 2008 R2 has Native SharePoint
    List Datasources ( which works great FYI ). I already completed the report using the Native SP List DS, only to find out that my timing was not so great as 2008 R2 was not in production yet... /sigh, communication... anyways...
    I have successfully queried the List using the XML Datasource. It is only when I try to use the CAML query in the query parameter that it fails. So, here is my Query:
    <Query>
    <SoapAction>http://schemas.microsoft.com/sharepoint/soap/GetListItems</SoapAction>
    <Method Namespace="http://schemas.microsoft.com/sharepoint/soap/" Name="GetListItems">
    <Parameters>
    <Parameter Name="listName">
    <DefaultValue>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</DefaultValue>
    </Parameter>
    <Parameter Name="query">
    <DefaultValue>
    <Query>
    <Where>
    <Gt>
    <FieldRef Name="Modified" />
    <Value Type="DateTime">2011-03-01</Value>
    </Gt>
    </Where>
    </Query>
    </DefaultValue>
    </Parameter>
    </Parameters>
    </Method>
    <ElementPath IgnoreNamespaces="True">*</ElementPath>
    </Query>
    I will be replacing that hard date with something like =DateAdd("d",-7,Now()) later, but focusing on the task at hand...
    Here is the error ( trimmed so you don't need to read the whole stack ):
    <soap:Body>
    <soap:Fault>
    <faultcode>soap:Server</faultcode>
    <faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring>
    <detail>
    <errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">Element &lt;Query&gt; of parameter query is missing or invalid.</errorstring>
    <errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x82000000</errorcode>
    </detail>
    </soap:Fault>
    </soap:Body>
    The key to that error is:  Element &lt;Query&gt; of parameter query is missing or invalid.
    So I see that it is being encoded, so I decided to capture the actual Webservice request with Fiddler:
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Body>
    <GetListItems xmlns="http://schemas.microsoft.com/sharepoint/soap/">
    <query>
    &lt;Query&gt;
    &lt;Where&gt;
    &lt;Gt&gt;
    &lt;FieldRef Name="Modified" /&gt;
    &lt;Value Type="DateTime"&gt;2011-03-01&lt;/Value&gt;
    &lt;/Gt&gt;
    &lt;/Where&gt;
    &lt;/Query&gt;
    </query>
    <listName>{DD3DE881-1F9D-4016-AD73-F7E1D9340880}</listName>
    </GetListItems>
    </soap:Body>
    </soap:Envelope>
    So now that we know that somehow the XML parameter of "query" is being encoded. How do I tell the SSRS designer that for this XML datasource's dataset query, I do not wish to encode that parameter?  I have searched all day today and came up with
    very little. I found a few posts with a simliar question, but no solution was ever mentioned.
    The closest to a likely solution was this Post :
    http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8a9ba2fc-26cd-423e-bbbf-a16b5c9722f5/
    in particular this phrase interested me:
    "Query parameters of type Msxml2.DOMDocument30 are passed as XML. Parameters of type String which happen to contain XML are passed as strings and are XML encoded in the SOAP message. The function CXml(String) converts a string
    into an Msxml2.DOMDocument30 and can be used in query parameter expressions."
    Similar to the poster of that question, I also cannot find a way to define the parameter as an XML type or the use of this mysterious CXML() function in the expression builder...
    I'm looking for a Microsoft resource to tell me whats going on here, but if anyone else has a workaround or an idea, I would be happy to try it out.
    Regards,
    -Ryan, Solution Architect

    Hi Ryan,
    Thanks for your question, from your statement, it seems that you want to give a default value for the parameter named query, right? If so I would recommend you achieve this requirement in report level, please follow these:
    1. Create a parameter named Date, select Date/Time as data type.
    2. Move to Default values tab, then click Add button ->type in  =DateAdd("d",-7,Now())  as defult value's expression.
    3. Right-cilck the dataset, and then select DataSet properties.
    4. Move to Filters tab, click add button to add a filter.
    5. In the drop-down list of Expression, select Modified datefield with Date/Time datatype.
    6. Type in =Parameters!Date.Value in value's textbox.
    Similar thread, please get a reference from this
    http://social.technet.microsoft.com/Forums/en-US/sqlreportingservices/thread/24d30b00-139e-4487-9fb1-02f460b432f9
    If you have any question, please feel free to ask.
    Thanks,
    Challen Fu 
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found

    Hi I'm having problems deploying my EJBs using the Pointbase Database.
    This is what I'm working with:
    standardjbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
       <defaults>
          <datasource>java:/PointbaseDS</datasource>
          <datasource-mapping>Pointbase</datasource-mapping>pointbase-ds.xml:
    <datasources>
         <local-tx-datasource>
              <jndi-name>PointbaseDS</jndi-name>
    <connection-url>jdbc:pointbase:server://localhost:19092/sample</connection-url>
              <driver-class>com.pointbase.jdbc.jdbcUniversalDriver</driver-class>
              <user-name>jboss</user-name>
              <password>password</password>
         </local-tx-datasource>
    </datasources>jbosscmp-jdbc.xml:
    <jbosscmp-jdbc>
         <defaults>
              <datasource>java:/PointbaseDS</datasource>
              <datasource-mapping>Pointbase</datasource-mapping>
         </defaults>I keep getting the error message:
    org.jboss.deployment.DeploymentException: Error in jbosscmp-jdbc.xml : datasource-mapping Pointbase not found
    Any ideas why?
    Thanks.

    By the way I'm using JBoss server.

  • XML DataSource delivers no mare data after upgrade from 7.01 to 7.31

    Dear all,
    we have an XML DataSource (BW DataSource with SOAP Connection) that worked fine till our upgrade from BW 7.01 to 7.31.
    Now the delta infopackage is (still) succesfull but doesn't deliver any data.
    In our XI system there is this error:
    28.05.2014 08:01:05.399
    Information
    SOAP: call completed
    28.05.2014 08:01:05.400
    Information
    The message was successfully retrieved from the send queue.
    28.05.2014 08:01:05.402
    Information
    Executing request mapping "http://XXXXXXX/kam03/kampagne/reporting/visitorhistory/pi/CampaignVHOB2BWCampaignVHIB" (SWCV a2b526801e5111e0858eea100a375191)
    28.05.2014 08:01:05.402
    Information
    The message status was set to DLNG.
    28.05.2014 08:01:06.092
    Information
    Delivering to channel: SOAP_XI_RCV
    28.05.2014 08:01:06.092
    Information
    MP: entering1
    28.05.2014 08:01:06.092
    Information
    MP: processing local module localejbs/sap.com/com.sap.aii.af.soapadapter/XISOAPAdapterBean
    28.05.2014 08:01:06.092
    Information
    SOAP: request message entering the adapter with user J2EE_GUEST
    28.05.2014 08:01:06.470
    Fehler
    SOAP: call failed: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageHeader.getMessageId() of an object loaded from local variable messageHeader
    28.05.2014 08:01:06.472
    Fehler
    Adapter Framework caught exception: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageHeader.getMessageId() of an object loaded from local variable 'messageHeader'
    28.05.2014 08:01:06.472
    Fehler
    MP: exception caught with cause com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageHeader.getMessageId() of an object loaded from local variable 'messageHeader'
    28.05.2014 08:01:06.472
    Fehler
    SOAP: error occured: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageHeader.getMessageId() of an object loaded from local variable messageHeader
    28.05.2014 08:01:06.472
    Information
    SOAP: sending a delivery error ack ...
    28.05.2014 08:01:06.472
    Information
    SOAP: sent a delivery error ack
    28.05.2014 08:01:06.476
    Fehler
    Transmitting the message to endpoint <local> using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.lang.NullPointerException: while trying to invoke the method com.sap.aii.af.sdk.xi.mo.xmb.XMBMessageHeader.getMessageId() of an object loaded from local variable 'messageHeader'.
    28.05.2014 08:01:06.493
    Information
    The asynchronous message was successfully scheduled to be delivered at Wed May 28 08:06:06 CEST 2014.
    28.05.2014 08:01:06.493
    Information
    The message status was set to WAIT.
    28.05.2014 08:06:06.482
    Information
    The message status was set to TBDL.
    28.05.2014 08:06:06.783
    Information
    The message was successfully retrieved from the send queue.
    28.05.2014 08:06:06.783
    Information
    Retrying to send message. Retry: 1
    Does anybody have a clue and know what's wrong?
    Thanks in advance.
    Best regards,
    Nicole

    Hi Nicole,
    First of all I am afraid that I am not an expert in this area. My impression is that the HTTP destination type is created on the receiver side (i.e. BW). If that is the case, then I think t/code SM59 is the right place where you can also create other connection types than ABAP (please refer to paragraph 4.1 of the document which was mentioned in the other discussion).
    However, I suggest to involve a basis/system administrator and if possible also an XI consultant to come to a solution. My gut feeling says that it's a connection problem which has to be solved in either the BW system, XI system or in both systems.
    Best regards,
    Sander

  • Dynamic xml datasource

    Post Author: ililal
    CA Forum: Data Connectivity and SQL
    This is a java web application  using:jdk 1.4.12crystal reports xi r2sun application server  8.2Here's the problem:I would like to generate a dynamic XML document as the datasource. (This XML datasource is a result set from a query.  I've completed and tested the XML file; it works.) Using this new XML datasource as the driver for the Crystal Report, my reports should display in a web environment.BTW, I created the Crystal Report rpt file by first selecting XML.  Created a second report with the Database  files option.  They both worked with in the Crystal report view section; however, they didn't work in the application.this is the error:com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: No database connector has been specified.---- Error code :-2147467259 Error code name:failedI've searched the net with no luck.Hereu2019s my source code:ReportClientDocument reportClientDoc = new ReportClientDocument();reportClientDoc.open("Report1.rpt", 0);             IXMLDataSet xmlDS = new XMLDataSet(new ByteArray(bytesFromFile(XMLFileLocation)), new ByteArray(bytesFromFile(XMLFileLocation)));// Change the XML datasource to the new XML datasource reportClientDoc.getDatabaseController().setDataSource(xmlDS, "", "");

    Post Author: ililal
    CA Forum: Data Connectivity and SQL
    I spoke directly with Business Objects. They said,"Sun Application Server 8.2 is not supported."

  • How to filter XML Datasource bound to Dropdown list?

    Dear All,
    I quiet new to LiveCycle designer ES from past couple of weeks I am working on this.
    Right Now I have issue with filering XML Datasource bound with dropdown list.
    I have XML file which has the data to the States and City. I have bound one of my dropdown list to State. My requirement is once I select the 'State' the corresponding City Names has to be listed in the second dropdown list.
    I searched in the net and got couple of samples on that. But I failed to make my form work as requirement. Even though I have generated the XML file as given structure in the examples.
    Please check the attached xml file which I have created.
    I have struckup right now. So, help me this.
    Very much thanks in advance.
    Regards,
    Sree Harshavardhana.

    Dear BR,
    Thanks for the quick reply and most useful example. I'll try to apply the same in to my form and look in to it.
    But, I would like to know is what was the corrections you have made in the javascript. I am not wrong the code which you have written in the example pdf the same I had written, but it did not work for me! Please check the code below which I had written.
    StatesAndCities.#subform[0].StateName::change - (JavaScript, client)
    var stateDataNode = xfa.resolveNode("StatesAndCities.States.(StateID.value == " + this.boundItem(xfa.event.change) + ")");
    CityName.clearItems();
    for (var i=0; i<stateDataNode.City.all.length; i++)
        xfa.host.messageBox(stateDataNode.Cities.all.item(i).Code.value);
        CityName.addItem(staffDataNode.City.all.item(i).Code.value);
    I'll look forward by highlighting my mistakes, so that I can go by my own.
    Regards,
    Sree Harshavardhana.

  • XML Datasource Supported?

    I was wondering if Crystal Reports for Eclipse supports an XML Datasource?  If so how do you use it?

    <p>This is really a yes and no answer (much like the Stored Procedures and JDBC-ODBC questions I have been getting on the forum). Our full blown Crystal Reports Designer does support connecting to and designing reports off of XML and Web Service data sources. Our Java engine also supports reporting off of these data sources, which means you will have no problem editing or previewing an existing report that has the XML data source already added. The problem with CR4E specifically lies around the connection wizards we supply with the product. We did not want to "re-invent the wheel" when it came to defining how users will connect to data sources. Instead we used the existing Eclipse view which Developers are already using to handle their data source needs. Unfortunately, the Database Explorer does not currently provide all of the data source options our designer supports so we are forced to have a parity gap between what the engine can support at runtime and what the user is able to design against. Potentially, the possibility exists for a user to write their own data source connection wizard and create a drop-handler for the CR4E designer which may eliminate some of these issues. However, I have to look into this option a little more. I think there may be a way to write a simple class to add the XML file at runtime. Once the file has been added the report could be saved and opened in the editor. The key point that is missing today is that there is no UI available in CR4E to connect to XML. Once the XML data source gets in the report we should have no problem editing it. Anyway, let me look into this and get back to you on some possible work-arounds. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

  • One datagrid, numerous (xml) datasources

    i have a prospective application with the following setup:
    one datagrid, with numerous buttons elsewhere in the
    application
    desired procedure:
    upon clicking one of the buttons -
    the datagrid is unloaded of any datasource previously loaded
    (is this necessary?);
    the datagrid is populated with a specific, different xml
    datasource (xml file) assigned to a specific button(while showing
    busyCursor, and upon completion of data load, normal cursor is
    returned).
    any help would be appreciated.

    This article sounds like what you are doing:
    http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetails&postId=4041&produ ctId=2&loc=en_US

  • Populating the tree based on the XML datasource

    We have a XML document that contains the required information regarding tree hierarchy.
    We would like to use this XML document as a datasource for the ADF tree/treeTable component.
    Can you please provide pointers for achieveing the same?
    Thanks in Advance,
    Navaneeth

    Two options are the URL Data Control: http://www.oracle.com/technetwork/developer-tools/jdev/urldatacontrol-099677.html
    or using JAXB with TopLink/EclipseLink to create Java objects that map to the XML and then exposing those as data controls.

  • XML datasource: dynamic file name and location

    I have an RDF file that uses an XML file as its datasouce. I have supplied it a valid DTD file location and a valid XML file location, via the report wizard. I would like to programatically change the name of the XML file at runtime. What are my options...use an XML customization? I would like to do it in an after parameter form trigger. Is this possible?
    If I have to use an XML customization, is it possible to only customize part of the datasource tag. For example, here is my datasource tag (not from an RDF, but an XML report definition)
    =====================================================
    <dataSource name="QP_1">
    <plugin factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>file:C:/downloads/LVB.dtd</dtd>
    <schema>null</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>false</validate>
    <xml>file:C:/test/175.xml</xml>
    <xsl>null</xsl>
    <select>
    <element name = "typef" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Volume" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Trades" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Vol" type = "string"  s_simpleTypeMapping = "string" /> <element name = "Percent_Total_Trd" type = "string"  s_simpleTypeMapping = "string" /> </select>
    <simpleTypesInfo></simpleTypesInfo></xmlpds>]]>
    </plugin>
    <displayInfo x="1.65002" y="1.00000" width="0.69995" height="0.19995"/>
    <group name="G_1">
    <displayInfo x="1.30188" y="1.94995" width="1.39624" height="0.77246"
    />
    <dataItem> ...stuff here... </dataItem>
    </group>
    </dataSource>
    ==================================================
    How can I only customize the <xml>file:C:/test/175.xml</xml>?
    I only want to change the name of 175.xml to something like 176.xml.
    I have to put in a valid XML when I create the report via Reports Builder, but once it is in there I need to change it.

    Hello Danny,
    I am trying to pass a user parameter into the xml location <xml></xml> tags like you did but am having problems. If it's not too much trouble, would you please send me a sample of your source code so I can check my syntax? Below is my code and the error message I am getting. Any help would be greatly appreciated, I've been stuck on this for days! Thanks!
    <rw:report id="recoveryCenterScheduleReport" parameters="server=myreportserver&userid=ssstage/ssstage@DEVL&p_xmlDataURL=http://10.3.35.119:9004/ssapp/servlet/ScheduleDataServlet">
    <rw:objects id="objects">
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <report name="XMLscheduleReport" DTDVersion="9.0.2.0.0">
    <xmlSettings xmlTag="XMLSCHEDULEREPORT" xmlPrologType="text">
    <![CDATA[<?xml version="1.0" encoding="&Encoding"?>]]>
    </xmlSettings>
    <data>
    <userParameter name="XML_HTTPS" datatype="character"
    pluginClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    width="255" defaultWidth="0" defaultHeight="0" display="no"/>
    <userParameter name="p_xmlDataURL" datatype="character" width="100"
    precision="10" defaultWidth="0" defaultHeight="0"/>
    <dataSource name="QP_1">
    <plugin
    factoryClass="oracle.reports.plugin.datasource.xmlpds.XMLDataSourceFactory"
    majorVersionNumber="1" minorVersionNumber="2"
    signOnParameter="XML_HTTPS">
    <![CDATA[<xmlpds DTDVersion=" 1.0">
    <dtd>null</dtd>
    <schema>file:///C:/Practic Workspace/Practice/WEB-INF/xsd/scheduleReport.xsd</schema>
    <XSQLschema>null</XSQLschema>
    <XSQLWithDTD>false</XSQLWithDTD>
    <type>false</type>
    <xmlWritten>true</xmlWritten>
    <validate>true</validate>
    <xml>&<[b]p_xmlDataURL></xml>
    <xsl>null</xsl>
    javax.servlet.jsp.JspException: rwlib-1: REP-0002: Unable to retrieve a string from the report builder message file.
    REP-0069: Internal error
    XMLPDS-63004:Generic error while parsing the URL stream name instead of <.
    REP-4111: Fail to create pluggable data source 'QP_1'
         at oracle.reports.jsp.ObjectsTag.doEndTag(ObjectsTag.java:180)
         at jsp.reports._schedule._XMLscheduleReport._jspService(_XMLscheduleReport.java:87)
    ....

  • Using XML Datasource - is this possible

    Firstly, let me say I have searched the web, this forum and the tutorials etc to find something useful to point me in the right direction but had no luck thus far.
    I have some XML that looks like this;
    <StaffList>
        <Staff StaffId="1" Name="Fred Nerk" Mission="JMO">
            <SAC Code="001001"/>
            <SAC Code="001002"/>
            <SAC Code="001003"/>
        </Staff>
        <Staff StaffId="2" Name="John Doe" Mission="UKDEL">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="3" Name="Jane Citizen" Mission="UKREP">
            <SAC Code="001002"/>
        </Staff>
        <Staff StaffId="4" Name="Kim Hughes" Mission="JMO">
            <SAC Code="001002"/>
        </Staff>
    </StaffList>
    We have a dropdown list that contains the Name attribute of each staff element.  We have done that by using a Datasource and binding it to the XML.  Easy.
    Once a Staff member is selected in the dropdown list we would like to populate a control with the value of the "Code" attribute from the child SAC Code element(s) for the selected Staff member.  We would also like to populate a control with the "Mission" attribute for the selected Staff element.
    Is this possible using LC designer?  If so what tactic can we use to do it?  Any help appreciated.  Happy to reshape the XML if it makes it easier.

    Hi,
    I also think you will need some code but it wont be a lot.  In the change event of you dropdown list you will need something like;
    var  
    staffDataNode = $record.resolveNode("StaffList.Staff.(StaffId.value == " + this.boundItem(xfa.event.change) + ")" );SAC.clearItems();
    for   (var i=0; i<staffDataNode.SAC.all.length; i++ ){
         SAC.addItem(staffDataNode.SAC.all.item(i).Code.value);
    Mission.rawValue
    = staffDataNode.Mission.value;
    where SAC and Mission are the controls for the dependent values
    Attached is my form to test the above code.
    Bruce

  • Generating sub reports with XML Datasource in Jasper Report

    Hi ,
    I have a query related to report generation using Jasper Reports. I have managed to generate main report with XML as a datasource but am unable to do so for subreport. I tried serching through Google but in vain. If by chance I've missed out any of the links, i would be grateful for that. Sample code woukd really make my life better.
    Sorry in advance if i 've posted in wrong forum.(if it hurta anyone)

    Hello there,
    I am new to JasperReports and am having a similar problem. Were you able to find out how to do this. Any help is appreciated.
    Thanks in Advance
    Regards
    Sriram

  • VB6 & XML Datasource using Native XML Driver

    We used to use reports that used ADO XML dataset, and in VB 6 we easily told the report which XML file to use by:
    Dim objCRReport As CRAXDRT.Report
    Set objCRReport = objCRApplication.OpenReport(App.path & "\crystal\" + rptName)
    objCRReport.DiscardSavedData
    objCRReport.Database.Tables.Item(1).Location = xmlFile
    where xmlFile was the fully qualified path to the xml data to pass to the report.
    Now we are trying to do this with a new report which uses a XML Native driver as its connection method. In VB6, how can we pass different xml files to use?
    We looked at objCRReport.Database.SetDataSource, but it expects some parameters that I don't understand ( data , { data type } , { table number  } )
    Is there an example anywhere of how to switch your datasource in code while using the XML Native Driver?

    See [this|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do] note.
    I would also recommend that you read the following regarding distribution of the runtime. This is important as the xml driver (crdb_xml.dll) uses Java:
    Apart from the regular deployment procedure for COM/RDC/NET applications, you have to follow the additional below-given steps in the client machines.
    Install the Java (JVM) 2 Runtime Environment (this is essentially the Java Framework needed to launch the crdb_xml native driver 1.4.2 from the java sun web site at:
    http://java.sun.com/j2se/1.4.2/download.html.
    Create a java folder inside the " C:Program FilesBusiness ObjectsCommon3.0";.
    Copy over the Crconfig.xml(C:Program FilesCommon FilesBusiness Objects3.0java) file from the development machine to the deployed machine in at the following path "C:Program FilesCommon FilesBusiness Objects3.0java" path. Open the crconfig.xml ; this file in Notepad and search for the line <JavaDir>. If JRE is installed to C:Program FilesJavaj2re1.4.2_12 in then the value should be look like this <JavaDir> C:Program FilesJavaj2re1.4.2_12 in</JavaDir>.
    Create a folder called lib in the "C:Program FilesCommon FilesBusiness Objects3.0java".
    Copy over the entire contents of the lib folder (especially the external folder) from the development machine to the newly created lib machine on the deployed machine. The point of this is to ensure that the crconfig.xml file contains all the files here which exist at the correct path which they now should because we copied over the lib and external directories.
    Copy crdb_xml.dll, crdb_xml_res_en, and all the files with "crdb_xml_res_xx from your development machine to the deployment machine (C:Program FilesCommon FilesBusiness Objects3.0 in).
    Restart your machine and try accessing your web application. The reports will show up the data without any issue.
    The above is written for CR XI release 1. You may have to adjust the path given above as you do not specify the version of Crystal reports you are using.
    Ludek

  • XML datasource definition J2EE?

    Is there a way to define a datasource with XML?
    My admin is not working on a linux (FC5) with Sun Appserver 9
    but I am getting page translation.
    ... Cold Fusion without datasourses is like a peanut butter
    and jelly sandwich without bread .... messy

    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=6&threadid=1132184&high light_key=y&keyword1=data%20source
    This is close ... it might work but I would like something
    longer lasting

  • Repeater for XML datasource only showing one row

    Hello.
    I'm having a problem displaying multiple rows of data from an XML document in
    a
    jsp net-ui:repeater section. The database call seems to be working fine, the
    XML seems to be
    put together fine, and the XML document's getting to the jsp via the request.
    But, only one
    row of data (the first row) shows up.
    My .xsd defines TblCompany. TblCompanyDocument was created by Workshop in the
    XMLBeans generation.
    Advice/guidance/assistance would be much appreciated.
    Thanks.
    -eric-
    Following is in my dataControlImpl.jcs file. It returns seven rows.
    * @common:operation
    public TblCompanyDocument listCompany() throws SQLException
    RowSet company = db.listCompany();
    TblCompanyDocument xmlDoc = TblCompanyDocument.Factory.newInstance();
    TblCompany xml;
    while (company.next())
    xml = xmlDoc.addNewTblCompany();
    xml.setCompanyId(company.getInt("company_id"));
    xml.setCompanyName(company.getString("company_name"));
    xml.setWebAddress(company.getString("web_address"));
    xml.setUpdateBy(company.getString("update_by"));
    xml.setUpdateDt(new XmlCalendar(company.getDate("update_dt")));
    company.close();
    return xmlDoc;
    Following is in my companyController.jpf. It is used to get the results from
    my
    dataControlImpl in the form of an XML document, place them into a request attribute,
    and
    pass them on to the index.jsp page as a list of companies to choose from. I've
    verified that,
    at this point, var has seven rows of data in it.
    * Action encapsulating the control method :listCompany
    * @jpf:action
    * @jpf:forward name="success" path="index.jsp"
    * @jpf:catch method="exceptionHandler" type="Exception"
    public Forward listCompany()
    throws Exception
    TblCompanyDocument var = myControl.listCompany();
    getRequest().setAttribute( "results", var );
    return new Forward( "success" );
    Following is in my index.jsp. I've verified that, at this point, the request
    has an attribute called
    results, and it has the XML document with seven 'rows' of tblCompany in it.
    <netui-data:repeater dataSource="{request.results.tblCompany}">
    <netui-data:repeaterHeader>
    <table cellpadding="2" border="1" class="tablebody" >
    <tr>
    <td>ID</td>
    <td>Name</td>
    <td>Web Address</td>
    <td>Update By</td>
    <td>Update Date</td>
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr>
    <td><netui:label value="{container.item.companyId}"></netui:label></td>
    <td><netui:label value="{container.item.companyName}"></netui:label></td>
    <td><netui:label value="{container.item.webAddress}"></netui:label></td>
    <td><netui:label value="{container.item.updateBy}"></netui:label></td>
    <td><netui:label value="{container.item.updateDt}"></netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>

    Well, I get to answer my own question (thanks to a friend). Perhaps this will
    help someone
    else.
    The problem seemed to be in the repeater datasource. When Workshop created the
    {pageFlow.allRows} property for me, instead of referring to the subordinate XML
    structure as
    the name I gave it, it tacked on an ...Array suffix, like:
    * allRows
    * tblCompanyRowSet
    f() tblCompanyArray
    I did modify my XML structure during my debugging, and am now afraid to undo it.
    Nonetheless, here's how it looks now:
    <xs:element name="tblCompany">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="company_id" type="xs:int"/>
    <xs:element name="company_name" type="xs:string"/>
    <xs:element name="web_address" type="xs:string"/>
    <xs:element name="update_by" type="xs:string"/>
    <xs:element name="update_dt" type="xs:date"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="tblCompanyRowSet">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element ref="tblCompany"/>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    And, here's how my repeater code now looks. It works fine. The other scenario
    that probably
    would've worked with my first newsgroup post would to not have created a tblCompanyRowSet
    XML structure, and just made the dataSource={pageFlow.allRows.tblCompanyArray}.
    <netui-data:repeater
    dataSource="{pageFlow.allRows.tblCompanyRowSet.tblCompanyArray}">
    <netui-data:repeaterHeader>
    <table cellpadding="2" border="1" class="tablebody" >
    <tr>
    <td>companyId</td>
    <td>companyName</td>
    <td>webAddress</td>
    <td>updateBy</td>
    <td>updateDt</td>
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr>
    <td><netui:label value="{container.item.companyId}"></netui:label></td>
    <td><netui:label value="{container.item.companyName}"></netui:label></td>
    <td><netui:label value="{container.item.webAddress}"></netui:label></td>
    <td><netui:label value="{container.item.updateBy}"></netui:label></td>
    <td><netui:label value="{container.item.updateDt}">
    <netui:formatDate pattern="MM/dd/yy: HH:mm z"></netui:formatDate>
    </netui:label></td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>

Maybe you are looking for

  • Issue in /130 & /416

    Dear Folks, Here is a scenario, I have created a wage type , the amount of this wage type is add to /130 & /416 . I have written a pcr and the amount of same is adding in /130 &/ 416  but while exeucting the payroll for next month, amount stored in /

  • Passing a default value to the master block and do the auto query

    Hi My problem is i have a MD FORM to which i have to pass a default value and do an auto query so that when i run the form the form should open with this default value and do the query and get the details. I tried many things like trying to set the v

  • Itunes won't let me download the latest version of itunes to my pc

    I have been trying to download the latest version of iTunes from the Apple website to my PC.  When I click on the Download icon, it goes to the page saying thank you for downloading iTunes, but it hasn't download anything.  I've tried downloading in

  • Kernel Panic with Pro Tools

    Hi everyone, I'm hoping that someone can help me out with a kernel problem that I've been having on my late 2012 iMac. Twice in the past week while doing some audio editing I've had a kernel panic. I've pasted the log at the bottom, but just for clar

  • Update join view

    1. employees table- emp_id is the primary key 2. department table-dept_id is the primary key. 3. Create or replace View emp_dept AS select e.emp_id, e.last_name, d.dept_id From employees e, department d 4. update emp_dept set last_name = 'munir' wher