Going to the next record using Iterators. Please HELP

No offence meant for asking again as this is URGENT.
I am unable to go to the next record.
I need to go to the next record using the RowsetIteratorTag.
But am getting the null pointer exception.
Please can anyone tell me the way to go to the next record.
I AM USING THE NEXT(),BUT STILL NO LUCK
public class CheckDetailRowsIterate extends TagSupport
     public int doStartTag() throws JspException
       Row currentRow = null;
       Row nextRow = null;
       String m_CmpyCode;
       // Find the current row and get Data out of it.
       RowsetIterateTag detailIterator = (RowsetIterateTag)TagSupport.findAncestorWithClass(this, RowsetIterateTag.class);
       if (detailIterator != null)
          currentRow = detailIterator.getRow();
       else
           // No row iterator
           log.logDebug(ClassName,"","No CURRENT ROW Found : ");
       if(currentRow != null)
         String[] attrNames = currentRow.getAttributeNames();
         Object[] obj = currentRow.getAttributeValues();
         // Get the attribute Values
         m_CmpyCode = obj[currentRow.getAttributeIndexOf("CmpyCode")].toString();
        /* Now,move to the next Row.GIVES NULL POINTER EXCEPTION.
        RowSet rowSet = new IT().getRowSet();
        nextRow = rowSet.next();
        m_CmpyCode = obj[nextRow.getAttributeIndexOf("CmpyCode")].toString();
        log.logDebug(ClassName,"","NEXT ROW Values ARE "     + m_CmpyCode );
        rowSet = null;
        return Tag.SKIP_BODY;
     public class IT extends RowsetIterateTag
             RowSet getRowSet()
                  return rs;
}  // End class.

You cannot look for a duplicate record situation using a timer. When you issue the Raise Form_trigger_failure from the when-timer-expired trigger, all it does is stops that trigger. The when-validate trigger has already run and completed with success, before the when-timer-expired trigger even started.
You must do the checking and raise form_trigger_failure at the same time from the When-validate-record trigger.
In fact, you don't even need to Post; first. In the WVR trigger, just do this:
If :System.Record_Status = 'INSERT', then do the select.
Then, if v_counter >= 1, issue the message and Raise Form_Trigger_Failure;

Similar Messages

  • The next-hop-self command PLEASE HELP

    I have a question about the next hop-self command, i have a topology with 3 routers lets say R1,R2 and R3. Know R1 and R2 are Ebgps neighbors and R2 and R3 are iBgp neighbors. Know lets say i have a loop back address or lan on R3. Do i need to configure Next-hop-self on R2 towords R1 so R1 can ping R3s lans.
    I need to be able to know the Logic very well so a clear explenation would be very appreciated.

    Sorry, you did say you wanted to understand the logic.
    When a BGP router advertises a route to an EBGP peer the next hop in the route is itself. By definition the receiving router must know how to get to that next hop because they are peering with BGP.
    When a BGP router receives a route from an EBGP peer if it advertises it to an IBGP peer by default it does not change the next hop IP so the next hop IP is that of the originating router.
    So there is a good chance that the IBGP router does not know how to get to that next hop IP.
    There are a couple of solutions to this and one of them is to configure the receiving EBGP router to change the next hop IP to itself which obviously the IBGP peer knows how to get because again it has a peering.
    Jon

  • I have 2 gamecenters under 1 Apple ID and password, and when I sign out of gamecenter and try to sign into my other gamecenter it won't let me and it just goes to the one I was usin, PLEASE HELP!

    I have 2 gamecenter accounts under 1 Apple ID and password, and when I sign out of gamecenter and try to sign into the other it just logs me into the one I was usin before, please help

    Try:
    iOS: Troubleshooting FaceTime and iMessage activation

  • How to leapfrog selected record and going to the next one

    Hi ,
    My DB 11G , OS Linux Redhat ,
    i have a Linux script to read the name of the files listed on the Table , then open those files and save the content on another table , i need to speed up the process by running this script multiple time , so i need to
    read the first record (File name ) then running the script again to check if the record already selected then go to the second record and so on .
    is there any way to check the selected row then leapfrog this record  and going to the next record .
    Im already tried (for update skip locked ) but this will  return ( no row selected message when locked ) and  when running on the 2 Scripts  it will considering it as same session and always will be the same .
    my query is (
    select bi_file_name
    from dbm_cdr_head
    where bi_file_name like 'hd_auto%' and bi_auto_status=35;)
    thanks

    Really its about 1 million file per day ( Telecom CDRS Calls Details Records) updated every minutes , i think its very difficult to keep track by External Tables ,
    thank you for you advice about advanced queuing i will going to read about this new concept for me

  • How to find the next record b4 the loop end

    hai all
    i have suffering big problem... i have the  internal table  call IT_ITAB.. so i can go to the rerecord by record using loop comand..
    example:
    loop at IT_ITAB.
    1.record1
    2.record2
    3.record3
    4.record4
    endloop.
    Allways end of loop go to next record...... my problem is before end of the loop i want to check the next record... how should i do it... please help me...
    regard
    nawa

    Hi,
    One approach u can follow is that copy the data of the internal table into another one.
    Maintain an integer type variable which will contain the index value of the loop. Check the entry from other table.
    e.g.
    Loop at itab1.
    ctr = sy-tabix + 1.
    read itab2 index ctr.
    This way u can check the next record while u r still in loop.
    Hope it helps.
    Regards,
    Himanshu

  • Help - i recently made put together a high quality movie for a relative, it has taken me months to complete and it goes for a total of 9 hours and 43 minutes ,however, it won't let me export the video at all! please help - its taken ages to make it!

    Help - i recently made put together a high quality movie for a relative, it has taken me months to complete and it goes for a total of 9 hours and 43 minutes ,however, it won't let me export the video at all! please help - its taken ages to make it!

    9 hours??!
    Twice the length of a cinema epic?
    How are you expecting to distribute it?
    iDVD encoding settings:
    http://docs.info.apple.com/article.html?path=iDVD/7.0/en/11417.html
    Short version:
    Best Performance is for videos of up to 60 minutes
    Best Quality is for videos of up to 120 minutes
    Professional Quality is also for up to 120 minutes but even higher quality (and takes much longer)
    That was for single-layer DVDs. Double these numbers for dual-layer DVDs.
    Professional Quality: The Professional Quality option uses advanced technology to encode your video, resulting in the best quality of video possible on your burned DVD. You can select this option regardless of your project’s duration (up to 2 hours of video for a single-layer disc and 4 hours for a double-layer disc). Because Professional Quality encoding is time-consuming (requiring about twice as much time to encode a project as the High Quality option, for example) choose it only if you are not concerned abo
    In both cases the maximum length includes titles, transitions and effects etc. Allow about 15 minutes for these.
    You can use the amount of video in your project as a rough determination of which method to choose. If your project has an hour or less of video (for a single-layer disc), choose Best Performance. If it has between 1 and 2 hours of video (for a single-layer disc), choose High Quality. If you want the best possible encoding quality for projects that are up to 2 hours (for a single-layer disc), choose Professional Quality. This option takes about twice as long as the High Quality option, so select it only if time is not an issue for you.
    Use the Capacity meter in the Project Info window (choose Project > Project Info) to determine how many minutes of video your project contains.
    NOTE: With the Best Performance setting, you can turn background encoding off by choosing Advanced > “Encode in Background.” The checkmark is removed to show it’s no longer selected. Turning off background encoding can help performance if your system seems sluggish.
    And whilst checking these settings in iDVD Preferences, make sure that the settings for NTSC/PAL and DV/DV Widescreen are also what you want.
    http://support.apple.com/kb/HT1502?viewlocale=en_US

  • Refresh page with data from the Next Record in the Table through a Button

    Scenario: Record of a table “prototype” is made up of 8 columns,
    key_col,
    text_col,
    label1_col, label2_col, label3_col,
    check1_col, check2_col, check3_col,
    I have created the following items on a page:
    a) A Display Only item that is populated through a SQL query
    “SELECT text_col from prototype where rownum=key_seq.NEXTVAL “.
    b) Hidden item for the database columns “label1_col, label2_col, label3_col”
    Source type for the hidden items is of type SQL query, Source expression is:
    Select label1_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label2_col from prototype where rownum=key_seq.NEXTVAL ;
    Select label3_col from prototype where rownum=key_seq.NEXTVAL ;
    (key_seq is a sequence).
    c) Checkbox item for the database columns “ check1_col, check2_col,check3_col"
    d) The labels for the above checkbox items are &label1_col. , &label2_col. , &label3_col.
    I have created a Save button to save the state of the checkboxes; (STATIC:;1 )
    I want the page to be refreshed with the data from the next record (Fields text_col, label1_col, label2_col, label3_col) through a “ Next” Button.
    Can I please know how I can achieve this?
    Thanks in advance

    If you need the value that is entered in the textbox as the email body, then try this..
    <html>
    <HEAD>
    <title>WebForm1</title>
    <script language="javascript">
    function mailHTML() {
    var content=document.getElementById('textBox').value;
    location.href="mailto:?body="+encodeURI(content);
    </script>
    </head>
    <body>
    <form name="theform" id="theform">
    <div name="body1"/>
    <input type="text" value="Test" id="textBox"/>
    <input type="button" value="Send Email" onClick="mailHTML()"/>
    </div>
    </form>
    </body>
    </html>

  • Stop the viewer having the ability to click/touch anywhere on the page and it going to the next page

    I have created a PDF with links to various pages so that it can be used on a touch screen. I need to be able to stop the viewer having the ability to click/touch anywhere on the page and it going to the next page. In Keynote you select a check box that says : "Hyperlinks only" is their something similar in PDF?

    You can upload it to a file-sharing website (Acrobat.com, DropBox, etc.)
    and post the link here, or you can send it to me privately at
    [email protected] .

  • Auto skip to the next record in a multi-record defined text item

    I know that by setting the autoskip property to true, this
    allows the cursor to navigate to the next item defined in a
    block without having to press return, tab or click w/a mouse
    into the next item. What I would like to do is emulate that
    behavior using a single multiple record text in a block. In
    other words, I want the form to navigate to the next record for
    that item automatically, without having to hit the down-arrow
    key or mouse-click to the next record or whatever.
    Anyone know if that's possible?

    hi
    you can try in this way. you can set block property 'navigation
    style' to 'change record'.

  • Getting the next record in a jlabel??

    Hi all,
    I created a form to get some data from the database and when I press the down key it show get the next record in a jlabel.
    I tryed to write this code but it gets only the first record and never get the second one always the first record.
        private void getStd() {
            rSetStd = dbConn.getRset(stdQry);
            try {
                if (rSetStd.next()) {
                    if (keyString.equals("Down")) {
                        lblStdId.setText(rSetStd.getString(1));
                        rSetStd.next();
            } catch (SQLException e) {
        private void txtStdName_keyPressed(KeyEvent e) {
            int i = e.getID();
            if (i == KeyEvent.KEY_TYPED) {
                char c = e.getKeyChar();
                keyString = "key character = '" + c + "'";
            } else {
                int keyCode = e.getKeyCode();
                keyString = KeyEvent.getKeyText(keyCode);
            getStd();Regards,

    Use [key bindings|http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html] instead.
    See [this post|http://forums.sun.com/thread.jspa?messageID=10932017#10932017] for forum user Kleopatra's sound decision tree between the various approaches to implement key-based interactions.

  • HT1776 I have the Energy Saver setting set to NEVER on both options, and my computer STILL goes to SLEEP after 1 hour. Please help!

    I have the Energy Saver setting set to NEVER on both, and my computer STILL goes to SLEEP after 1 hour. Please help!
    My COMPUTER goes to sleep and disrupts my apple tv all the time. How can I fix this?

    That you are getting the BONG is a good sign, it's unlikely to be hardware if you are able to hear that.
    Start by running SW update. It's not that there is a specific fix, but when updating it may rewrite some system files which may get this going again purely as a side affect. Worth a go, and should not harm the system.
    Try reset the PRAM - Resetting your Mac's PRAM and NVRAM
    Hopefully one of these quick fixes works, otherwise we'll need to try isolate the issue next - so if still having a problem, I'd try create a new user and login as that user to see if the issue persists (which will tell us if it's system wide or user specific)

  • TS1702 Hi,  I downloaded Wild to my Ipad and I'm having issues.  I've only read the first few chapters but at the end of each chapter the last page is duplicated for 10 pages and then it goes to the next chapter.

    I downloaded Wild to my Ipad and I'm having issues.  I've only read the first few chapters but at the end of each chapter the last page is duplicated for 10 pages and then it goes to the next chapter.

    Quit the iBooks app completely and restart the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    Or ....Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Or ... Delete the book and download it again in the purchased tab of the iBook Store, as long as you use the same Apple ID, there is no charge to download it again.

  • I am using an iphone 3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.

    HEY GUYS I AM USING AN IPHONE  3g and when i connect my device to my laptop a dialog box appears saying that an update of 4.2 is available so went for it.after the firmware is downloaded via itunes it shows that the firmware is invalid!.please help.
    AND ALSO I HAVE HEARD THAT THE IPHONE 3G CANNOT BE UPDATED TO IOS 4.2!IS IT TRUE???
    PLEASE HELP ME.

    This means that the phone you have was software unlocked to use on any carrier, or hacked. When you installed the update it restored the lock that originaly came with your phone. Not much you can do now. Apple will not support hacked phones. You will need to find out the carrier your phone is locked to and see if they offer official unlocking, or start googling to see if you can find a way to unlock 4.2.

  • HT2968 I can not update several of my apps that i have purchased a while back in my Apps Store on my MacPro. Because it keeps using my old @me account for iTunes and i don't remember the password or security question, Please help?

    I can not update several of my apps that i have purchased a while back in my Apps Store on my MacPro. Because it keeps using my old @me account for iTunes and i don't remember the password or security question, Please help?

    Hi AlphaCentori,
    If you are having issues accessing the Apple ID that was used to originally purchase those apps, you may find the following article helpful:
    Apple Support: Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/ht5312
    Regards,
    - Brenden

  • After installing iOS7 to my iphone 4, I can no longer skip to the next song using BTA in my Honda Civic.

    Says it all. I upgraded to IOS7 and now my iphone, which has always been able to skip to the next song using wireless bluetooth. I can't use it on my steering wheel or the controls above the heating/cooling/CD drive. Nothing. I have to unlock my iphone and manually change the song in the music app, no other way. I drive a 2013 Honda Civic... is there any solution to this? Everything was fine until today... I can still call people through my car, it's JUST the music part that is affected. Only the change/skip song functions. It's really bizarre..  any solutions?

    I think the developer havent made it compatible with ios7 for iPhone. Goto App store and search for that App. you will have an option to contact developer or report an issue. Good Luck

Maybe you are looking for