How to Loop thru a Queue?

I have a Queue that I can add and remove items from, but I need to display all the contents currently in the Queue.
How would I loop thru the Queue and do this?
Any simple example will do.
Thanks!

Thanks for the link. It showed me which methods an Iterator has, but not practical way to use it. So I did some googling and found this example.
import java.util.Iterator;
import java.util.NoSuchElementException;
for ( Iterator iter = myList.iterator(); iter.hasNext(); )
   String key = (String) iter.next();
   System.out.println( key );
   }Which makes perfect sense. However, where it says Iterator iter = myList.iterator(); I am not sure what to put in the myList.iterator(); part.
I would assume that my Queue object would be used there, however, my Queue object has no .iterator() method.
Like I said, I am new to Java so this is not as easy to me as it seems it should be.
But there is all of my code if it helps.....I'll leave out the unimportant parts.
Queenode class........................................
public class QueueNode {
//fields
Object info;
QueueNode link;
    public QueueNode() {
    public QueueNode(Object item) {
    info=item;
    link=null;
    public QueueNode(Object item, QueueNode qn) {
        info=item;
        link=qn;
}//end classQueue class..............................................
public class Queue {
   //create a front and back node
   private QueueNode front;
   private QueueNode rear;
   private int size;
   //methods
   public void insert(Object item){
      //if queue is empty front and rear are same
      if(isEmpty()){
          rear=new QueueNode(item);
          front = rear;
      }//end if
      //otherwise queue not empty add top end
      else{
          rear.link= new QueueNode(item);
          rear=rear.link;
      }//end else
      ///either case incriment size
      size++;
   }//end insert
   public Object remove(){
       //create a temp node referencing the front
       QueueNode oldFront=front;
       //peek at front item
       Object item = peek();
       //make front to link with the next node
       front=front.link;
       //remove temp node
       oldFront=null;
       //decrement size
       size--;
       //return the item that was removed
       return item;
   }//remove
   public Object peek(){
       if(isEmpty()){
           throw new NullPointerException();
       }//end if
       else{
           return front.info;
       }//and else
   }//end peek
   public boolean isEmpty(){
       return(size==0);
   }//end isEmpty
   public int getSize(){
       return size;
   }//end getsize
}//end classAnd finaly my class to test that the Queue is working....................
import javax.swing.*;
import javax.swing.border.BevelBorder;
import java.awt.*;
import java.awt.event.*;
import java.util.Iterator;
import java.util.NoSuchElementException;
public class QueueTest extends JFrame implements ActionListener{
    //Create Queue object
    Queue q = new Queue();
   public QueueTest(){
        //Add title to window
        super("Testing Queue's");
     }//end constructor
    public void actionPerformed(ActionEvent event){
        if (event.getSource()==btnAddQueueItem){
            q.insert(txtAddQueueItem.getText());
            for(Iterator iter = q.?????; iter.hasNext();){
                ///Output each queue item here........
            }//end for
        }//end if
         if (event.getSource()==btnRemoveQueueItem){
             q.remove();
         }//end if
    }//end actionPerformed
    public static void main(String[] args) {
    QueueTest testQueue = new QueueTest();
    }//end main
}//end class

Similar Messages

  • How to Loop thru a RFC model

    how to Loop thru the RFC model
    for(int i=0;i<wdContext.nodeEx_Org_Units().size();i++){
    //how to get the attribute each and every columns
      //mgr.reportSuccess("id" +nodeEx_Org_Units().getId());
    Message was edited by:
            yzme yzme

    Hi,
    When there is a RFC Model with table ouptut....every row in the table can be correlated to elements in the model node...
    your model node : <i>nodeEx_Org_Units</i>
    Now if you have 5 rows as output after executing the model...there will be 5 elements created under the node. Loop through all the elements and use the get methods as given below:
    // assuming tht u have two columns(attributes) <i>col1 & col2</i>
    // access the node
    IPrivate<view>.IEx_Org_UnitsNode tableNode = wdContext.nodeEx_Org_Units();
    // access the element under the node, do not initalize this element
    IPrivate<view>.IwdContext.nodeEx_Org_UnitsElement tableElem;
    //loop thrugh the elements
    for(int i=0; i<tableNode.size(); i++)
       tableElem = tableNode.getEx_Org_UnitsElementAt(i);
       // access the attributes col1 & col2
       tableElem.getCol1();
       tableElem.getCol2();
    Regards
    Srikanth

  • PL/SQL...Unsure how to loop thru multiple questions and display output?

    This is my first pl/sql program, I've written psudocode on paper, but not sure what to do for two parts.
    What I'm trying to do is write pl/sql that will check a row based on an employee id #.
    declare
    cursor cur is
    select *
    from employee
    where employee_id = foo;What we are checking are the results the employee answered. They have answered 180 questions and I want to find when the answer a 0, 7, and 9.
    Basically the pl/sql has to loop thru the 180 questions
    loop
    v_count := vcount + 1
    select *
    from employee
    where q1 thru q180 in (0, 7, 9);
    end loop;
    dbms_output.put_line ('Employee ID' || employee_id);
    dbms_output.put_line ('Q1 - Q180' || q1 - q180); I'm not sure how to write the pl/sql to loop thur all 180 questions.
    I'm not sure how to display the output to show what question they scored a 0, 7, and/or a 9 on.
    thanks
    Message was edited by:
    cmmiller

    536 columns in one table? Yowsa. Without a normalized table, you are going to need dynamic pl/sql and a messy solution.
    I would rethink your design, and come up with something more like so:
    employee
    questions
    employee_responses
    So that would you could easily do something like this:
    declare
      cursor c1 is
        select ers.question_id,
               que.question_name,
               ers.rating
          from employee emp,
               questions que,
               employee_responses ers
         where emp.employee_id = ers.employee_id and
               que.question_id = ers.question_id and
               emp.employee_id = v_employee_id and
               ers.rating in (0, 7, 9) and
               que.enabled_flag = 'Y';
    begin
      for r1 in c1 loop
        dbms_output.put_line('Question: '||r1.question_name);
        dbms_output.put_line('Employee Rated this: '||r1.rating);
      end loop;
    end;Thats how I would do it - I think you are going down the wrong path. What happens if you need to create a new question or delete one? You constantly have to modify the table. Hope this helps

  • PL/SQL how to loop thru SQL statement?

    Hey guys. I have this bit of a complicated problem.
    I have a cursor that selects a DISTINCT field called Term and a StudentID.
    I am looping thru that cursor.
    Inside that loop I have another SQL statement that is pulling all rows from the DB where the Term = the Term and the StudentID= the StudentID from the crusor loop.
    My problem is how do I get all the information/rows returned from that SQL statement? I need to loop thru it somehow, but I am not sure how to do it.
    If there is a better way to get this done feel free to chime in.
    Here is my code.
    /* CURSOR*/
    CURSOR c_GPAPerTerm IS
            SELECT DISTINCT Term, Student_ID FROM course_grades
            WHERE STUDENT_ID = p_StudentID;
                 /* OPEN AND LOOP THRU CURSOR*/
        OPEN c_GPAPerTerm;
        LOOP
        FETCH c_GPAPerTerm INTO v_Terms,v_StudentID;
                /* SQL STATEMENT NEED TO LOOP THRU AND GET VALUES FOR EACH ROW*/
                SELECT Score
                INTO v_Scores
                FROM course_grades
                WHERE Term = v_Terms and StudentID = v_StudentID;
        EXIT WHEN c_GPAPerTerm%NOTFOUND;
        END LOOP;
        CLOSE c_GPAPerTerm;

    Ok here's my complete code....it's pretty big though...hope it's not too confusing.
    It compiles fine if I take the new cursor out, so the error is somewhere in that cursor.
    CREATE OR REPLACE PROCEDURE get_Student_GPA(p_StudentID IN NUMBER) AS
         /*VARIABLES*/
         v_Terms VARCHAR2(6);
         v_Courses VARCHAR2(6);
         v_Scores NUMBER;
         v_Grade CHAR;
         v_GPA NUMBER;
         v_ScoresTotal NUMBER :=0;
         v_StudentID NUMBER;
         /*CURSORS*/
         CURSOR c_GetTerms IS
              SELECT Term
              FROM course_grades
              WHERE STUDENT_ID = p_StudentID;
         CURSOR c_GetCourseAndGrade IS
              SELECT Course_ID, Score FROM course_grades
              WHERE STUDENT_ID = p_StudentID;
         CURSOR c_GPAPerTerm IS
              SELECT DISTINCT Term, Student_ID
              FROM course_grades
              WHERE STUDENT_ID = p_StudentID;
         CURSOR c_GetScores (p_Term VARCHAR2, p_StudentID NUMBER) IS          
                   SELECT Score
                   FROM course_grades
                   WHERE Term = p_Term AND StudentID = p_StudentID;
         /*FUNCTIONS*/
         FUNCTION convert_grade(p_GradeNumber IN NUMBER)
              RETURN CHAR IS
         BEGIN
              /* GET NUMERIC GRADE AND CONVERT TO LETTER */
              CASE
                   WHEN p_GradeNumber < 60 THEN RETURN 'F';
                   WHEN (p_GradeNumber > 59  AND p_GradeNumber < 70) THEN  RETURN 'D';
                   WHEN (p_GradeNumber > 69  AND p_GradeNumber < 80) THEN  RETURN 'C';
                   WHEN (p_GradeNumber > 79  AND p_GradeNumber < 90) THEN  RETURN 'B';
                   WHEN (p_GradeNumber > 89  AND p_GradeNumber < 101) THEN RETURN 'A';
              ELSE    RETURN 'Z';
              END CASE;
         END convert_grade;
         FUNCTION calculate_gpa(p_TotalHourPoints IN NUMBER, p_TotalHours IN NUMBER)
              RETURN NUMBER IS
              /*CREATE VARIABLE TO HOLD GPA*/
              v_GPA NUMBER;
         BEGIN
              /*CALCULATE AND OUTPUT GPA*/
              v_GPA := p_TotalHourPoints/p_TotalHours;
              RETURN v_GPA;
         END calculate_gpa;
         FUNCTION calculate_point (p_Grade IN CHAR)
              RETURN NUMBER IS
         BEGIN
              /* GET LETTER GRADE AND CONVERT TO NUMBER */
              CASE
                   WHEN p_Grade = 'A' THEN RETURN 4;
                   WHEN p_Grade = 'B' THEN RETURN 3;
                   WHEN p_Grade = 'C' THEN RETURN 2;
                   WHEN p_Grade = 'D' THEN RETURN 1;
                   WHEN p_Grade = 'F' THEN RETURN 0;
              ELSE    RETURN 0;
              END CASE;
         END calculate_point ;
    /****BEGIN MAIN BLOCK********/
    BEGIN
         DBMS_OUTPUT.PUT_LINE('**********TERMS**********');
         OPEN c_GetTerms;
         LOOP
         FETCH c_GetTerms INTO v_Terms;
         DBMS_OUTPUT.PUT_LINE('Term: ' || v_Terms);
         EXIT WHEN c_GetTerms%NOTFOUND;
         END LOOP;
         CLOSE c_GetTerms;
         DBMS_OUTPUT.PUT_LINE('**********COURSES AND GRADES**********');
         OPEN c_GetCourseAndGrade;
         LOOP
         FETCH c_GetCourseAndGrade INTO v_Courses, v_Scores;
            v_Grade := convert_grade(v_Scores);
         DBMS_OUTPUT.PUT_LINE('Course: ' || v_Courses || '   Grade: ' || v_Grade);
         EXIT WHEN c_GetCourseAndGrade%NOTFOUND;
         END LOOP;
         CLOSE c_GetCourseAndGrade;
         DBMS_OUTPUT.PUT_LINE('**********GPA PER TERM**********');
         OPEN c_GPAPerTerm;
         LOOP
         FETCH c_GPAPerTerm INTO v_Terms,v_StudentID;
                      /*NEW CURSOR LOOP WILL GO HERE*/
                   v_ScoresTotal := v_ScoresTotal + v_Scores;
                      v_GPA := calculate_gpa(v_ScoresTotal, 3);
                   v_ScoresTotal :=0;
                   DBMS_OUTPUT.PUT_LINE('Term: ' || v_Terms || '   GPA: ' || v_GPA);
         EXIT WHEN c_GPAPerTerm%NOTFOUND;
         END LOOP;
         CLOSE c_GPAPerTerm;
    END get_Student_GPA;
    /

  • Looping thru enumeration objects

    How to loop thru the enumeration objects?? Thanks.

    If you are using JAVA 5.0 enum, here is an example:
    public class Example
        public enum Season { WINTER, SPRING, SUMMER, FALL }
        public static void main(String[] args)
            for (Season s : Season.values())
                System.out.println(s);
    }

  • How to loop through records in a block

    How do I get the count of records in a data block after the EXECUTE_QUERY?
    If I want to manually insert or update records into the table from the datablock how do I loop thru' records in the block.?
    Also for 'WHERE' clause of update statement is there anyway to tie up the rowid to the current row in the form.

    Use get_block_property('block',QUERY_HITS).
    For the second question :
    Set the properties of block to be INSERT_ALLOWED=FALSE,UPDATE_ALLOWED=FALSE, next do:
    go_block('block');
    first_record;
    set a local handler of errors
    loop
    next_record;
    end loop;
    when others then
    catch the error "Record must be inserted first...'
    For the third question set the DML Returning Value = Yes in property palette of the block and access the rowid as
    declare
    rowid_ rowid;
    begin
    rowid_:=:block.rowid;
    end;
    HTH

  • How to loop and add multiple records from db in .pdf using cfdocument

    I have a query that pulls a users information (Id, FirstName,
    LastName, Title,etc). I then use cfdocument to output a person's
    biography into a pdf. This is great, because we no longer have to
    manually create bios, as they are now all dynamically generated.
    The problem I have now is that we want to be able to select
    multiple users and create a .pdf with each of their bios included
    in the one pdf.
    How do I loop thru records from a sql database in a
    cfdocument that includes a header and footer in cfdocument items,
    and ensure that one persons bio doesn't continue on the page with
    anothers.
    Here's the code I have so far for the cfdocument:

    Put the query around just the body of your cfdocument not
    around the whole cfdocument tag. Also, move any query information
    out of the header and put that in the body of the document. Lastly,
    put a cfdocumentitem pagebreak after each bio...you will need to
    check the recordcount of the query against the row you are on so
    that you don't add an empty page break at the end.

  • Looping thru tif images using OCR

    I have this code below in powershell where I OCR a tif image and save it to a table in sql server.  OCR is only working on the first page and not looping thru the tif image pages.
     Can someone help me with the code to make it loop on my tif image pages ?
     #Functions
    #OCR Function
    #param - imagepath(path the image to ocr)
    Function OCR($imagepath) {
        #create a new modi object
        $modidoc = new-object -comobject modi.document
        $modidoc.create($imagepath)
        try{
            #call the ocr method
            $modidoc.ocr()
            #single page document so I only need the item(0).layout text
            $modidoc.images.item(0).layout.text
        catch{
            #catch the error and go on
            return "Error"
        Finally
            #clean up the object
            $modidoc = ""
    } # end OCR function
    #Function to update the fulltext field in imageskeyvalues table
    #param ID(ID of table)
    function SaveImagesKeyValues($ID, $fulltext)
    $cmd = new-object system.data.sqlclient.sqlcommand
    $cmd.connection = $sqlconnection
    $s = "update dbo.Images_Local set fulltext = '" + ($fulltext.tostring()).replace('''','') + "' where ID = " + $ID.tostring() 
    $cmd.commandtext = $s
    $a = $cmd.executenonquery()
    } #end SaveImagesKeyValues
    #Function to get the list of records to OCR
    function GetImagesKeyValues()
    $sqlda = new-object system.data.sqlclient.sqldataadapter
    $datatable = new-object system.data.dataset
    $sqlcommandselect = new-object system.data.sqlclient.sqlcommand
    $sqlcommandselect.commandtext = 
        "select ID, FullImagePath, fulltext from images_Local  
    where (fulltext is null or fulltext like 'error%')  order by ID "
    #and (fulltext is null or fulltext like 'error%') 
    #"select b.batch_number, b.sequence_number,a.claimnumber, a.potentialamount,a.buyer, b.[document type],b.fulltext, c.imagelastmodified, c.image_path
    #from cip.dbo.cip_mastertable a 
    #inner join imageskeyvalues b on a.claimnumber = substring(b.[claim number],2,6) 
    #inner join images c on b.batch_number = c.batch_number and b.sequence_number = c.sequence_number
    #where (a.buyer = '006' or (a.buyer = '007' and a.potentialamount > 500000))
    #and c.imagelastmodified >= '1/1/13'
    #and b.[document type] = '2'
    #order by c.imagelastmodified"
    $sqlcommandselect.connection = $sqlconnection
    $sqlda.selectcommand = $sqlcommandselect
    #Fill the datatable and store the output in variable otherwise it shows in the output.
    $trap = $sqlda.fill($datatable)
    $datatable.tables[0]
    #end GetImagesKeyValues
    #End Functions
    #Main
    clear
    #set the parent path to the working directory
    $parentpath = "C:\Data\Portugal PRG\Images\Contratos SONAE 08-11\Imdex\"
    #Create new sql connection
    $sqlconnection = new-object system.data.sqlclient.sqlconnection
    #Assign the connectionstring 
    $sqlconnection.connectionstring = "Server=ATL01L20969\SQLEXPRESS;Database=Sonae;integrated security=True"
    #Open the connection
    $sqlconnection.open()
    #get the list of records that need ocr'd
    $imageskeyvalues = getimageskeyvalues
    #iterate through the list 
    foreach ($t in $imageskeyvalues){
    #$completepath = $parentpath + $t.image_path
    $completepath = $t.FullImagePath
    #call the ocr function and put the results in the fulltext property
    $t.fulltext = OCR $completepath
    #give some bread crumbs to monitor the script
    write-host  "Saving " $t.ID 
    #update the database fulltext filed
    Saveimageskeyvalues $t.ID $t.fulltext
    }#end Main

    Hi Abenitez,
    Since the OCR is only working on the first page, as a workaround, please try to spilt the tiff files to multople single files:Tiff Splitter, and then you can use foreach to loop every files.
    Refer to:
    How to split a multipage TIFF file on Windows?
    If there is anything else regarding this issue, please feel free to post back.
    Best Regards,
    Anna Wang

  • How to loop a sql insert?

    I have an ASP Survey that pulls questions from a sql
    database. The results table to store the answers is simple. It has
    a ResultID, QID, and Answer field.
    Since the survey is dynamically built, the number of
    questions in each survey is limitless. Thus my problem. How do I
    construct an insert sql statement to loop thru and add a value to
    the db for QID?

    There is a tutorial on www.charon.co.uk that may be of some
    use for you as
    it is written for asp
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Lucky Kitty" <[email protected]> wrote in
    message
    news:f2f1tk$kvg$[email protected]..
    >I have an ASP Survey that pulls questions from a sql
    database. The results
    > table to store the answers is simple. It has a ResultID,
    QID, and Answer
    > field.
    >
    > Since the survey is dynamically built, the number of
    questions in each
    > survey
    > is limitless. Thus my problem. How do I construct an
    insert sql
    > statement to
    > loop thru and add a value to the db for QID?
    >

  • LOOPING THRU LINE ITEM

    HI IAM TRYING TO VALIDATE  FIRST CHECKING WHTETHER THE BILLING PLAN IS AT THE HEADER LEVEL OR AT THE ITEM LEVEL.
    HOW CAN I LOOP THRU ALL THE ITEMS IF THE BILLING PLAN IS AT THE ITEM LAVEL I NEED TO LOOP THRU ALLL THE ITEMS!!SOME OF THEM MAY HAVE BILLING PLAN AT THE ITEM LEVEL AND SOME AT THE HEADER LEVEL.
    PLSS TELL ME HOW TO DO IT FOR THE ITEM LEVEL.
    POINTS PROMISED!!

    i have done the code this way will it work???
    TYPES: BEGIN OF gst_fpla,
            fplnr TYPE fpla-fplnr,
            vbeln TYPE fpla-vbeln,
            rfpln TYPE fpla-rfpln,
            END OF gst_fpla.
      TYPES: BEGIN OF gst_fplt,
            fplnr TYPE fplt-fplnr,
            fproz TYPE fplt-fproz,
            fareg TYPE fplt-fareg,
            END OF gst_fplt.
    TYPES: BEGIN OF gst_fplt1,
           fplnr type fplt-fplnr,
           end of gst_fplt1.
      DATA: gi_fpla TYPE STANDARD TABLE OF gst_fpla.
      DATA: gi_fplt TYPE STANDARD TABLE OF gst_fplt.
      DATA: gw_fpla TYPE gst_fpla.
      DATA: VAR1(1) TYPE C.
      DATA: VAR2(9) TYPE C.
      DATA: GW_XFPLA LIKE XFPLA.
      DATA: gw_fplt TYPE gst_fplt.
      TYPES: BEGIN OF GST_RFPLN,
              RFPLN TYPE FPLA-RFPLN,
            END OF GST_RFPLN.
    DATA: GI_RFPLN TYPE STANDARD TABLE OF GST_RFPLN.
    DATA: GW_RFPLN TYPE GST_RFPLN.
    data: gi_fplt1 type standard table of gst_fplt1.
    data: gw_fplt1 type gst_fplt1.
      IF ( sy-tcode = 'VA01' OR sy-tcode = 'VA02' OR sy-tcode = 'VA21' OR  sy-tcode = 'VA22' ) AND ( vbak-auart = 'ZQT' OR vbak-auart = 'ZNS' ).
    IF RV45A-KFREL = 'X'.
      IF XFPLA[] IS NOT INITIAL.
      LOOP AT XFPLA INTO GW_XFPLA.
      GW_RFPLN-RFPLN = GW_XFPLA-RFPLN.
      APPEND GW_RFPLN TO GI_RFPLN.
      ENDLOOP.
    SPLIT GW_XFPLA-RFPLN AT '$' INTO VAR1 VAR2.
    DATA: BEGIN OF MRFPLN,
              rfpln1 type c length 1 value '0' ,
              rfpln2 type c length 9 value '',
              end of MRFPLN.
          MRFPLN-rfpln2 = VAR2.
    DATA: RFPLN TYPE STRING.
      RFPLN = MRFPLN.
    CONDENSE RFPLN.
      SELECT fplnr vbeln rfpln FROM FPLA INTO TABLE gi_fpla  FOR ALL  ENTRIES IN GI_RFPLN WHERE fplnr = GI_RFPLN-RFPLN.
    ENDIF.
      loop at gi_fpla into gw_fpla.
      if gw_fpla-vbeln = '' and gw_fpla-rfpln = ''.
      READ TABLE xfpla WITH KEY rfpln = gw_fpla-fplnr.
      if sy-subrc NE 0.
      MESSAGE  W047(YD01).
      write:'invalid reference number'.
      else.
      gw_fplt1-fplnr = gw_fpla-fplnr.
      append gw_fplt1 to gi_fplt1.
        ENDIF.
        ENDIF.
        ENDLOOP.
      ENDIF.
      SELECT fplnr fproz fareg from fplt into  TABLE GI_FPLT for all entries in gi_fplt1 where fplnr = gi_fplt1-fplnr.
      LOOP AT GI_FPLT INTO GW_FPLT.
      READ TABLE XFPLT WITH KEY FAREG = gw_fplt-fareg.
      if sy-subrc NE 0.
      WRITE:'BILLING RULE IS INVALID'.
      ELSE.
    WRITE:'CORRECT BILLING RULE'.
      READ TABLE XFPLT WITH KEY FPROZ = gw_fplt-fproz.
      if sy-subrc ne 0.
      write: 'billing percentage is invalid'.
      else.
      write: 'valid billing percentage'.
      endif.
      ENDIF.
      ENDLOOP.
    ELSE.                                                "ELSE FOR RV45A
    CLEAR: GI_FPLA.
    CLEAR: GI_FPLT.
    CLEAR: GI_RFPLN.
    CLEAR: GI_FPLT1.
    REFRESH: GI_FPLA.
    REFRESH: GI_FPLT.
    REFRESH: GI_RFPLN.
    REFRESH: GI_FPLT1.
    do the validations for item level.
      ENDIF.                                                "for  rv45a-if.
      ENDIF.

  • How to loop at these 2 itabs?

    Hi Champs,
    In the mycontext tab, i am looping at two internal tables based on where condition. I need to filter data from my 2nd int table and put it out on the form. But somehow i am not bale to check the condition and as a a result i could see all the records of 2nd itab in one shot.
    Can someone help me how to loop at these 2 tables?
    thanks
    Dany

    Hi Champs,
    In the mycontext tab, i am looping at two internal tables based on where condition. I need to filter data from my 2nd int table and put it out on the form. But somehow i am not bale to check the condition and as a a result i could see all the records of 2nd itab in one shot.
    Can someone help me how to loop at these 2 tables?
    thanks
    Dany

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Itunes wont let me download anything for my ipod touch.  everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE :(

    everytime i try to it keeps looping thru to verify my account, so i do and then try to download and it loops me right back thru again to verify my account.  HELP ME PLEASE

    Contact iTunes.  Select the appropriate topic of:
    Apple - Support - iTunes

  • How to loop through the "On My Mac" folders in mail?

    Hi there - i am new to applescript, but am slowly working out how to use it.
    I am stumped on how to write a rule that will move a message to a folder identified by a tag in a message (I am using MailTags).
    I have script that will take the first tag and move the message to a mail folder in a fixed location (e.g. Archive/<tag name>) however I wanted to make it more generic by looping over all of my mail folders and finding one that matched the tag name.
    However I am stumped on how to loop over all of my mail folder names - I have tried:
    repeat with aFolder in (every mailbox of (mailbox for "ON MY MAC"))
    and
    repeat with aFolder in every mailbox of inbox
    etc.
    but none of these seem to work.
    Is there some magic syntax to do this, so that I can do:
    if (name of aFolder = msgTag) then
    move oneMessage to mailbox (name of aFolder)
    end if
    Tim

    You don't necessarily need to assign a variable to the entire list in order to loop through them (unless you really want to) - for example:
    tell application "Mail" to repeat with aFolder in (get mailboxes)
            -- do stuff with aFolder
    end repeat
    There are several AppleScript resources, but the main ones I use are:
    AppleScript Language Guide
    AppleScript Tutorials at MacScripter.net

  • How can I clean up queue one-time on Sun Java system messaging 6.3

    Hi,
    <address>Our Email server have a problem, When I run _./imsimta qm directory tcp_local_, There are about 5 Millions of messages in the queue.</address>
    Now our Email server send messages very slowly, how can I clean up queue one-time?
    the command _./imsimta qclean_ is very slowly.
    What can I do to prevent this problem?
    our Email server version is :
    Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)
    libimta.so 6.3-6.03 (built 17:12:37, Mar 14 2008; 32bit)
    SunOS email-1 5.10 Generic_120011-14 sun4u sparc SUNW,Sun-Fire-V890
    Thank you !

    If you have more than 100,000 messages in the queue, then look at the MAX_MESSAGES parameter in [the job_controller.cnf file|http://wikis.sun.com/display/CommSuite/Job+Controller+Configuration+File]. If the parameter is not specified, it defaults to 100000. If you have more than that number of messages in the channel queues, it will take a long time for new/legitimate messages to be sent because job_controller is only considering the first 100,000 messages in the queue.
    If you get into the "imsimta qm" command do do "sum -database", it will show a summary of what job_controller has in its internal cache and therefore what job_controller is working on. If you compare that to "sum -directory" you will probably see a difference.
    If these are all legitimate messages, you need to increase MAX_MESSAGES, cnbuild, and restart job_controller.
    If they are not, then preventing this in the future will require determining how they got into your queue and correcting that.
    As for removing them, the "imsimta qm" commands allow you to select messages by various criteria and then you can "return" or "delete" them. But yes, that will take a long time if there are many messages because it is a single threaded process and it needs to open and examine each message. You may be able to accomplish the task more quickly with a shell script that works on individual channel queue subdirectories and then run multiple copies of that script in parallel. After you have cleaned out the queue, restart job_controller.
    Also, you might want to consider [the subdirs channel keyword|http://msg.wikidoc.info/index.php/Subdirs_and_nosubdirs_Channel_Options].

Maybe you are looking for

  • How to set an attribute of a HTML tag with a value in the Servlet

    I have a HTML page and a Servlet. The HTML page sends a request to the Servlet. The Servlet has to read the contents of the HTML page. When the Servlet encounters the body tag it should set the bgcolor attribute of the body tag with a string(For eg.a

  • 6th Gen Nano not found in windows 7

    Ok so i just got a 6th gene iPod nano, i have been trying to set it up, but my computer won't recongize it (windows 7). I have tried everything, i have uninstalled and reinstall itunes, i have done the misconfig, i have reset the ipod, i have used di

  • Drop Down in ALV  ABAP and NOT in OO - ABAP

    Hello Everyone.... I m workin on an ALV which is in simple ABAP and not in OO-ABAP. There is some selection criteria on the first screen , as soon as the user fulfills the requirement an ALV GRID is displayed in which the last column is editable.   B

  • Ssd up grade on mac book pro 2014

    hi I have mac book pro mid 2014 with 128 gb ssd . I like to up grade to 480 gb, is that possible ?

  • Memory leak in VB6.0 on Form close

    I need some help: I have made very simple VB6.0 application, in first VB Form (Form1) I start new VB Form (Form2) with CWButton (Measurement Studio 8.0) placed on. If I close the VB Form2, the memory of the application (in Task Manager) is not going