I wish to generate reports from the database an out put it but i need to enter a date from and to ina  html input box

i wish to generate reports from the database an out put it
but i need to enter a date from and to ina html input box
in the input box a data of range will be input from a start
to latest
latest being the default as today's date.
any help tips snipplets, concepts , turot=rails.
thanks

easycfm.com has tutorials for people who are brand new.
If you don't know much about sql, I have heard good things
about the book, Teach Yourself SQL in 10 Minutes by Ben
Forta.

Similar Messages

  • I was using my bros account for icloud, he changed & forgot the pass now i want to sign out & put mine but i'm not able to do that and he couldnt recover bcz he did it long time ago and apple support are not sending a recovery email to his email?

    i was using my bros account for icloud, he changed & forgot the pass now i want to sign out & put mine but i'm not able to do that and he couldnt recover bcz he did it long time ago and apple support are not sending a recovery email to his email... what shall i do now to sign out?

    Tell him to contact the Apple account security team for his country and ask for assistance changing the password: http://support.apple.com/kb/HT5699.  If his country isn't listed, he can try contacting iTunes store support by filling out this form: https://www.apple.com/emea/support/itunes/contact.html.

  • This may be a duplicate but, I have a new ipad mini that I need to activate but I need to get my data from my 1pad 1 which has never been backed up.  How do I get the data from the ipad 1 to the new mini?  I have itunes acct and also Icloud acct.  Thanks

    I have a new ipad mini that I need to activate but I need to get the data from my old ipad 1 and install on the new mini.  I have a itunes acct and also icloud acct.  How do I back up the ipad 1 data and then activate the mini.  I assume I will need to transfer the sim from the ipad 1 to the mini.
    Thanks for any info
    wino454

    How to Transfer Everything from an Old iPad to New iPad
    http://osxdaily.com/2012/03/16/transfer-old-ipad-to-new-ipad/
     Cheers, Tom

  • Error while reading file entries from the database

    Hi there,
    We are running a instance of xmii 12 in a VM (VMware) and after somebody shutdown the host machine without shutting down the VM (great idea isn't it?) we keep getting this message when trying to access xMII:
    "Application cannot be started.
      Details:   com.sap.engine.services.deploy.container.ExceptionInfo: Error while reading file entries from the database."
    Any clue? Any suggestion on how we can recover from that?
    Thanks a whole lot,
    Dom
    Server log:
    #1.5 #000C29A3B1F20002000000C400000F2800044829A35270F8#1205243578005#/System/Server##com.sap.engine.services.dbpool.deploy.ContainerImpl####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.dbpool.deploy.ContainerImpl#Plain###DataSources or DataSource aliases of 'sap.com/tcmonitoringsysteminfo' application started successfully.#
    #1.5 #000C29A3B1F20002000000C500000F2800044829A3527A6C#1205243578005#/System/Server##com.sap.engine.services.servlets_jsp.server.container.WebContainer####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.servlets_jsp.server.container.WebContainer#Plain###application [] Start of application [sap.com/tcmonitoringsysteminfo] finished successfully on Web Container.#
    #1.5 #000C29A3B1F20002000000C600000F2800044829A3527DB5#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp over application sap.com/tcmonitoringsysteminfo finished successfully on server 305221750#
    #1.5 #000C29A3B1F20002000000C700000F2800044829A3527E03#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###
    Operation startApp on application sap.com/tcmonitoringsysteminfo finished on current cluster node for 221 ms.#
    #1.5 #000C29A3B1F20002000000C800000F2800044829A3528B49#1205243578005#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Error#1#com.sap.engine.services.deploy#Plain###Error occurred while initially starting application sap.com/xappsxmiiear:Error while reading file entries from the database.#
    #1.5 #000C29A3B1F20002000000CA00000F2800044829A352922B#1205243578015#/System/Server##com.sap.engine.services.deploy####n/a##60152160ef7211dcb7a5000c29a3b1f2#SAPEngine_System_Thread[impl:5]_17##0#0#Info#1#com.sap.engine.services.deploy#Plain###The synchronization of applications with DB completed for 39304 ms.#
    #1.5 #000C29A3B1F200040000000200000F2800044829B290A4F8#1205243834341#/System/Server/SLDService##com.sap.sldserv.DataCollector####n/a##0da42150ef7311dcb908000c29a3b1f2#SAPEngine_System_Thread[impl:5]_7##0#0#Warning#1#com.sap.sldserv.DataCollector#Plain###Communication configuration is incomplete. No data transfer possible until corrected.#

    Well thanks for the hint. Actually, the DB was up but corrupted. I managed to solve the bug by re-deploying xMII (using the SDM tool) which kept all my data but redeployed both the config db of (x)mii and the class files.

  • Displaying photographs , after fething from the database

    i want to display some photograph in to a swing application after fetching these photo graph from the database table , i dont know what swing component will be better for it and i m designing this in netbeans , so please assist me with that , how to go now and please note that it is dynamic so component should be like that :(. i m trying to create a photo album where i upload the multiple photograph first then i would like to show them each photograph will a text box when some one write some text in that text box and press enter i would like to save that text with that photo graph , I AM DONE WITH THE PHOTO UPLOADING TASK BUT DONT KNOW HOW TO DO THE REST LIKE DISPLAYING THE PHOTOGRAPH WITH THAT TEXT BOX

    1st of all, I will assume, since you are mentioning NetBeans so prominantly in your post, that you are trying to use the GUI developer in NetBeans--my advice to this would be: "Stop it. Stop it right now!" You need to learn how to develop a basic 2D application in Java manually--at your experience level the path you are on, using the GUI developer in NetBeans, will only lead you down a path of frustration, confusion, and eventual failure. It is a tool for the most minimal of developement or for the advanced user to use--IMO any other use of the GUI developer in NetBeans will only hinder your process.
    Suggestions on what to use so far have been very good--read them over and consider them.
    Here are my comments on the actual development:
    Since you are using a DB, you have a lot of versatility--are you saving a thumbnail or small scale of your images? I would suggest you do so to allow some type of preview so all of the full images do not have to be fetched from the DB every time.
    You should consider what is a basic element for your picture entry--picture and comment box? This can easily be implemented using 2 JPanels and a textbox--JPanel as a container for the 2nd JPanel seperate text box. You can make these into a class and populate them from the DB easily.
    Don't be afraid to get a pencil and piece of paper out and manually design what you want each photo entry to look like--a few minutes of planning on the front end will save you hours of frustration and redesign later down the line.

  • Installed Illus CS6 from the adobe site on my laptop but Illus install will not accept my Serial

    Installed Illus CS6 from the adobe site on my laptop but Illus install will not accept my Serial # and not design and web premium CS6 is list in the serial# match drop down box

    Go here and scroll down to Still need help? Sign in for support:
    https://helpx.adobe.com/x-productkb/global/find-serial-number.html
    work your way through the links there and  just keep going, even when it looks like a page you've already been on, and you will be able to start a chat session and get it straightened out.

  • Crystal Reports - Failed to retrieve data from the database

    Hi There,
    I'm hoping that somebody can help me.
    I've developed a crystal report from a stored procedure which I wrote. I can execute the stored procedure within SQL Server and within the Crystal Reports designer without any errors. Furthermore, I have imported the report into sap and can run it within SAP from the server without any errors. SAP version 8.81 PL5
    The issue is that when it's run from a client machine, I get the following error: "Failed to retrieve data from the database. Details: Database Vendor Code: 156. Error in the File RCR10010 {tempfile location}
    Here's a list of things which I have tried, all to no avail:
    - Checked user permissions to ensure that they have proper authorizations
    - Re-set the datasource connection and re-imported the report to SAP.
    - Exported the report and reviewed the datasource connection and re-imported to SAP.
    - Tried to run the report on multiple machines to ensure that it's not machine specific
    - Tried to run the report using different users to ensure it's not user specific.
    - Tested other reports built from stored procedures on client machines to ensure that they work.
    Any assistance in this would be GREATLY appreciated.
    Thank you

    After further testing, we found that the report could be run within SAP on any work station which had the CR designer installed on it.
    As it turns out, the procedure which I wrote has temp tables in it.  The runtimes built into the SAP client install do not support creating temp tables when executing the report from within SAP.  Which is why the report could not retreive data.
    To work around this, I installed external runtimes which were the same version of the Crystal Report and now the report can be run within SAP from any workstation which has the external runtimes (and not just the runtimes within the SAP client).
    I hope this makes sense.

  • Failed to retrieve data from the database crystal reports 2008 in SAP  B1

    Hello friends,
                 I am using Crystal report 2008 with SAP B1 PL 8.8. When I run any report,  it runs correctly from Crystal Report. But whenever I try to open the same report through SAP ( Tools -> Preview External Crystal Report ), it prompts the parameters for that report and then open up the crystal report window and throws an Error message ("failed to retrieve data from the database. Details [Database Vendor Code: 156]").
               Please any one suggest me the corrective solution.
    Thanks in Advance,
    Keyur Raval.

    I had the same problem in SAP B1 2007. Report worked fine except when it was open from B1. Generally there may be different problems. In my case the same problem was caused by using some procedure which was in a specific schema. Changing the schema into "dbo" solved the problem.
    Radoslaw Blaniarz

  • Crstal Reports: "Failed to retrieve data from the database"

    Running a report in crystal report from SAP 8.81 using the following parameters: CardCode, GroupCode, Date gives the following error: "Failed to retrieve data from the database" "Conversion failed when to converting the nvarchar value to data type int 12/31/2005 [Database vendor code: 245] ".
    The store procedure in SQL Server executes smoothly and  If you run the report with the date = 12/31/2005 in the parameter also returns expected results.
    Thanks.

    Hello,
    Is this in Business One? If so CR is an OEM build and that forum/product supports that version.
    Please post your question to: http://forums.sdn.sap.com/index.jspa#44
    It could simply be you need to use a formula to convert the field. Click on the Formula Editor and the hit the F1 key and search on "date". Lots of info on how to convert todate and from date tostring...
    Thank you
    Don

  • Failed to retrieve data from the database using Crystal Reports XI R2

    I am using Crystal reports XI R2 and using the Universal Web Connector (connecting to Coghead).  When I put some some of the fields from the database and run Preview I get "Failed to retrieve data from the database." .   Where is this message coming from and how can I track down what the issue is?

    Hi Jamie,
    When you are trying to Browse Data of a field it is not poping up any window menas, it is unable to interact with database and get the data from database.
    Try to create a new report using ODBC with Xtreem Sample Database.  If you get the data in your report without any error then your connector is not working / unable to pull the data into your report.
    You can find the supported platforms document in below link
    http://support.businessobjects.com/documentation/supported_platforms/xi_release2/default.asp
    Thanks,
    Sastry

  • Report error "Failed to retrieve data from the database."

    Post Author: tknorst
    CA Forum: .NET
    I have an application using CR XI R2, and on certain users computers when they try to run a report they get the following error:
    Failed to retrieve data from the database.Details: [Database Vendor Code: 229]Failed to retrieve data from the database.Error in File C:\DOCUME1\turkj\LOCALS1\Temp\WhseEmpJobAndActivityByUserAndDate {22DA2F53-4391-4307-9F2A-0E3C3EBE2198A}.rpt
    The report uses SQLOLEDB (ADO) and integrated authentication - it runs fine on the development machine.
    I found very little info on this error on the web (google) - so I hope someone here has an idea.

    You need to make sure that those systems can get conneted to the database that is supposed to return data. To check that create a udl in clients machine.
    Also do not change the schema of he report.

  • Generating XML From the Database

    I'm having trouble formatting xml generated from the database. Here is the format I am trying to generate:
    <ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1">
         <CUSTOM Table="LOT" Name="K12345.01">
              <ATTR Name="LOT_GROUP_ID" Value="FU023" />
              <ATTR Name="INGOT_ID" Value="FU023-002001" />
              <ATTR Name="VENDOR_LOT" Value="F98765-1" />
         </CUSTOM>
         <CUSTOM Table="PRODUCT" Name="KT5499">
              <ATTR Name="PHOTOCODE" Value="P-89" />
              <ATTR Name="DIE_STATUS" Value="" />
              <ATTR Name="WAFER_SIZE" Value="200" />
         </CUSTOM>
         <CUSTOM Table="EQUIPMENT" Name="KLA21XX">
              <ATTR Name="VENDOR" Value="KLA-Tencor" />
              <ATTR Name="GRADE" Value="A" />
              <ATTR Name="SERVICE" Value="NICE" />
              <ATTR Name="QUALITY" Value="WORLD-CLASS" />
         </CUSTOM>
    </ADB_DOCUMENT>
    The data is selected from a view. The SQL looks like this:
    SELECT ADB_DOCUMENT_DATASOURCE as "DataSource",
    ADB_DOCUMENT_FORMATVERSION AS "FormatVersion",
    CUSTOM_TABLE as "Table",
    CUSTOM_NAME AS "Name",
    ATTR_NAME AS "Name",
    ATTR_VALUE AS "Value"
    FROM EXPORT_TABLE;
    Here is an insert statement for the data:
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcDicdPriority','1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlPriority','1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlThread','353V1A1_XXXX');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ApcOvlTypUsed','45');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ERFID','EXECUTED');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','GateCD_Target_PLN','MEDIUM');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','GateCD_Value','48.29');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','LastReticle','3365DK0A0A1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','LastStepper','STP1308');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','OOC','DDT');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','PPCD','MD201020001UN');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','PPCDLevel','1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','SAPMaterialNumber','50000392');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','ShipDelay','1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','TurnkeyType','J');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','YMSStepID','M2-MSKADI');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcDicdPriority','0');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlPriority','0');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlThread','354V4C1_XXXX');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ApcOvlTypUsed','45');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','GateCD_Target_PLN','HOT');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','GateCD_Value','47.634');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','LastReticle','3250CU0TJC1');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','LastStepper','STP403');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','SAPMaterialNumber','50001396');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','ShipDelay','5');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','TurnkeyType','J');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','YMSStepID','TJ-MSKADI');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','SUB_LOT_TYPE','PROD-PO');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','SUB_LOT_TYPE','PROD-PX');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U0C28.00','STF_VERSION','3365DI.C0');
    Insert into EXPORT_TABLE (ADB_DOCUMENT_DATASOURCE,ADB_DOCUMENT_FORMATVERSION,CUSTOM_TABLE,CUSTOM_NAME,ATTR_NAME,ATTR_VALUE) values ('CUSTOM_ATTR','1.1','LOT','U100M.00','STF_VERSION','3250CN.C0');
    This is the sqlxml that I have created.
    SELECT XMLElement(
    "ADB_DOCUMENT" ,
    XMLAttributes(ADB_DOCUMENT_DATASOURCE as "DataSource", ADB_DOCUMENT_FORMATVERSION AS "FormatVersion"),
    XMLElement(
    "CUSTOM",
    XMLAttributes(CUSTOM_TABLE as "Table", CUSTOM_NAME AS "Name"),
    XMLAgg(
    XMLElement(
    "ATTR",
    XMLAttributes(ATTR_NAME AS "Name", ATTR_VALUE AS "Value")
    ) AS XML
    FROM EXPORT_TABLE
    GROUP BY ADB_DOCUMENT_DATASOURCE, ADB_DOCUMENT_FORMATVERSION, CUSTOM_TABLE, CUSTOM_NAME;
    And this is the output generated from the sqlxml:
    <ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1"><CUSTOM Table="LOT" Name="U0C28.00"><ATTR Name="ApcDicdPriority" Value="1"></ATTR><ATTR Name="STF_VERSION" Value="3365DI.C0"></ATTR><ATTR Name="SUB_LOT_TYPE" Value="PROD-PO"></ATTR><ATTR Name="YMSStepID" Value="M2-MSKADI"></ATTR><ATTR Name="TurnkeyType" Value="J"></ATTR><ATTR Name="ShipDelay" Value="1"></ATTR><ATTR Name="SAPMaterialNumber" Value="50000392"></ATTR><ATTR Name="PPCDLevel" Value="1"></ATTR><ATTR Name="PPCD" Value="MD201020001UN"></ATTR><ATTR Name="OOC" Value="DDT"></ATTR><ATTR Name="LastStepper" Value="STP1308"></ATTR><ATTR Name="LastReticle" Value="3365DK0A0A1"></ATTR><ATTR Name="GateCD_Value" Value="48.29"></ATTR><ATTR Name="GateCD_Target_PLN" Value="MEDIUM"></ATTR><ATTR Name="ERFID" Value="EXECUTED"></ATTR><ATTR Name="ApcOvlTypUsed" Value="45"></ATTR><ATTR Name="ApcOvlThread" Value="353V1A1_XXXX"></ATTR><ATTR Name="ApcOvlPriority" Value="1"></ATTR></CUSTOM></ADB_DOCUMENT>
    <ADB_DOCUMENT DataSource="CUSTOM_ATTR" FormatVersion="1.1"><CUSTOM Table="LOT" Name="U100M.00"><ATTR Name="ApcDicdPriority" Value="0"></ATTR><ATTR Name="STF_VERSION" Value="3250CN.C0"></ATTR><ATTR Name="SUB_LOT_TYPE" Value="PROD-PX"></ATTR><ATTR Name="YMSStepID" Value="TJ-MSKADI"></ATTR><ATTR Name="TurnkeyType" Value="J"></ATTR><ATTR Name="ShipDelay" Value="5"></ATTR><ATTR Name="SAPMaterialNumber" Value="50001396"></ATTR><ATTR Name="LastStepper" Value="STP403"></ATTR><ATTR Name="LastReticle" Value="3250CU0TJC1"></ATTR><ATTR Name="GateCD_Value" Value="47.634"></ATTR><ATTR Name="GateCD_Target_PLN" Value="HOT"></ATTR><ATTR Name="ApcOvlTypUsed" Value="45"></ATTR><ATTR Name="ApcOvlThread" Value="354V4C1_XXXX"></ATTR><ATTR Name="ApcOvlPriority" Value="0"></ATTR></CUSTOM></ADB_DOCUMENT>
    The problems I am trying to resolve are:
    1. THE <ADB_DOCUMENT> tag is generated for each row. I just want 1 <ADB_DOCUMENT> tag to wrap the entire document.
    2. I need a linefeed character (\n in c) at the end of each tag as in the sample output in the beginning of the post. I tried concatenating a chr(10) to the end of the </ATTR> tags, but sqlplus truncates anything after the chr(10) in the output file. (I am piping this output to a file using a table function).
    Any help would be greatly appreciated!

    1. THE <ADB_DOCUMENT> tag is generated for each row. I just want 1 <ADB_DOCUMENT> tag to wrap the entire document.You have to deal with two levels of aggregation, so here's one way to do it :
    SELECT XMLElement("ADB_DOCUMENT",
             XMLAttributes(adb_document_datasource as "DataSource", adb_document_formatversion as "FormatVersion"),
             XMLAgg(custom_element)
           ) as xmlresult
    FROM (
      SELECT adb_document_datasource
           , adb_document_formatversion
           , XMLElement("CUSTOM",
               XMLAttributes(custom_table as "Table", custom_name AS "Name"),
               XMLAgg(
                 XMLElement("ATTR",
                   XMLAttributes(attr_name AS "Name", attr_value AS "Value")
             ) as custom_element
      FROM export_table
      GROUP BY adb_document_datasource
             , adb_document_formatversion
             , custom_table
             , custom_name
    GROUP BY adb_document_datasource
           , adb_document_formatversion
    2. I need a linefeed character (\n in c) at the end of each tag as in the sample output in the beginning of the post.Do you really need to introduce whitespaces in your document?
    Depending on your database version, there are two methods to serialize your output and pretty-print it :
    11g : XMLSerialize function, with the INDENT option
    10g : Extract function
    For example,
    SELECT XMLSerialize(document
             XMLElement("ADB_DOCUMENT",
             as clob indent size = 2
    FROM ...
    SELECT XMLElement("ADB_DOCUMENT",
           ).extract('/*').getclobval()
    FROM ...You can then use DBMS_XSLPROCESSOR.clob2file to write the file with a single call.
    Edited by: odie_63 on 18 août 2011 22:14

  • Failed to retrieve data from the database Database Vendor Code: 2812

    Hi everyone
    Im using Sap Business One Version 2007A SP00 PL49, SQL 2005 and Crystal Reports Basic for Sap Business One (Add on 2.0.0.7). Whenever i try to generate a report from SBO the system displays the following message "Failed to retrieve data from the database DETAILS: [Database Vendor Code: 2812]"
    The scenario is that, according to the Colombia's product local expert, Is not possible to create Stored Procedures, Views, Functions or anything in the customer productive database, in order to improve the performance of the query i created other DB where i created an stored procedure, after that, i called it from Crystal where it's working ok. But when i try to generate it from SBO it show the message promted.
    Someone knows what could be happening
    I'll be thankful

    Hi Cesar,
    Please post your question to the Business One forum.
    I can't move this thread.
    Thank you
    Don

  • Failed to retrieve data from the database error message

    Hello,
    I have a fairly simple report that correctly retrieves the data from the database providing that there are no selection formula.
    However, as soon as I add the record selection formula:
    {fireService.serviceDate} >= DateTime (2009, 10, 3, 0 ,0 ,0)
    I get the following errors:
    Failed to retrieve data from the database
    Cannot determine the queries necessary to get data for this report. Details: An invalid range operator has been encountered.
    However, when I use the Database / Show SQL Query option and copy the query directly into the sql query analyser it works perfectly.
    Any ideas?

    I am using a table to select the records from.
    In fact it is a series of joined tables.
    The SQL Query generated is:
    SELECT "fire"."unitNumber", "configLocation"."location", "configFireEquipmentType"."type", "configFireEquipmentSize"."size", "configFireEquipmentRating"."rating", "fire"."yearManufactured", "fire"."LPT", "configFireServiceLevel"."Level", "configTest"."test", "fireService"."serviceRepairs", "customer"."name", "customer"."customerGUID", "customer"."address1", "customer"."address2", "fireService"."serviceDate", "fireService"."comment"
    FROM   (((((((("SAFE2"."dbo"."fire" "fire" INNER JOIN "SAFE2"."dbo"."customer" "customer" ON "fire"."customerGUID"="customer"."customerGUID") INNER JOIN "SAFE2"."dbo"."fireService" "fireService" ON "fire"."fireGUID"="fireService"."fireGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configLocation" "configLocation" ON "fire"."locationGUID"="configLocation"."locationGUID") INNER JOIN "SAFE2"."dbo"."fireEquipment" "fireEquipment" ON "fire"."fireEquipmentGUID"="fireEquipment"."fireEquipmentGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentRating" "configFireEquipmentRating" ON "fireEquipment"."ratingGUID"="configFireEquipmentRating"."fireEquipmentRatingGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentSize" "configFireEquipmentSize" ON "fireEquipment"."sizeGUID"="configFireEquipmentSize"."fireEquipmentSizeGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireEquipmentType" "configFireEquipmentType" ON "fireEquipment"."typeGUID"="configFireEquipmentType"."fireEquipmentTypeGUID") LEFT OUTER JOIN "SAFE2"."dbo"."configFireServiceLevel" "configFireServiceLevel" ON "fireService"."serviceLevelID"="configFireServiceLevel"."levelID") LEFT OUTER JOIN "SAFE2"."dbo"."configTest" "configTest" ON "fireService"."testID"="configTest"."testID"
    WHERE  "fireService"."serviceDate">={ts '2009-10-03 00:00:00'}
    ORDER BY "customer"."name", "customer"."customerGUID"
    It looks complext but is not.  Most of these joins reference lookup tables.

  • Failed to retrieve data from the database. [Database Vendor Code: 116]

    My report is using Java Bean class as datasource and the Java Bean class calls a report-specific Java program to return a result set.
    Report fails to generate and the error message is
    Failed to retrieve data from the database. Details:  [Database Vendor Code: 116 ]
    Can anyone tell me what error code 116 means?
    Thanks.

    The problem is solved internally. Our team implemented a result set data structure that incorrectly converts a Double into a String before passing it to Crystal Report for rendering. Data Vendor Code I met yesterday was the outcome of illegal class conversion.
    I have a side question;  our development team would like to use log4j to log method calls invoked during rendering. Our problem could be solved earlier if we knew getString() was invoked instead of getDouble() during rendering.  We thought of specifying the full path of log4j jar file in CRConfig.xml but we don't know how to configure CR to write logging information into a specific file location.
    Please help.
    Thanks

Maybe you are looking for

  • When trying to update or download a app it comes up "could not be downloaded at this time"

    When trying to update or download a app it comes up "could not be downloaded at this time".. does anyone know what i can do to fix the problem???

  • Error when importing a web service from ES Workplace to NWDS

    Hi guys, I'm working with SAP NetWeaver Developer Studio (SAP NetWeaver 7.1 Composition Environment SP03 PAT0000 Build id: 200710302120) The connection (through Services Registry) to the ES Workplace was successful. I found the service definition and

  • Glitch in Viewing HTML

    I received an e-mail today that was formatted in HTML, but Mail opened it in a window that was about 1" tall. I looked in vain for a way to expand the window so that I could see more of the e-mail, but couldn't. Any ideas out there?

  • UTF-8 stored in VARCHAR2 on a non-Unicode DB

    Hi there, we have a company that implements storing Unicode data in Oracle in the following way: A plain VARCHAR2 on a non-Unicode DB (charset is actually WE8MSWIN1252) receives UTF-8 coded data. As client and server have the same setting for NLS_LAN

  • XI JDBC  receiver is successful but have no any rows in table

    Hi Experts ! My scenario is MySQL->XI->Oracle. It means I want to transfer data from MySQL to Oracle database. The status of MySQL_Sender communication channel(CC) is successful and the Oracle_Receiver CC is too. And message in RWB with status is suc