Loop through the collection of elements and give 15 elements in each iteration.

For example I have 100 pnr numers and i need 15 set of pnrs each time i iterate through the 100 pnrs using XQUERY.
I have to hit a service to get PNR details , I have 100 PNR's but I can hit only with 15 at a time

Hello,
Did the issue resolved? Just as Visakh16 post above, it is hard to interpret without the sample data. Please post more details for further analysis.
You can refer to the following article about FLWOR Statement and Iteration in XQuery:
http://technet.microsoft.com/en-us/library/ms190945.aspx
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support

Similar Messages

  • Looping Over the Collection elements in the BPEL

    Hi Everybody,
    Note:It appears this thread long paragraph but those are schems structures only.I am giving them to give full depth of my req.
    1) First requirement :I have requirement wherein I have to retrieve the Data from Database adapter and modify it according to my requirements like below.
    1) Input data from Database Adapter example: (Initial Schema)
    <select_arrid_collection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/Select_Arrid">
    <select_arrid>
    <arr_id>arr1</arr_id>
    </select_arrid>
    <select_arrid>
    <arr_id>arr2</arr_id>
    </select_arrid>
    <select_arrid>
    <arr_id>arr1</arr_id>
    </select_arrid>
    <select_arrid>
    <arr_id>arr2</arr_id>
    </select_arrid>
    </select_arrid_collection>
    2) I am modifying to get the collection objects based on element same arr_id(If it is arr1,I have to get the all the elements related arr1 into one of the collection Object that is select_arrid_collection.Likewise for any arr_id ,it has to group them into a select_arrid_collection element) like below:
    Modified schema:
    <root xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/Select_Arrid">
    <select_arrid_collection>
    <select_arrid>
    <arr_id>arr1</arr_id>
    </select_arrid>
    <select_arrid>
    <arr_id>arr1</arr_id>
    </select_arrid>
    </select_arrid_collection>
    <select_arrid_collection>
    <select_arrid>
    <arr_id>arr2</arr_id>
    </select_arrid>
    <select_arrid>
    <arr_id>arr2</arr_id>
    </select_arrid>
    </select_arrid_collection>
    </root>
    Note: root element is added in the schema that is why this modified xml has different namespace
    I am using below xsl file to get the above schema to get the solution for first requirement:
    <xsl:stylesheet version="2.0" xmlns:ns1="http://www.example.org" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <ns1:root>
    <xsl:for-each-group select="*/ns1:Select_Arrid" group-by="ns1:Arr_id">
    <xsl:sort select="current-grouping-key()">
    <ns1:select_arrid_collection>
    <xsl:copy-of select="current-group()">
    <xsl:apply-templates/>
    </xsl:copy-of>
    </ns1:select_arrid_collection>
    </xsl:sort>
    </xsl:for-each-group>
    </ns1:root>
    </xsl:template>
    </xsl:stylesheet>
    2) Second requirement:
    After getting the multiple collection elements(select_arrid_collection),I want to loop through each select_arrid_collection element and map the elements in that to another service schema.
    I have created the xsd like above required modified schema and assign it to a variable(element type) which takes same modified schema so that I can have a variable on which I want to apply while activity.
    But I want to have the idea how to loop through the multiple collection elements(select_arrid_collection) and map the elements of each select_arrid_collection to a input variable of a service.
    My problem is I have to get each select_arrid_collection element in the schema where root element is 'root'.I am not able to trace how to get the no of select_arrid_collection elements so that I can loop through in the transofrm activity.
    Can anybody help me put in this?
    Edited by: 899283 on Jan 9, 2013 1:48 AM
    Edited by: 899283 on Jan 9, 2013 1:52 AM
    Edited by: 899283 on Jan 9, 2013 1:53 AM
    Edited by: 899283 on Jan 9, 2013 2:02 AM

    Can you please let us know if there are some helpful/correct answers in your previous questions and follow the forum etiquette? https://forums.oracle.com/forums/ann.jspa?annID=893
    Where Can I create Staging table in SOA server?
    regarding sending response at a time to a WSDL in BPEL
    Do we need nodemanager for SOA server installation?
    I want to set the time for polling of  DB Adapter

  • Powershell - Daily disk and folder usage; trouble with code to loop through the individual folders

    Hi,
    I'm very new to Powershell but through the help of this forum and the help on the internet I have scraped together a script that will loop through the disks of a set of servers listed in a text document, and give the capacity statistics in html
    format.
    I have two questions. I've tried modifying this to also loop though the individual folders on each disk and give the amount of space used to no avail. does any one have any suggestions?
    Secondly, how do I get this to append? all I want to do is set up a scheduled task that runs this report daily. I know I will need to add a date column, but I just want the data to append to the previous set of results.
    Thanks for any advice in advance.
    # Continue even if there are errors
    $ErrorActionPreference = "Continue";
    # Set your warning and critical thresholds
    $percentWarning = 100;
    $percentCritcal = 15;
    # REPORT PROPERTIES
    # Path to the report
    $reportPath = "C:\";
    # Report name
    $reportName = "DiskSpaceReport_$(get-date -format ddMMyyyy).html";
    # Path and Report name together
    $diskReport = $reportPath + $reportName
    #Set colors for table cell backgrounds
    $redColor = "#FF0000"
    $orangeColor = "#FBB917"
    $whiteColor = "#FFFFFF"
    # Count if any computers have low disk space. Do not send report if less than 1.
    $i = 0;
    # Get computer list to check disk space
    $computers = Get-Content "C:\serverlist.txt";
    $datetime = Get-Date -Format "dd-MM-yyyy_HHmmss";
    # Create and write HTML Header of report
    $titleDate = get-date -uformat "%d-%m-%Y - %A"
    $header = "
    <html>
    <head>
    <meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'>
    <title>DiskSpace Report</title>
    <STYLE TYPE='text/css'>
    <!--
    td {
    font-family: Calibri;
    font-size: 12px;
    border-top: 1px solid #999999;
    border-right: 1px solid #999999;
    border-bottom: 1px solid #999999;
    border-left: 1px solid #999999;
    padding-top: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    body {
    margin-left: 5px;
    margin-top: 5px;
    margin-right: 0px;
    margin-bottom: 10px;
    table {
    border: thin solid #000000;
    -->
    </style>
    </head>
    <body>
    <table width='100%'>
    <tr bgcolor='#0B6121'>
    <td colspan='7' height='30' align='center'>
    <font face='calibri' color='#E0F8F7' size='4'><strong>Daily Disk Utilization Report for $titledate</strong></font>
    </td>
    </tr>
    </table>
    Add-Content $diskReport $header
    # Create and write Table header for report
    $tableHeader = "
    <table width='100%'><tbody>
    <tr bgcolor=#E0F8F7>
    <td width='10%' align='center'>Server</td>
    <td width='5%' align='center'>Drive</td>
    <td width='15%' align='center'>Drive Label</td>
    <td width='10%' align='center'>Total Capacity(GB)</td>
    <td width='10%' align='center'>Used Capacity(GB)</td>
    <td width='10%' align='center'>Free Space(GB)</td>
    <td width='5%' align='center'>Freespace %</td>
    <td width='5%' align='center'>RAM %</td>
    <td width='5%' align='center'>CPU %</td>
    </tr>
    Add-Content $diskReport $tableHeader
    # Start processing disk space
    foreach($computer in $computers)
    $disks = Get-WmiObject -ComputerName $computer -Class Win32_LogicalDisk -Filter #"DriveType = 3"
    $computer = $computer.toupper()
    foreach($disk in $disks)
    $deviceID = $disk.DeviceID;
    $volName = $disk.VolumeName;
    [float]$size = $disk.Size;
    [float]$freespace = $disk.FreeSpace;
    $percentFree = [Math]::Round(($freespace / $size) * 100);
    $sizeGB = [Math]::Round($size / 1073741824, 2);
    $freeSpaceGB = [Math]::Round($freespace / 1073741824, 2);
    $usedSpaceGB = $sizeGB - $freeSpaceGB;
    $color = $whiteColor;
    # Start processing RAM
    $RAM = Get-WmiObject -ComputerName $computer -Class Win32_OperatingSystem
    $RAMtotal = $RAM.TotalVisibleMemorySize;
    $RAMAvail = $RAM.FreePhysicalMemory;
    $RAMpercent = [Math]::Round(($RAMavail / $RAMTotal) * 100);
    # Set background color to Orange if just a warning
    if($percentFree -lt $percentWarning)
    $color = $orangeColor
    # Set background color to Orange if space is Critical
    if($percentFree -lt $percentCritcal)
    $color = $redColor
    # Create table data rows
    $dataRow = "
    <tr>
    <td width='10%'>$computer</td>
    <td width='5%' align='center'>$deviceID</td>
    <td width='10%' >$volName</td>
    <td width='10%' align='center'>$sizeGB</td>
    <td width='10%' align='center'>$usedSpaceGB</td>
    <td width='10%' align='center'>$freeSpaceGB</td>
    <td width='5%' bgcolor=`'$color`' align='center'>$percentFree</td>
    <td width='5%' align='center'>$RAMpercent</td>
    <td width='5%' align='center'>$CPUpercent</td>
    </tr>
    Add-Content $diskReport $dataRow;
    Write-Host -ForegroundColor DarkYellow "$computer $deviceID percentage free space = $percentFree";
    $i++
    # Create table at end of report showing legend of colors for the critical and warning
    $tableDescription = "
    </table><br><table width='20%'>
    <tr bgcolor='White'>
    <td width='10%' align='center' bgcolor='#FBB917'>No Warning</td>
    <td width='10%' align='center' bgcolor='#FF0000'>Critical less than 10% free space</td>
    </tr>
    Add-Content $diskReport $tableDescription
    Add-Content $diskReport "</body></html>"

    The only easy way to create a report like this that accumulates is to design it so the data is output to a CSV file or a database.  YOu can then generate the HTML from the persist6ed data.
    If you store as XML you can use XSLT (transform) to convert to an HTML report.
    I also recommend uing Excel as an HTML report generator.  It is much easier and more flexible.  PowerShell is not intended to do what you want without designing a whole custom reporting system.
    Use the right tool for the right task.
    Just because you own a hammer does not mean that the solution to every problem includes a nail.
    ¯\_(ツ)_/¯

  • Can you loop through a collection of entites to read a given attribute?

    I got an entity called <b>the applicant</b>. and this entity has an attribute called <b>the full name of the applicant</b>.
    I want to go through the collection of <b>the applicants</b> and get the <b>full name</b> for each applicant and assign it to a text variable with comma seperated. Is it possible to do this in OPA?
    this is what i want to do
    <b>"the names" </b>is the variable that I want to store the list of names
    read the collection of applicants
    the names = the concatenation of the names & " " & the full name of the applicant & ","
    end
    so it will give me an output like <b>James Blunt, David Brown, Julia Guilard</b>
    Edited by: Davin Fifield on Oct 16, 2011 10:57 PM - removed inappropriate "moderation" edit

    Wow harsh moderation there by rukbat! I don't know who he/she is but I apologise and assure you most people on this forum are not so mean.
    To answer your question, there's no built-in way to do what you want. Normally displaying something like this would be considered an application problem rather than a rule-level problem, however if you really want it done in a rule, you could do it with a custom function.

  • Script code sample for looping  through the records from xml data file in formCalc script

    Hi
       I have a xml data file which contains a sequence of repeating applicant data like given below
                       US
                       II
                       CEO
                       Mr
                       111111111
                       0000000111
                       GuarantorA
                       111
                       IN
                       11111
                       WILLIAMS1
                       R3
                       KENNETH1
                       City1GU
                       PA
                       1934-03-14
                       [email protected]
                       GU
                       R
                       113 Lazlo LaneCA
                       Suite 3500CA
                       OaklandCA
                       TX
                       11345
                       AL
    I want to assign a textfield with a value based on the value of coap_flag.
    So i need to loop through all the record and check the value of coap_flag and then assign the textfield a value based on that.
    I am new to Adobe livecycle...Please help me how it can be done.
    I have developed something like this
    foreach Item in ($record.applicant[*].coap_flag) do
    test.value=Item
    if(test.value=="MA")then
    concat($record.applicant.first_name,$record.applicant.middle_name)endif
    endfor

    Using the data you posted in the forum, I copied it a couple of times to give multiple records and used this code to extract the different values that you wanted. I had to wrap it in a <root> node that I called root (to make it valid XML). In my case I wrote the extracted values to a field, but in your case you can do whatever you want with them. Note that this was done in javascript:<br /><br />var currentElement;<br />var obj;<br /><br />//Get the nodes below the root node in the dataDom<br />obj = xfa.datasets.data.root.nodes;<br /><br />//Set an initial value for the textField<br />TextField1.rawValue = "The values of the coap_flag are: ";<br /><br />//Loop through the nodes in the obj set <br />for (i=0; i< obj.length ; i++){<br />     //set the currentElement to the 1st child node<br />     currentElement = obj.item(i);<br />     //Check to see if it is an applicant node<br />     if (currentElement.name == "applicant"){<br />          //It is an applican, now find the coap_flag node value and write it to the text field<br />          TextField1.rawValue += "\n" + xfa.resolveNode("xfa.datasets.data.root.applicant[" + i + "]").coap_flag.value;<br />     }<br />}

  • Loop through the records from xml data file in formCalc script

    Hi
       I have a xml data file which contains a sequence of repeating  applicant data like given below
                               US
                                II
                                CEO
                                Mr
                                111111111
                                0000000111
                                GuarantorA
                                111
                                IN
                                11111
                                WILLIAMS1
                                R3
                                KENNETH1
                                City1GU
                                PA
                                1934-03-14
                                [email protected]
                                GU
                                R
                                     113 Lazlo LaneCA
                                     Suite 3500CA
                                     OaklandCA
                                     TX
                                     11345
                                     AL
    I want to assign a textfield with a value based on the value of coap_flag.
    So i need to loop through all the record and check the value of coap_flag and then assign the textfield a value based on that.
    I am new to Adobe livecycle...Please help me how it can be done.
    I have developed something like this
    foreach Item in ($record.applicant[*].coap_flag) do
    test.value=Item
    if(test.value=="MA")then
    concat($record.applicant.first_name,$record.applicant.middle_name)endif
    endfor

    Using the data you posted in the forum, I copied it a couple of times to give multiple records and used this code to extract the different values that you wanted. I had to wrap it in a <root> node that I called root (to make it valid XML). In my case I wrote the extracted values to a field, but in your case you can do whatever you want with them. Note that this was done in javascript:<br /><br />var currentElement;<br />var obj;<br /><br />//Get the nodes below the root node in the dataDom<br />obj = xfa.datasets.data.root.nodes;<br /><br />//Set an initial value for the textField<br />TextField1.rawValue = "The values of the coap_flag are: ";<br /><br />//Loop through the nodes in the obj set <br />for (i=0; i< obj.length ; i++){<br />     //set the currentElement to the 1st child node<br />     currentElement = obj.item(i);<br />     //Check to see if it is an applicant node<br />     if (currentElement.name == "applicant"){<br />          //It is an applican, now find the coap_flag node value and write it to the text field<br />          TextField1.rawValue += "\n" + xfa.resolveNode("xfa.datasets.data.root.applicant[" + i + "]").coap_flag.value;<br />     }<br />}

  • What is the Collection that returns and removes the Object simultaneously

    Hi Java Experts,
    I believe I'm looking for a Collection that will allow me to (a.) return an object and (b.) remove the object from the collection simultaneously (c) without having to specify the index location of the object. Very similar to what you can do when you enumerate through a Properties Object.
    Here is a description of why I think this is the solution that I want. - Perhaps some Design Pattern Experts can help.
    I am making an application that is supposed to loop continuously through a collection while adding more information to the collection (example: in a while(collection.size()>0){ take some action })
    The action taken inside the while loop would add more items to the collection. I'm hoping that fact would be picked up by collection.size()>0 and cause the iteration to continue.
    I am doing this solution within one thread and class. But I'm also going to let this thread feed another Class (A controller thread) with different items which are added to It's collection for it's own loop. That solution will have to handle multiple threads feeding information to it's solution.
    Here is example code below of how i'm proposing this would work in a single threaded class.
    thanks for all the help
    * DESCRIPTION: I want to loop through a collection infinitely by
    * making the thread continually add to the collection.
    import java.util.*;
    public class TESTSOLUTION implements Runnable{
         public static void main(String[] arg){
              TESTSOLUTION tv = new TESTSOLUTION();
              Thread t = new Thread(tv);
              t.start();
              System.out.println("Finished Main");
         public TESTSOLUTION(){
              ACollectionType = new TreeSet();
              ACollectionType.add("BAT");
              ACollectionType.add("BALL");
              ACollectionType.add("MIT");
         public void run(){
              while(ACollectionType.size()>0){
                   //THIS IS WHERE I WANT TO BE ABLE TO REMOVE AN ITEM FROM THIS COLLECTION
                   //WITHOUT SPECIFYING THE index
                   //I just want to call a method and return the object and simultaneously
                   //remove to the object
                   outputString((String)ACollectionType.first());
                   counter++;
         private void outputString(String s ){
              try{
                   Thread.sleep(400);
              }catch(InterruptedException e){
                   System.out.println("interrupted");
                   System.out.println("s = " + s );
                   //I AM TRYING to add to the object and have the result picked up
                   // by (perhaps) the ACollectionType.size()>0 method and run the while
                   // loop infinitly
                   ACollectionType.add("TOY#"+counter);          
         private TreeSet ACollectionType = null;
         private int counter = 0 ;
    }

    woops here is what i mean --- i got this code to work -- you can run it for yourself .
    * DESCRIPTION: I want to loop through a collection infinitely by
    * making the thread continually add to the collection.
    import java.util.*;
    public class TESTSOLUTION implements Runnable{
         public static void main(String[] arg){
              TESTSOLUTION tv = new TESTSOLUTION();
              Thread t = new Thread(tv);
              t.start();
              System.out.println("Finished Main");
         public TESTSOLUTION(){
              ACollectionType = new TreeSet();
              ACollectionType.add("BAT");
              ACollectionType.add("BALL");
              ACollectionType.add("MIT");
         public void run(){
              while(ACollectionType.size()>0){
                   //THIS IS WHERE I WANT TO BE ABLE TO REMOVE AN ITEM FROM THIS COLLECTION
                   //WITHOUT SPECIFYING THE index
                   //I just want to call a method and return the object and simultaneously
                   //remove to the object
                   Object ss = ACollectionType.first();
                   outputString((String)ss);
                   ACollectionType.remove(ss);
                   counter++;
         private void outputString(String s ){
              try{
                   Thread.sleep(400);
              }catch(InterruptedException e){
                   System.out.println("interrupted");
                   System.out.println("s = " + s );
                   //I AM TRYING to add to the object and have the result picked up
                   // by (perhaps) the ACollectionType.size()>0 method and run the while
                   // loop infinitly
                   ACollectionType.add("TOY#"+counter);          
         private TreeSet ACollectionType = null;
         private int counter = 0 ;
    }

  • I am receiving the data through the rs232 in labview and i have to store the data in to the word file only if there is a change in the data and we have to scan the data continuasly how can i do that.

    i am receiving the data through the rs232 in labview and i have to store the data in to the word or text file only if there is a change in the data. I have to scan the data continuasly. how can i do that. I was able to store the data into the text or word file but could not be able to do it.  I am gettting the data from rs232 interms of 0 or 1.  and i have to print it only if thereis a change in data from 0 to 1. if i use if-loop , each as much time there is 0 or 1 is there that much time the data gets printed. i dont know how to do this program please help me if anybody knows the answer

    I have attatched the vi.  Here in this it receives the data from rs232 as string and converted into binery. and indicated in led also normally if the data 1 comes then the led's will be off.  suppose if 0 comes the corresponding data status is wrtten into the text file.  But here the problem is the same data will be printed many number of times.  so i have to make it like if there is a transition from 1 to o then only print it once.  how to do it.  I am doing this from few weeks please reply if you know the answer immediatly
    thanking you 
    Attachments:
    MOTORTESTJIG.vi ‏729 KB

  • LOOPING THROUGH THE BLOCK

    Can anybody help me with an example or materail which explains how can we loop through a block in Forms 6i?
    Also how we can loop through the details block pertaining to the master block and process those records also?
    Thanks

    The quickest way to do something is not to do it at all, and this looks like a good example of where you don't need to do anything - what I suspect you really need is a better design for your schema. What are you updating that requires an update on all child records and cannot simply be referenced when you query a child record?
    If you can't change the schema and you have millions of records to update then your best bet is to use sql, then try pl/sql if sql can't do the job. Only try forms if you absolutely have to, and expect it to run like a brick.
    In forms (assuming you're using relationships):
    go to each block, do first_record and process each record.
    go to the lowest child block and loop through the records using next_record until "system.last_record = 'TRUE'", processing each record as you go.
    go to the next block up, do next_record and process that record.
    go back to the lowest child block and loop though it, processing each record.
    when you have reached the last record in the penultimate child block then go to its immediate parent block, do next_record and process that record.
    go to the lowest child block etc etc etc
    There are a lot of things which you can do in forms but which belong on the database!

  • Does anyone know a way to programatically loop through the items in the document library

    A lot of the funcations like deleteSymbol and updateSymbol depend on which items are "selected" in the library panel.
    Is there a way to programatically access these selections?
    or
    Loop through the library?
    or
    Set selections?

    Yup, I've asked for an API to access the selection in those panels for years, to no avail.
    Note that you can loop through layers, frames and pages, but you can't tell what the user has selected in the actual panel UI.  Also, you can't find out which symbols are currently used in the document.  Nor can you programmatically insert a rich symbol into the document and have it maintain its "richness".

  • Multi-record block (how do I loop through the block)

    I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
    reports that they want to run. When they click on <NEXT> button, I create a multi-record
    control block and display each record on the second screen using
    go_block;
    clear_block;
    move data;
    create_record;
    The user then selects on the second canvas which reports to run now and which to run later via
    a LOV. When they press the <RUN> button, I want to start at the first record and either run the
    report or schedule it. Then I want to move onto the second and the third until all selected reports
    have been handled. I know I should use a loop but can't seem to make it work.
    So my question is, How do I loop through the records in a multi-record control block, pass the information
    for that one record to a parameter form and then execute the request? Each control block record contains
    10 parameter fields.
    Thanks.
    Bob

    go_record(1);
    << do your processing >> -- This is executed only for the first record.
    if :system.last_record = 'TRUE' then -- If the 1st record is also the last record.
    RETURN;
    end if;
    LOOP
    next_record;
    << do your processing >>
    if :system.last_record = 'TRUE' then
    EXIT;
    end if;
    END LOOP;
    I created a two canvas form. On the first canvas, the user enters data and selects 1 - 30
    reports that they want to run. When they click on <NEXT> button, I create a multi-record
    control block and display each record on the second screen using
    go_block;
    clear_block;
    move data;
    create_record;
    The user then selects on the second canvas which reports to run now and which to run later via
    a LOV. When they press the <RUN> button, I want to start at the first record and either run the
    report or schedule it. Then I want to move onto the second and the third until all selected reports
    have been handled. I know I should use a loop but can't seem to make it work.
    So my question is, How do I loop through the records in a multi-record control block, pass the information
    for that one record to a parameter form and then execute the request? Each control block record contains
    10 parameter fields.
    Thanks.
    Bob

  • JDev 10.1.3.4: How to properly loop through the rows of a VO?

    Hi,
    This is a newbie question. Using JDeveloper 10.1.3.4 I am trying to loop through the rows of a view object. I am sure that the VO returns the following rows in that order:
    200809
    200902
    200906If I use this code (where termsOpen is the VO instance):
    while (termsOpen.hasNext()) {
       System.out.println(termsOpen.getCurrentRow().getAttribute("Term"));
    }it proves to be an endless loop and I get "200809" printed on the console endlessly. The API says that hasNext() "does not move the current row". A book says that the pointer initially is at row 0. I wonder why it prints the first row. So the code is changed to:
    while (termsOpen.hasNext()) {
       Row currRow = termsOpen.next();
       System.out.println(currRow.getAttribute("Term"));
    }But now I get only the last two rows printed on the console, and do not get to see the first row:
    200902
    200906What's wrong?
    Thanks for helping!
    Newman

    Hi, Branislav,
    Thank you for the suggestion.
    I tried that also. When the code is
    while (termsOpen.hasNext()) {
       System.out.println(termsOpen.getCurrentRow().getAttribute("Term"));
       termsOpen.next();
    }I get only the first two rows and last row is dropped:
    200809
    200902To get all the three row, I end up using this code:
    System.out.println(termsOpen.first().getAttribute("Term"));
    while (termsOpen.hasNext()) {
       Row currRow = termsOpen.next();
       System.out.println(currRow.getAttribute("Term"));
    }But that shouldn't be the way of doing the work. If I use a block of 50 lines of code to process each row, the code will have to be written once before the while loop and another time inside the while loop.
    The book which says that the pointer starts at the row slot before the first row is found on the internet, on p.469. It makes sense to me that the pointer starts at row 0. But unfortunately the actual copy of JDev 10.1.3.4 I am using behaves otherwise.
    Newman

  • Looping through the resultset

    Post Author: Swapna
    CA Forum: Formula
    Hi
      I need to loop through the result set how would i do that here is my scenario
    in the database i have total 10 columns say an example
    a,b,c,d,e,f,g,h,i,j,k and assume i have 100 rows with allthese values in the database now for these 100 rows i have to calculate the summary of those columns and i have written formula something like this but it was not working it was giving me zero dont know plz advise on this
    whileprintingrecords;
    numbervar totalsum;
    totalsum=totalsum((a-b)/100cdefghi-j-k);
    and i want to display this sum in my detail section of report how would i do that
    I Appreciate your help.

    Post Author: SKodidine
    CA Forum: Formula
    Try this and see if you get any results.
    totalsum=totalsum((a-b)/100cdefghi-j-k);
    totalsum := totalsum((a-b)/100cdefghi-j-k);

  • How to get the values of all elements and sub elements from  following xml

    how to get the values of all elements and sub elements from following xml...
    <?xml version="1.0" encoding="UTF-8" ?>
    <List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
    <TransactionID>TransactionID</TransactionID>
    <Match>
    <Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
    <List_Matched_Field>
    <FSFM_Matches>
    <NUMBER>NUMBER</NUMBER>
    <TERROR>TERROR</TERROR>
    <TU>TU</TU>
    <NAMEU>NAMEU</NAMEU>
    <DESCRIPT>DESCRIPT</DESCRIPT>
    <KODCR>KODCR</KODCR>
    <KODCN>KODCN</KODCN>
    <AMR>AMR</AMR>
    <ADDRESS>ADDRESS</ADDRESS>
    <SD>SD</SD>
    <RG>RG</RG>
    <ND>ND</ND>
    <VD>VD</VD>
    <GR>GR</GR>
    <YR>YR</YR>
    <MR>MR</MR>
    <CB_DATE>CB_DATE</CB_DATE>
    <CE_DATE>CE_DATE</CE_DATE>
    <DIRECTOR>DIRECTOR</DIRECTOR>
    <FOUNDER>FOUNDER</FOUNDER>
    <TERRTYPE>TERRTYPE</TERRTYPE>
    </FSFM_Matches>
    <OfacMatchDetails>
    <UID>UID</UID>
    <TITLE>TITLE</TITLE>
    <SDNTYPE>SDNTYPE</SDNTYPE>
    <REMARKS>REMARKS</REMARKS>
    <ID_UID>ID_UID</ID_UID>
    <IDTYPE>IDTYPE</IDTYPE>
    <IDNUMBER>IDNUMBER</IDNUMBER>
    <IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
    <ISSUEDATE>ISSUEDATE</ISSUEDATE>
    <EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
    <ADDRESS1>ADDRESS1</ADDRESS1>
    <ADDRESS2>ADDRESS2</ADDRESS2>
    <ADDRESS3>ADDRESS3</ADDRESS3>
    <CITY>CITY</CITY>
    <STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
    <POSTALCODE>POSTALCODE</POSTALCODE>
    <COUNTRY>COUNTRY</COUNTRY>
    </OfacMatchDetails>
    </List_Matched_Field>
    </Match>
    </List_AML_Finacle>

    avoid multi post
    http://forum.java.sun.com/thread.jspa?threadID=5249519

  • I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted!

    I tried to install yosemite yesterday and my computer goes through the whole installation process and then to a blank white screen.  I've rebooted, I've reinstalled several times and get the same result.  Two days wasted and I can't use my computer!!

    I don't know if you've already resolved your problem, but I had the same thing, it took me 6 hours to fix it. I had the exact same as you, installed the update and then it went to a white screen. After trying start up holding down cmmd r or holding down the alt key to try to install it again, nothing worked, same result every time. Then an angel came to me here somewhere but I can't find it now to thank him. Start in safe mode, press shift once you hear the start up chime and hold it down until you hear it again. Installation completion box came up and it was working. turn off computer and start up again normally and all is well. Except my final cut pro x doesn't work with it, have to update that now too. same as when I updated to mavericks.
    Hope this helps.

Maybe you are looking for

  • Problem with date conversion

    I have read some topics about it, but still have problem :-((( When I insert data, I don't have any problem with a date. It looks like this:      Statement stmt = con.createStatement();           stmt.executeUpdate("BEGIN " +                     "INS

  • Will final cut x 10.1 work on a new mac mini?

    Does anyone know if the newst verssion of final cut will work on the newest mac mini?

  • Calling EJB causes error in CF Administrator

    Hello, I just moved from CFMX 6.1 Enterprise to 7 Standard and now I'm having trouble when I invoke an EJB. The EJB returns the information successfully, but then when I try to access the CF Administrator, the following error is shown: Security: The

  • CPU Usage % While Editing Video

    We get quite a few questions on why CPU usage is below 100% in some operations. This applies to both PrE and PrPro. Here is a THREAD (on PrPro, so there are some Pro-specific comments involved in the thread), and Harm Millaard has distilled the possi

  • Dbms_xslprocessor return node copy

    Recently I converted my code from sys.xmldom and sys.xslprocessor packages to xdb.dbms_xmldom and xdb.dbms_xslprocessor packages. And what supprised me is that dbms_xslprocessor.selectSingleNode() returns a copy of the selected node not a reference.