Urgent Question regd 'RowsetIterateTag' and 'next()'

Please dont get offended as this is a duplicate posting
as the matter is URGENT.
I have a RowsetIterateTag and I want to go ahead
to the next record and compare the value of
certain column values with the current record.
How do I use the variable 'rs' which is protected
and can be used to access the next record?
HELP is really appreciated as this is in PRODUCTION
My code is :
public class CheckDetailRowsIterate extends TagSupport
     public int doStartTag() throws JspException
       Row currentRow = null;
       Row nextRow = null;
       RowSet rowSet = 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();
       if(currentRow != null)
         String[] attrNames = currentRow.getAttributeNames();
         Object[] obj = currentRow.getAttributeValues();
         m_CmpyCode = obj[currentRow.getAttributeIndexOf("CmpyCode")].toString();
        // Now,move to the next Row.THIS IS PROBLEMATIC
        //rowSet = new IT().getRowSet();
        //nextRow = rowSet.next();
        return Tag.SKIP_BODY;
     public class IT extends RowsetIterateTag
            RowSet getRowSet()
                  return rs;
     } // END Inner Class.
}  // End class.

Please dont get offended as this is a duplicate posting
as the matter is URGENT.
I have a RowsetIterateTag and I want to go ahead
to the next record and compare the value of
certain column values with the current record.
How do I use the variable 'rs' which is protected
and can be used to access the next record?
HELP is really appreciated as this is in PRODUCTION
My code is :
public class CheckDetailRowsIterate extends TagSupport
     public int doStartTag() throws JspException
       Row currentRow = null;
       Row nextRow = null;
       RowSet rowSet = 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();
       if(currentRow != null)
         String[] attrNames = currentRow.getAttributeNames();
         Object[] obj = currentRow.getAttributeValues();
         m_CmpyCode = obj[currentRow.getAttributeIndexOf("CmpyCode")].toString();
        // Now,move to the next Row.THIS IS PROBLEMATIC
        //rowSet = new IT().getRowSet();
        //nextRow = rowSet.next();
        return Tag.SKIP_BODY;
     public class IT extends RowsetIterateTag
            RowSet getRowSet()
                  return rs;
     } // END Inner Class.
}  // End class.

Similar Messages

  • Urgent: Question about Censoring and replacing

    Hello, guys.
    This is my very first time writting a java program. Please tell me what I have done wrong as this is my first time?
    My question is to write a program that asks the user for a word to replace in some text, and the word to replace it with. The program then reads a line of text from the user and echoes the line back to screen replacing all occurrences of the first word with the second word. It only replaces the word being censored when it occurs independently in a line (i.e. not as a part of another word).
    Like:
    Enter word to censor: dumb
    Enter word to replace it: xxxxx
    Enter line of text to censor:
    The guy is dumb but his friend is even dumber.
    The guys is xxxxx but his friend is even dumber.
    Please look at my code now and tell me what is wrong?
    public class censor
       public static void main(String args[])
           String sentence = "Please type a word which you like to censor"
           String ac =  string sentence;
           String[] temp = null;
           temp = sentence.split(" ");
           for (int j = 0; j < temp.length; j++ )
               if (temp[j].equals("bridge"))
                   string sentence = "Censored";
               System.out.println(sentence + " " + string sentence);
    } Edited by: G on Apr 13, 2008 4:04 AM
    Edited by: KevinGupta on Apr 13, 2008 4:05 AM

    Hey guys,
    I'm getting an error where I have added the "ERROR LINE" next to the line where im getting an error..
    What I'm trying to do ?: I'm trying to make it like
    Enter word to censor: dumb
    Enter word to replace it: xxxxx
    Enter line of text to censor: The guy is dumb dumb dumb dumb and his friend is dumber.
    So, this code should replace ALL "dumb" with xxxxx NOT the dumber. But when I try to run this code only one dumb changes to xxxx not all ? So, please help on that. Also, this code doesnt work when I try to write " LIke ThaT " It gives me an exception error ?
    {color:#ff0000}Look at the error below (underneath the code){color}
    import java.util.*;
    public class LineCensor
    public static void main(String [] args)
    System.out.print("Enter a word to censor: ");
    Scanner keyboard = new Scanner(System.in);
    String word = keyboard.nextLine();
    System.out.print("Enter a word to replace it: ");
    String wordC = keyboard.nextLine();
    System.out.println("Enter line of text to censor: ");
    String phrase = keyboard.nextLine();
    String wordLowered = word.toLowerCase();
    String phraseLowered = phrase.toLowerCase();
    int location = phrase.indexOf(word);
    String string1 = phraseLowered.substring(location,(location +
    wordLowered.length()));
    String string2 = phraseLowered.substring(0, location);
    String string3 = phraseLowered.substring(location+word.length());
    System.out.println(string2+wordC+string3);
    string2 = string2.toLowerCase();
    for (int i=0; i < phrase.length; i++)
    (phrase.equals());                        <-------- ERROR LINE.
    phrase = wordC;
    System.out.println(+i);
    }ERROR:
    The error is:
    LineCensor.java:28: not a statement
    (phrase.equals());
    ^
    1 error ANOTher ErroR
    Enter a word to censor: CaT
    Enter a word to replace it: xxxx
    Enter line of text to censor:
    The cAT wAs CuRioUs abOuT otHER CAT's strings
    Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    at java.lang.String.substring(String.java:1932)
    at LineCensor.main(LineCensor.java:17) This error is coming up because of lower and high caps typing. This shouldnt be happening no matter how I type the sentence/word.
    Please help ?
    Edited by: kabootar on Apr 16, 2008 3:20 AM
    Edited by: kabootar on Apr 16, 2008 3:21 AM

  • Urgent - Question about logging and debugging.

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

    Hi,
    I have a question about the logging and debugging supported by
    Weblogic 6.0. From what I understood by reading the documentation
    it has classes e.g. NotCatalogLogger class for logging the information.
    The class has one method callded
    debug() for writing the debugging information. I want to log the
    debug messages only in some situation. Can I control this using
    some property? Because the documentation says that the debug information
    is logged only if application is running in debug mode. Now how
    do I change the mode of an application??
    Thanks and Reagrds,
    Manoj

  • Urgent question: AP Express and ISDN

    I really need to settle this doubt, as I am going to do an academic internship in Geneva and will live in a shared apartment where, seemingly, there are only ISDN connections (please correct me if I am wrong, since it uses a sort of "split plug" for the telephone line and the ethernet-like cable).
    My problem is: the room where I will be living does NOT have a connection plug, so I am thinking about buying an Airport Express to use wireless on both my iMac G5 and my iBook G3...is it possible? If not, is there any workaround?
    Thanks in advance for your help!
    Ric

    If you just have an ISDN connection that is intended to be connected to a computer via a device called an "ISDN terminal adapter" then you won't be able to use this connection directly with an Airport Express. You will first need to buy what is called an ISDN router - a device the ISDN connection can be cabled to, which in turn will share the connection with one or more networked devices using ethernet - like the Airport Express. ISDN routers are not items you just pick up in any computer shop - they tend to be fairly expensive and sold by dealers specializing in equipment for business networks. Some respondents to these discussion forums have had luck buying an ISDN router fairly inexpensively on EBay.

  • Question regd C++ and Java with Tomcat and SSL

    I have configured Tomcat with SSL and am running a servlet
    which is going to recieve input from a C++ Application.
    The team which are coding in C++ have a statement in their C++
    code 'HTTP1.1'
    My Tomcat is v 3.2.4
    Does this support HTTP 1.1 OR HTTP 1.0 PROTOCOL.??

    tomact latest version supports both HTTP specifications 1.1 and 1.0. If you want to make sure you for tomcat 3.2.4 then you can search the web and jakarta website for this.
    Regards
    Akhil Nagpal

  • Urgent question:can you replace source video and automatically have AE swap clips in timeline?

    Hi there
    Have an urgent question. I have finished editing a project that has been edited from pre-exported videos, but the problem is that i have been notified last minute if it is possible to change parts of it!
    Is is possible to change and re-render the pre-exported clips at same length that are affected and then replace the 'source footage' in after effects to have it automatically swap the clips that I've edited and cut up already? As it would take a very messy and extremely long time to manually change all the trimmed parts!
    It is only a small section of the source clip I need to change, but the overall composition edits are fine so I don't really need to touch that, it's just really to replace the footage but have everything to stay the exact same.
    Please advise!
    Appreciate this if anyone can! fairly urgent
    Thanks

    Yes, just right-click on a source in the Project bin and choose Replace Footage.

  • Urgent Question about System Center Server Names and Dashes

    Hey guys I have a quick Urgent question that would be awesome if it happens to get answered quickly :). 
    So in the past we had problems with different server names in components of System Center when setting up different servers.... I never myself saw the errors or what it did, but an absentee colleague did. For example is anything wrong with a name setup like
    xx-scom-01 / xx-scom-02  as compared to the standard scom01 scom02? We have a certain naming convention we are moving to and I wanted to see if this was fixed. I wanted to say it had something to do with the hyphens... anyways any foresight anyone can
    provide would be awesome. Thanks!

    Dashes in the name will work fine.
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Can anyone give me Interview question on forms6i and reports 6i(its urgent)

    plz give me Interview question on forms6i and reports 6i its urgent .plz mail it to me on paritosh [email protected]

    Check this link
    http://www.geekinterview.com/Interview-Questions
    You will find many information regarding interview questions of oracle related domains.

  • I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I c

    I have an urgent question about my indesign. I had problems with the creative cloude app and then uninstalled it and then installed it again. Now it is not opening and I cannot download it again either. Pls give me help and advice if there is anything I can do to repair it

    Please authorize ADE 3 with same credentials that you used with older version of ADE

  • My ipod touch 4th generation 8gb screen just broke yesterday can i get a new one or do i have to pay? because i put a 2 year warranty and next year the warranty will end.. can somebody please answer my question asap Thank You!(:

    my ipod touch 4th generation 8gb screen just broke yesterday can i get a new one or do i have to pay? because i put a 2 year warranty and next year the warranty will end.. can somebody please answer my question asap Thank You!(:

    You will need to pay to get it fixed. Check out options in link below.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101
     In Memory of Steve Jobs 

  • A question about grub and USB

    Hi All
    I have a quick question about grub and USB that I can't quite find the answer to by searching.   Most of the FAQs discuss booting a full linux dristribution from USB. My situation is this.  I am getting a new computer with two drives, the second will be arch and the first will be Vista (for my wife).  I want the computer to boot the same way that my wife's machine boots at work so I don't want to install grub on the MBR.  So, is there a way to have all of the grub config files and kernels installed on the second drive and simply install to grub boot loader to the MBR of a USB stick?  My goal would be to simply plug the USB stick into the new PC and boot arch from the second drive. 
    Thanks
    Kev

    i cant say for hp's
    havent worked on any in a while
    recent machines have been coupleof dell's , vaio & emachine
    which dells do offer it at least the ones i tried , my laptop does(dell)
    all home pc's are built by me which do offer to boot individual drives
    what hp you getting it may tell in specs
    are both discs sata? if so it might not offer this option with 2 drives of same interface
    check your power supply alot of these preconfigured machines put cheap under reated power supplies in there
    & will burn your motherboard i just replaced PS(250 watt) & mobo(845gvsr) in an emachines <cheap stuff<
    i hope you researched the pc before buying ie : mobo, power supply are the biggest concerns
    i find it much more benificial to build my own machine gives me peace at mind. the cost is sometimes more in $ but not always , your biggest expense is time researching hardware
    if you live in usa the best places to start looking are bensbargains.net & pricewatch.com
    i am not affiliated with either & niether sell the hardware they are just advertisers a place to buy
    for costomized machines that i would trust is unitedmicro.com theyll asemble & test before shipping
    i have gotten 2 machines so far from them with NO PROBLEMS with hardware (knock knock)
    you may want to consider this in your next venture for pc

  • Problem with Back and Next Buttons: a solution?

    Hello,
    It is well known that including the Back and/or Next buttons in Captivate quiz questions presents real problems. I have come up with what I think to be a solution. It should allow one to include both Back and Next buttons, if one wants to do this. It involves doing the following:
    With Question 1, do not include a Back button. (This is so that the quiz-taker cannot get out of the quiz scope in the forward direction.)
    Create this advanced action: If cpQuizInfoTotalUnansweredQuestions = 0, then Go To The Next Slide (i.e. the results slide); Else Continue.
    Insert a slide after the final question (and before the results slide). On this slide, include the following:
    A message to this effect: ‘You have not answered all of the questions. Please go back and complete all of them.’
    A button labeled ‘Return to Questions’ (on success: Jump to slide with Question 1). But include no other buttons. That is, if the quiz-takers lands up on this slide, he or she has only this option.
    On Enter (i.e. on entering the slide being described here), Execute Advanced Action =  the advanced action described in Item 2 above.
    Now for something odd. Before the slide described in Item 3, insert a slide with a Text Caption with variable $$cpQuizInfoTotalUnansweredQuestions$$. Keep the slide as brief as possible (something like 0.5 sec.) and make the text of the Text Caption invisible. And why all this? Because I found that, without it, problems arose quite regularly. If one or more questions were not answered, the quiz-taker would come, as expected, to the slide described in Item 3 above. The quiz-taker would then go back to complete the unanswered questions. But then—sometimes—the Item 3 slide would still appear, even though all the questions were answered! The quiz-taker would return once again to the questions (since this is the only option available), only to find that now none of the questions were answered! And at this point, there was no escape: the Item 3 slide would always appear no matter what one did. Why should inserting the additional slide described in the present item solve the problem? I don’t know. All I can say is that (1) without it, the problem arises often (though not always), and (2) with it, the problem hasn’t occurred yet, even though I’ve done lots of testing.
    Final note. It will be clear that this solution is meant to be used together with the option Allow Backward Movement. Will the solution work with Branch Aware? I don’t know yet. Will it work with Question Pools? Again, I don’t know yet. I’ve only done a bit of testing in both cases. The results thus far indicate that at least one of these options presents real problems. Both might.
    I’m still testing this solution (or what I hope is a solution). If anyone else wants to try it, I’d be interested in hearing how it goes.
    Best regards,
    Marvin DuBois

    Dear Lilybiri,
    Thank you for your response.
    1. 'I don't get it why you don't use the Submit All option?'
    Submit All is fine in some cases. But it limits the options: the quiz-taker does not get immediate (question-by-question) feedback. So where immediate feedback is wanted, the Submit All option presents problems.
    2. "Why do you need a Back button . . . ?'
    a. The Back button is needed during Review. Otherwise, the quiz-taker can only review in one direction.
    b. In some quizzes, the quiz-taker should be free to go back, whether to check earlier question slides (since the questions and/or responses can be relevant for the current question) or to re-read/re-hear information slides inserted between question slides.
    But the more general issue is this. The Cp Back and Next buttons provide us with possibilities, with further options. Workarounds are available, such as not allowing backward movement and placing a Clear button over Next. But these workarounds limit the possiblities, i.e. the possibilities that are there—i.e. that Adobe puts there. It's not that we always need these possibliities. But neither should we be hindered from using them if we so choose—and especially when we would be hindered simply because Cp doesn't work as well as it should.
    Kind regards,
    Marvin

  • One question about Pricing and Conditions puzzle me for a long time!

    One question about Pricing and Conditions puzzle me for a long time.I take one example to explain my question:
    1-First,my sale order use pricing procedure RVAA01.
    2-Next,the pricing procedure RVAA01 have some condition type,such as EK01(Actual Costs),PR00(Price)....,and so on.
    3-Next,the condition type PR00 define the Access Sequences PR00 as it's Access Sequences.
    4-Next,the Access Sequences PR00 have some Condition tables,such as:
         table 118 : "Empties" Prices (Material-Dependent)
         table 5 : Customer/Material
         table 6 : Price List Type/Currency/Material
         table 4 : Material
    5-Next,I need to maintain Condition tables's Records.Such as the table 5(Customer/Material).I guess the sap would supply one screen for me to input the data of table 5.At this screen,the sap would ask me to select one table,such as table 5.When I select the table 5,the sap would go to the screen to let me input the data of table 5.But when I use the T-CODE VK31 or VK32 to maintain Condition tables's Record,I found it's total different from my guess:
    A-First,I can not found one place for me to open the table,such as table 5,to let me input the data?
    B-Second,For example,when I select the VK31->Discounts/Surcharges->By Customer/Material,the sap show the grid view at the right side.At the each line of the grid view,you need to select the Condition Type at the first field.And this make me confused very much.Why the sap need me to select one Condition Type but not the Condition table?To the normal logic,it ought not to select Condition table but not the Condition Type!
    Dear all,I'm a new one in sd.May be this is a very stupid question.But it did puzzle me for a long time.If any one can  explain this question in detail and let me understand the concept,I will appreciate him/her very much.Thank you.

    Hi,
    You said that you are using the T.codes VK31 or VK32.
    These transaction codes are used to enter condition records for standard condition types. As you can see a grid left side having all the standard condition types like price, discounts, taxes, frieghts.
    Pl check using T.code VK11 OR VK12 (change mode)
    Here you can enter the required condition type, in the intial screen. (like PR00, MWST, K004, K005 .....etc)
    After giving the condition type, press enter or click on Combinations icon on top of the screen. Then you can see all the condition tables which you maintained for that condition type. Like as you said table 118, table 5, table 6 and table 4.
    You can select any table and press enter, then you can go into the screen in which you have all the field cataglogues you maintained for that table. For example you selected combination of Customer/Material (table 5) then after you press enter then you can see customer field on top, and material fields.
    You can give all the required values and save the conditon record.
    Hope this is clear.
    REWARD IF HELPFUL.
    Regards,
    praveen

  • Create tooltip on Previous and Next button in ADF UI

    Hi,
    I have a question on how to create tooltip on Previous and Next button in ADF UI.
    The tooltip for Previous button shows previous record id and previous record name.
    The tooltip for Next button shows next record id and next record name.
    How can you get previous and next record info easily when you are on the current record?
    Thanks,
    Jenny

    Hi,
    which ADF UI, Swing or Faces ? Note that on Faces the tootip is set cia "shortDesc" property
    Frank

  • HT1918 I can't remember my security question's answers and I can't change them, and I wanna buy something from the store, it requires those answers, what can I do??

    I can't remember my security question's answers and I can't change them, and I wanna buy something from the store, it requires those answers, what can I do??

    If you have a rescue email address set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address set up then go to Express Lane and select 'iTunes' from the list of 'products' in the middle of the screen.
    Then select 'iTunes Store', and on the next screen select 'Account Management'
    Next choose 'iTunes Store Account Questions' or 'iTunes Store account security' (it appears to vary by country) and fill in that you'd like your security questions/answers reset.
    You should get an email reply within about 24 hours (and check your Spam folder as well as your Inbox).
    Or you could see if the second half of Kappy's reply in this thread helps : https://discussions.apple.com/message/20357006#20357006

Maybe you are looking for