Need Sequence in XML Report

Hi
I am doing XML Report in Oracle Apps.
For that i need sequence..
I am able to do sequence, but my problem is for every department the sequence must start with 1..
Ex.
Now am getting Values....
Department 1
1
2
3
4
5
Department 2
6
7
8
Department 3
9
10
11
12
But i want as below
Department 1
1
2
3
4
5
Department 2
1
2
3
Department 3
1
2
3
4
Please help to solve this issue.....
Thanks in Advance
Adina

Would you care to post the code that you are already using to generate your output and then we may be able to assist with changes to it so that your sequences come out differently.
We can't just give you an answer based on what you are getting as output and what you want as we don't know your code.

Similar Messages

  • Sequence with in sequence for XML Report

    Hi
    I am doing XML Report in Oracle Apps.
    For that i need sequence with in sequence.
    I am able to do sequence using the below code.
    <xsl:value-of select="count(preceding::RECEIPT_NUM) + 1"/>
    but my problem is for every department the sequence must start with 1..
    Ex.
    Now am getting Values....
    Department 1
    1
    2
    3
    4
    5
    Department 2
    6
    7
    8
    Department 3
    9
    10
    11
    12
    But i want as below
    Department 1
    1
    2
    3
    4
    5
    Department 2
    1
    2
    3
    Department 3
    1
    2
    3
    4
    Please help to solve this issue.....
    Thanks in Advance
    Adina

    MONTHLY STOCK STATEMENT FROM 01-SEP-07 TO 30-SEP-07
    S.N
    o
    ITEM ITEM CODE UO
    M
    Opening
    Balance
    Receipts Issues Closing
    Balance
    Remarks
    Department : 1 ANJANEYA
    1 RMVCOP0003 CU. COIL DIA- 8.0 MM FOR COPPER RODS Kg -137.6 0 0 -137.6
    Department Total : -137.6 0 0 -137.6
    Department : 2 BALAJI TEC
    2 RMVCAS0038 350G2 CASTING (708P1 ROTOR POLE END PLATE) No -707 364 0 -343
    3 RMVCAS0049 901 G1 CASTINGS RAW MATERIAL No 516.3 1012.248 -165 1363.548
    Department Total : -328.3 1376.248 -165 882.948
    Department : 3 BHAGYA
    4 CPPCLM0061 AUX. CORE COIN LAMINATIONS No 551 0 -172 379
    5 RMVCLM0061 AUXILLARY CORE COIN LAMINATION No -1 0 0 -1
    6 CPPCLM0008 GEB 13/13EA STATOR COIN LAMINATION No -1070 0 -454 -1524
    7 CPPCLM0025 GEB 30 COIN LAMINATION No 490 0 -124 366
    8 RMVCLM0063 GEB13 /13EA ROTOR COIN LAMINATION No 608 200 -520 288
    9 RMVCLM0062 GEB13 /13EA STATOR COIN LAMINATION No 1367 0 -192 1175
    10 RMVCLM0053 GEB16 / ST.COIN LAMINATION / 2MM THICK No 411 0 0 411
    11 RMVCLM0052 GEB22 / 20 ST.COIN LAMINATION / 2MM THICK No 295 450 -245 500
    Department Total : 2322.7 2026.248 -1872 2476.948
    Department : 4 FG STORES
    13 FGA5LC2508RT0241Y1 ABB AUSTRALIA / 2508 / 50C530C6W CR 5 0 0 5
    15 FGA5WL2527RT0005F3 ABB AUSTRALIA /2527/CRCA Set 0 0 -2 -2
    16 FGB3LL2456RT0000F4 BHEL BHOPAL/2456/CRCA Kg -9904 0 0 -9904
    17 FGB3LL2456ST0000F4 BHEL BHOPAL/2456/CRCA Kg 5935.994 0 0 5935.994
    18 FGB2LL1863ST0000B3 BHEL RC / 1863/ M36 Kg 28427.769 0 0 28427.769
    19 FGC1LL2365ST0000D2 CGL - BHOPAL / 2365 / 50C530 Kg -536.798 0 0 -536.798
    20 FGC1LL2365RT0000D2 CGL BHOPAL/2365/CS/M45 Kg -8.078 0 0 -8.078
    24 FGE2WC2522ST0315Y3 EMOD / 2522 / 50C600 /WELDED CORE CR -3 0 0 -3
    25 FGE2DC2522RT0240Y3 EMOD /2522 /ROOR DIE CASTING /50C600C6W CR 3 0 0 3
    26 FGE2DC2522RT0290Y3 EMOD /2522 /ROOR DIE CASTING /50C600C6W CR -3 0 0 -3

  • Need to generate XML report  (when user clicks the button)from Application Express 4.0.0.00.46

    I am new to Apex so I invoke all the APEX GURUS to help me !!!
    Here are details.
    When the user hits a button from APEX page he can download an XML report
    here is the parameterized SQL query:

    Duplicate thread: https://community.oracle.com/message/11325665

  • Need Help for XML Report

    Hii
    I have used <?split-by-page-break:?> for page break
    For Each Po Fresh page is showing but in last page Two Po are Coming .which i wants in Fresh page
    where is the problm ....plz reply me

    Normally it should work at the next way:
    <?for-each:G_PO?>
    <?split-by-page-break:?>
    <?end for-each?>
    You can try the next one too:
    <?for-each:G_PO?>
    <?split-by-page-break:?>
    <?split-by-page-break:?>
    <?end for-each?>
    Or
    <?for-each:G_PO?>
    <?split-by-page-break:?>
    <?end for-each?>
    <?split-by-page-break:?>

  • How to print XML report in French Language?

    Hi,
    I need to print XML report in French language, currently it display in English language.
    I have used following steps:
    1. I enabled French language on my oracle apps instance.
    2. Created the concurrent program with output type as XML
    3. Created Data Definition using XML Publisher Responsibility
    4. Created template. At the time of creation of templete, enabled Translatable check box and click Apply
    5. Once template is uploaded, you will find two buttons. Export Translation and Upload Translation.
    6. Clickd on Export Translation. XLF file opened.
    7. In XLF file - e. g. source-language="en-US" target-language="fr-FR".Source is English and fr is for French language and FR is territory.
    8. Update the target fields in French language. In the below example source field is in English language and target is in French language. This indicates that wherever the Invoice Date is present in RTF template it will be
    replaced by the target field in french language.
    <source>Invoice Date:</source>
    <target>Date de facture:</target>
    9. Updated the same for all fields and finally import the updated translation file.
    10. But When i run report , output display in English not in French.
    Please any one can help, what should in do next to print in French Language.
    Thanks,
    Sunil Mane
    Edited by: 973411 on Nov 30, 2012 6:56 AM

    Are you selecting the Template at the time of Program submission?
    Check in the Options while submitting the Program

  • How can i call the xml report from oaf page

    Dear all
    i have oaf page in that page i need to call xml report from that oaf page
    how is posible.
    Regards
    Sreekanth

    refer this link http://apps2fusion.com/at/ps/260-integrating-xml-publisher-and-oa-framework
    --Prasanna                                                                                                                                                                                                                       

  • How to change XML Tag sequence in XML Publisher Reports

    Hi Experts,
    I am working on XML Publisher reports, EBS 11I and Database 9i. I have standard report 'PO Printed Purchase Order Report (XML)', it's output type is XML. I want to change the sequence of groups in XML file.
    I am getting XML tags like below at present:
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_HEADER_NOTES
    I want to change the sequence of groups like below.
    LIST_G_HEADERS \ G_HEADERS \ LIST_G_LINES \
    Could somebody help me how to change the sequence of XML Groups.
    Thanks in advance.

    Paul,
    This works.  Thanks!
    I am still working through the implications of having a data connection defined.  I notice that every time I submit, it creates two records in my database, one with all the fields blank, and one with the data and attachment.
    I will have to do some more digging into the double submission, but at least it is uploading the file.
    Thanks again,
    Ed

  • XML Report comes up as blank when a very large sequence is run

    Forum,
    We have multiple test sequences which me mix and match to do testing on different producst in our product line. We have no issues when we are working with small sequences ( small sequences : Which generate reports upto 12-50MB ). However when the sequences become large ( ~100-200 tests at one go , we get a blank report with the following text: 
    Begin Sequence:
    No Sequence Results Found
    We notice this typically for report sizes 60MB and more. Is there a limit to how much teststands result collection memory can store ? 
    My predominant report options 
    -- On the fly reporting disabled
    -- XML - expand.xsl selected
    The same set of settings do not make any difference for smaller reports, but give error for larger sequences - So I suspect its something to do with size of report being generated ! 

    I created a simple sequence file which had a 100 Pass/Fail steps using the None Adaptor. These 100 steps in the form of 10 SequenceCall steps each performed 10 Pass/Fail step was placed in a For loop in the MainSequence. The loop was set to run 1000 iterations. The ReportOptions were set for XML horizonal, On the Fly enabled.
    This I set running. Explorer was open at the folder where the result file was being stored. Two files were generated, the actual result file and a temporay file. I also had the Taskmanager open to monitor the performance.
    As the result file got larger, about 20MB, I noticed that the size of the file was first set to zero and the data was written to the file. (It seemed like the file was deleted and generated each step result time). I also noticed that as the file got larger and larger, the storing of the step results was having an effect on the performance of the Test Sequence execution.
    I left this running over night and sometime later the execution crashed. (see attached image). Before closing the dialog, I checked explorer to see what the state of the result file was. The both files was empty.
    I repeated the run but this time the number of iteration was set to 500, again the execution crashed but this time the result file did have some data, rather a lot of data, over 50MBs.
    I tried to open the file to check the contents but unfortunately my PC didn't seem to beable to handle a file of that size, as it was taking a long time to load, so I kill the process.
    I dont think changing the iterations from 100 to 500 had anything to do with the getting the results on the second. I just think the point were it crashed was slightly different allowing the result to be transferred back to the file.
    It would be interesting to find out whats going on the On the fly routine.
    It also seems that On the fly seems no better that normal reports generation.  It also seems pointless generating a very large file of results and that generating smaller files would be the better way to go. Using HTML or XML a top level report file could be used to link all the smaller files together.
    Regards
    Ray Farmer 
    Regards
    Ray Farmer

  • Need to create a report having 40 columns using XML Publisher

    Hi XML Report Gurus,
    I have a weird requirement. I need to create a XML Publisher Report having 40 columns. This report would be a CSV Report.
    How can i create a RTF(Template) in MS-Word having 40 columns ?? I just cannot accomodate the columns, they start wrapping down.
    Can i create a template in Excel and map the data columns to the Excel columns?
    I can create a Oracle PL/SQL package and generate the output, but I want to know if I can achieve the same thing using BI Reports.
    Appreciate your feedback
    Kiran Ramachandra
    [email protected] __.____._

    What I did, I had the column titles in the XML file as data, like
    <COL01>Employee Name</COL01>
    <COL02>Employee Number</COL02>
    etc.
    I did it this way because columns were variable, and up to the user to pick. If you have fixed set of columns, you still can include their names in the XML file, this way you will be able to display then as fields on the template.

  • Need to merge xml o/p from different sources to generate BIP Report from OA page

    Hi,
    Currently in our product Quoting , we are using many VO queries to generate the Report
    Now we have created one data template file to combine all VO queries to generate xml o/p
    The problem we are facing is that we didn't added Contracts VO query in our DT file so we need to merge
    xml o/p coming from DT file and Contracts VO and pass to Process Template XDO api to generate the report
    Please tell how to merge the xml o/p in OAF ?

    Thanks Shridhar for reply ,  you provided code for xml coming from two VO
    but I am having scenario where getting one xml o/p from data template file and seconf xml o/p getting from contracts api as -
    ByteArrayOutputStream l_docXML = new ByteArrayOutputStream(1024);
    // Here getting xml o/p from DT file
    l_docXML = (ByteArrayOutputStream)this.getDataTemplateXML(transaction,"ASO","ASOPD",parameters1,null);
    // Here getting xml o/p from contacts api
    ContractTermsXMLGenerator.writeXML(PrintQuote,
                        (OutputStream) l_conXML,
       true,
       documentType,
       new Number(params[8]),
       new Number("0"));
    // code to merge two xml into one xml m_docXML
    try{
                 if (l_conXML.size() > 0)
                      DOMParser dp = new DOMParser();
                      l_docIP = new ByteArrayInputStream(l_docXML.toByteArray()); 
                      dp.parse(l_docIP);
                      XMLDocument xDoc = dp.getDocument();
                      l_conIP = new ByteArrayInputStream(l_conXML.toByteArray());
                      dp.parse(l_conIP);
       XMLDocument cDoc = dp.getDocument();
       Node cNode = cDoc.getDocumentElement();
                      if (cNode != null)
                           Node xDocConNode = xDoc.adoptNode(cNode);
                           Node conData = xDoc.createElement("CONTRACT_DATA");
                           conData.appendChild(xDocConNode);
                           xDoc.getDocumentElement().appendChild(conData);
                         xDoc.print(m_docXML);
                         writeLog("GenerateCLMDoc::XMLMerge Complete");
               catch(Exception e)
           writeLog("GenerateCLMDoc:: Doc contract XML Merge - " + e.getMessage());
                      throw e;
        finally{
                        l_docIP.close();
                        l_conIP.close();
    Please check if it is correct code , do I need to change it with code provided by you
    can we chat over any messenger ?
    once again thanks for your reply

  • Built in viewer not displaying XML report

    we are working on a test system that was originally developed elsewhere, using TestStand 4.0. It is generating XML report files, but not using the default NI schema, instead using both it's own 'custom' schema and reportgen sequence file for the report formatting. When it was running in TS 4.0, it all appeared to operate correctly, i.e. once the execution had come to an end, the built in TS viewer showed the XML file formatted correctly as defined in the XSL file.
    For a variety of reasons, we have needed to upgrade to TS 4.2.1, and as a result, the built in report viewer no longer displays the XML report at teh end of an execution. Instead, it shows an error ...
    'The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/<file_path>/TempReport.xml'
    Looking in the <file_path>, there is a TempReport.xml file, which is empty, hence the error message, but there is also the correct xml file, with data in. Clicking on the 'Viewer' button in the built in report viewer kicks off IE, which correctly shows the saved report file, complete with the formatting as defined in the xsl file, so it would appear that the custom reportgen sequence is still doing it's job correctly, just that the built in viewer has a problem... (Incidentally, if you try to refresh the viewer, as suggested in the error message, it brings back the same error, but repetatively creates a new TempReport file, with a number appended...)
    I've traced through the sequence model (this is the default model) and the tempReport file is only created when the sequence model finishes, (In fact checking the value of the Locals.ReportFilePath variable right at the end of the sequence model shows the correct filename...) suggesting that it is not a sequence problem, but rather something built into TS? (I saw some comment on another forum entry suggesting that a temp file is created when using IE as an external viewer, to prevent a memory leak)
    Realistically this is not a major problem, but it has got to the level of annoying now, having to open an external viewer even though the built in one is loaded by default... I'm guessing that the built in viewer is just a simple browser? if so, why is it being passed the wrong file/creating an empty xml file. If I set the report back to standard xml, I see the report ok, but without the formatting.
    It seems odd that this breaks in TS 4.2.1 but works fine in 4.0, when TS is meant to be backwardsly compatible
    Any ideas would be gratefully received...

    Thanks for the suggestion Anand... As it turns out, you were very nearly right. It turned out that it wasn't actually the stylesheet path that was causing the error, but instead the original developers had over-ridden the use of the standard NI xml report handler sequence to use one of their own, by setting the ReportOptions.format to a different name from xml. In the Setup Reports Display sequence call (uses a sequence in the modelsupport.seq file) there was a pre-condition on the format name, and as it no longer contained just xml, the precondition failed, and the sequence call that sets up temporary paths etc. never ran. I added an additional precondition state, to check for either xml, or the format used in this case, and everything sprung back into action. I'm not sure whether something similar was done previously in TS 4.0...
    Is there a list of these known problems in TS 4.2.1? I did look around the NI site a bit before posting the initial question, and didn't see anything that seemed to detail this...
    Once again, thanks for your assistance

  • Incorrect UTF-8 encoded date in XML reports under German Win in March (IE error)

    TestStand XML reports are marked as UTF-8 encoded. But those reports generated under Win2k German in March (written as "März" in German) cannot be displayed in the Internet Explorer because the umlaut character of the month name is not correctly UTF-8 encoded.

    Hi
    I have attached the modified modelsupport2.dll and the ReportGen_Xml.seq which fixes the problem. I also attached the modified report.c and modelsupport2.fp files.
    If you have not made changes to modelsupport2.dll and reportgen_xml.seq you can add the modified files to \Components\User\Models\TestStandModels\ folder and the TestStand engine should use the version under the user folder.
    If you have made changes to ReportGen_Xml.seq and ModelSupport2.dll then you will need to move the changes in the below files to the files under the User folder.
    FYI: If you want to create a new component or customize a TestStand component, copy the component files from the NI subdirectory to the User subdirectory before customizin
    g. This ensures that installations of newer versions of TestStand do not overwrite your customization. If you copy the component files as the basis for creating a new component, be sure to rename the files so that your customization do not conflict with the default TestStand components.
    The TestStand Engine searches for sequences and code modules using the TestStand search directory path. The default search precedence places the \Components\User directory tree before the \Components\NI directory tree. This ensures that TestStand loads the sequences and code modules that you customize instead of loading the default TestStand versions of the files.
    I hope this helps.
    Regards
    Anand Jain
    National Instruments.
    Attachments:
    ModifiedFiles.zip ‏384 KB

  • TestStand 3.1 XML Reports in TS4.1

    I am trying to implement TestStand 4.1 in our facility as seamlessly as possible. This means I still need to run TS3.1 sequences with no modifications on both systems with TS3.1 and with TS4.1.
    My problem is with the creation of xml documents when run in TS4.1. When we first implemented xml it was on TS2.0 which didn't support xml at the time. So some patch was downloaded from NI I believe and it worked fine. We continued to use the patch when we switch to TS3.1. But when I now run the TS3.1 sequences in TS4.1 the reports are generated, but slightly differently, I cannot view the xml document in I.E. The error is:
    "Required white space was missing. Error processing resource"
    and the offending line(s) in the report are:   <ATMLStylesheetMRU type=" dimensions="[0..2]" decimateBy="0">
      <Element type="" index="[0]" name="ATMLStylesheetMRU" >trml.xsl</Element>
      <Element type="" index="[1]" name="ATMLStylesheetMRU" ></Element>
      <Element type="" index="[2]" name="ATMLStylesheetMRU" ></Element>
      </ATMLStylesheetMRU> 
    These lines do not appear in the report if the sequence is run with TS3.1. 
    I modified the TS3.1 Process model and ReportGen_XMLseq to use the original "modelsupport.dll" from TestStand 3.1 since the TS4.1 version didn't support some of the commands called. I also changed the report.xsl and horizonal.xsl called from the process model to the TestStand 4.1 versions, but the problem is still there. 
    I admit to not knowing exactly how the reports are generated, but I suspect the above lines are there because the API calls are to the TS4.1 engine as it is the active TestStand version. Looking for any sort of help on this one, not that well versed in xml. Am I trying to do the impossible? I don't want to switch the reports to the TS4.1 format at this time, as we have custom software that imports the data and it currently doesn't work with the TS4.1 report format.
    Thanks 

    Cabman,
    In TS 3.5 we added a new type of report called ATML. The
    offending lines in the report that you are refering to, is to store
    stylesheet information for this new report format.
    But adding these new properties to ReportOptions should not cause the issues you are describing. 
    I
    did notice that the text you pasted is not exactly what we generate in
    TS 4.1.Here is why we generate in TS 4.1 for xml reports
        <Prop Name='ATMLStylesheetMRU' Type='Array' LBound='[0]' HBound='[2]' ElementType='String' Flags='0x0'>
            <Value ID='[0]'>trml.xsl</Value>
            <Value ID='[1]'></Value>
            <Value ID='[2]'></Value>
        </Prop>
    In
    the text you pasted, I noticed that type attribute is empty in all 4
    lines and also the generated XML snippet looks different.
    I am not sure how your XML report was generated,  but that might be the issue. 
    In TS 3.0, we introduced a new API called PropertyObject.GetXML which can be used to generate an XML report. 
    To help diagnose the problem I have a couple of questions. 
    1. Do you still use your TS 2.0 process models or are you using TS 4.1's process models?
    2.
    Can you give me more details of how does the XML report get generated
    in your system? Are you using the 2.0 XML report generation mechaism or
    did you move to using TS 4.1's XML report generator?
    Regards
    Anand JainNational Instruments

  • Teststand, modifying xml report header

    1) How do I add a station gloabl variable to the XML report header? I am using standard expand.xsl.
    2) Does the example on this page work to change the displaying execution time in HH:MMS format? I am not seeing the expected resutls.
    http://zone.ni.com/reference/en-XX/help/370052H-01​/tssuppref/infotopics/changing_time_display/
    Thanks,
    -TC

    Hi,
    Here are the answers to your queries assuming you are using teststand 4.2 or above:
    1. Report header modification in expand.xsl is mentioned in the following link: http://zone.ni.com/devzone/cda/epd/p/id/4759
        In this explanation, the text which is getting display after the report generation can be replaced by a variable(local or global) in the "Modifyreportheader" callback.
    2. The display execution does work as explained by NI in the link provided.
    If you want the example for the above two queries please find the attached files and explaination given below.
    In the sequence file, in "ModifyReportheader" callback, the first statement includes "   Locals.newstring=" <Prop Name='New_Text' Type='String' Flags='0x0'><Value>"+Locals.message+"</Value> </Prop>
    where "locals.message" can be replaced by global variable.
    and you need to place the "expand.xsl" in stylesheets folder. Please rename the existing "expand.xsl" and place the new one.
    Hope this helps.
    Regards, 
    Surya.
    Attachments:
    Reportheader.zip ‏25 KB

  • Database filling from XML report of TS3

    Does NI have a tool to fill-up an Oracle database from a XML report of TS3? The idea is to fill up the database during the night.

    I can't answer your question about NI having a tool, but we are facing a similar problem so I will share some of our ideas.
    1. You could write your own XML parser that would read the file and load it into the database. Since it is a standard format, you should be able to find software that will make the parsing relatively easy.
    2. You could load the file directly into an Oracle 9i database, passing it as a LOB parameter. You would need to write the code for loading the file (examples can be found on the internet) and you would probably need an Oracle expert to implement the XML parsing on the database side.
    3. You could save the results container as a file, then later load the file into TestStand and use the standard database logging sequence. We tried a
    dding the results container to StationGlobals, but have had problems saving all the data to disk.
    4. You could modify the text report so that it creates the SQL statements required to enter your data into the database. Then the file can be loaded into the database as "dynamic SQL".
    5. You could log the data to a local database, then later load it into the main database, as suggested by Dennis (http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=506500000008000000E13B0000&UCATEGORY_0=_8_&UCATEGORY_S=0).

Maybe you are looking for