Problem with getting affected row only in AdvancedTable in OAF(It is very Urgent, I hope you will help)

Hai,
               I have problem in advancedTable in oaf.   I don't know how to get last clicked row events in advancedTable. I construct the advancedTable using VO without EO.   I want to save last modified record into database. But I can't do.  This is my code below.
Controller code
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
   super.processFormRequest(pageContext, webBean);
    try{      
          OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();         
          if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
            String budgetName = pageContext.getParameter("Budget");
           System.out.println("Budget Name :"+budgetName);
           Serializable[] params ={budgetName};     
            am.invokeMethod("budgetName", params);
        if(pageContext.getParameter("save1")!= null){
        OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
        System.out.println("vo :"+vo);
        if(vo !=null){    
            Row row[] = vo.getAllRowsInRange();
                               System.out.println("rowcount  :"+row.length);
                               for (int i=0;i<row.length;i++)
                                 BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                  String account =   rowi.getAccount();
                                  System.out.println("account :"+account);
                                  String currentYearBudget = rowi.getAttribute1();
                                  System.out.println("currentYearBudget :"+currentYearBudget);
                                  if(account!=null &&currentYearBudget!=null){
                                      Serializable[]   paramsValue ={account,currentYearBudget};
                                      String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                      System.out.println("Success flag is :"+flag);
                                  }else {                                     
        }else{           
    }catch(Exception e){
        e.printStackTrace();

Hi sandeepM,
               I used advancedTable to display all records.  When I enter value into messageTextInput to save into database.
I created View Object (VO). I didn't create any Entity Object(EO). When I press the save button, it save all the 20000 records into db. I want to save only one records at the time, whatever I entered into messageTextInput.
VO:BudgetCeilingVO1
Attribute name:Account
This is my Controller code:
  public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
   super.processFormRequest(pageContext, webBean);
    try{     
          OAApplicationModule am = (OAApplicationModule) pageContext.getRootApplicationModule();        
          if ("update".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM))) {
            String budgetName = pageContext.getParameter("Budget");
           System.out.println("Budget Name :"+budgetName);
           Serializable[] params ={budgetName};    
            am.invokeMethod("budgetName", params);
        if(pageContext.getParameter("save1")!= null){
        OAViewObject vo = (OAViewObject)am.findViewObject("BudgetCeilingVO1");
        System.out.println("vo :"+vo);
        if(vo !=null){   
            Row row[] = vo.getAllRowsInRange();
                               System.out.println("rowcount  :"+row.length);
                               for (int i=0;i<row.length;i++)
                                 BudgetCeilingVORowImpl rowi = (BudgetCeilingVORowImpl)row[i];
                                  String account =   rowi.getAccount();
                                  System.out.println("account :"+account);
                                  String currentYearBudget = rowi.getAttribute1();
                                  System.out.println("currentYearBudget :"+currentYearBudget);
                                  if(account!=null &&currentYearBudget!=null){
                                      Serializable[]   paramsValue ={account,currentYearBudget};
                                      String flag =(String)am.invokeMethod("saveBudgetCeiling",paramsValue);
                                      System.out.println("Success flag is :"+flag);
                                  }else {                                    
        }else{          
    }catch(Exception e){
        e.printStackTrace();

Similar Messages

  • HT1435 hi there i have this problem with my ipod on the second picture which says "Pease Wait Very Low Battery" but it will not charge at all or turn on, sync with computer anybody any ideas.

    Hi there I have an ipod classic which will not charge and keeps saying "Please Wait Very Low Battery" can anbody help me its just sad to see it go.

    Normally it takes 2 to 4 hours to fully charge an iPod Battery, using a USB2.0 port or wall charger.
    Even if the battery is dead, you can have it replaced at Apple Store for about US$60 or at any 3rd Party Ipod Service Center for less.

  • OMG! Another image saving problem, hope you will help me:)

    Hi there, I just found out that Java Console says:
    Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.io.FilePermission slika.jpg delete)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkDelete(Unknown Source)
         at java.io.File.delete(Unknown Source)
         at javax.imageio.ImageIO.write(Unknown Source)
         at postavka.snimi_sliku(postavka.java:76)
         at postavka.actionPerformed(postavka.java:101)
         at java.awt.Button.processActionEvent(Unknown Source)
         at java.awt.Button.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    when I'm trying to save an "slika.jpg" file from my aplet image;
    What does it mean people? Why cant I save my images?

    Your doing this through an applet ?
    Welcome to the wonderful world of permissions
    http://java.sun.com/docs/books/tutorial/security/tour1/index.html

  • Is it possible to set the performance in Camera Raw, like in PS? I have problems with the performance of the adjustment brush. It is a very bad workflow.

    I have problems with the performance of the adjustment brush. It is a very bad workflow.

    Had you specified you're on Windows, I wouldn't even have replied. I don't do windows.
    Yes, it has been a waste of time for both you and me.
    You don't even know how to ask a question properly and you want me to read the FAQs?  Hah! 
    No one will take your word for "ACR latest version", and "PS CC latest VersionVersion [sic]", as many users believe they are fully updated when they are not. Exact version numbers are needed.
    8 GB is considered the realistic minimum to run Photoshop CC, but it's far from optimal—on any platform.  There are other factors that can be at play and which you don't specify, such as the space available on each of your hard drives, whether you have a physically separate, dedicated hard drive for Photoshop's scratch drive, what video card you have and how much VRAM does it have, what your graphics settings are in Photoshop's Preferences > Performance, etc.
    That's why I had indicated a link for you to read:
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers: 
    http://forums.adobe.com/thread/419981?tstart=0
    If you read that link in its entirety and provide the pertinent information, maybe some of the Windows experts will be able to help you out.
    Now I'm out of here.

  • Just moved my email from entourage to Mail. Having real problems with getting my signatures to work properly. When adding in a small company logo, windows computers only receive signature as an attachment. Am sending email as Rich Text. Any ideas on a fix

    Just moved my email from Entourage to Mail. Having real problems with getting my signatures to work properly despite sending email as Rich Text.
    When adding in a small company logo to the signature, PC's / windows computers only receive signature and logo as attachments.
    I've tried all possible fixes I can find including getting a PC user to format the logo but no joy. Has anyone experienced this and any ideas on a fix gratefully received.

    Send it as html so the signature is an image source URL

  • Problems with Click a row in the Table

    Dear All,
    I am new to Java GUI. I got some problems with clicking the row in a table.
    My table allows the user to delete some rows fromt the table. When the user click a row or some rows in my table, the delete button should be enabled. It does work in most of the time. But sometimes, even the row being hight lighted, the button is still not enabled.
    Do you have any idea for what can cause this problem?
    What I did is :
    1. add a mouse listener to the table
    _userTable.addMouseListener(new java.awt.event.MouseAdapter()
    public void mouseClicked(MouseEvent e)
    userList_mouseClicked(e);
    2. then, if the row being selected is > 0, I will enable my delete button.
    Can anybody help?
    Thanks!

    Dear All,
    I am getting problems with single selection in a table. Although I have set the selection model to single, if I select a row int the table and then depress Ctrl/Shift multiple rows are selected.
    The code for set single selection is :
    ListSelectionModel seleModel = myTable.getSelectionModel();
    seleModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
    Any idea about this? Is this a bug in JAVA?
    Thanks!

  • WiFi only works close to router, DNS fail, Signal Bars present but Safari says no Internet, I've deleted and readded through to reset and full reset, I had no problem with 4.3.2 only 4.3.3 both my iPhone4 and my iPad2. I am now beside router - no problem

    Help
    WiFi only works close to router, DNS fail, Signal Bars present but Safari says no Internet, I've deleted and re-added through to reset and full reset, I had no problem with 4.3.2 only 4.3.3 both my iPhone4 and my iPad2. I am now beside router - no problem, but go 20 metres and WiFi becomes unstable. Only way to get either to work is disable WiFi either as a Hot Spot or turn it off and use the 3G connection. This worked with 4.3 &amp; 4.3.2 what has gone wrong? I raised it at the Apple Store in Belfast as a problem but was told that there was no problem with Apple but I must have a faulty router - yeah - that's a lot of faulty routers, my home, my office, my holiday home, Starbucks, my friends house, my son's house. I've tried all the 'fixes'. I think it is a plan to force us to buy Apple Routers

    Two ways out, I added two more Belkin Access Points in my house in Spain so that I'm not more than 10Mtrs away, (Reinforced Concrete & solar glass 2010)
    I bought 3 Apple Airports, 1 x Extreme and 2 x Express (1 as a hard wired AP, 1 as an extender) for my other house (Brick construction 1930's)
    Everthing now works perfectly, as I said 'an apple plot', so either blast them with signal or visit your nearest apple store.
    Early beta iOS5 (iPad) is also much inproved in Beta 3, I have not had any problem with 'Lion'
    Happy hunting!
    john

  • I am having problems with my ipod syncing all of my videos to my ipod from my itunes playlist, it will only sync about half even though they are all checked

    i am having problems with my ipod syncing all of my videos to my ipod from my itunes playlist, it will only sync about half even though they are all checked

    I assume there is more than ample space remaining on your iPod to hold all the videos?  Are you getting any error messages during the sync process?
    Do all of these videos play okay in iTunes?  Is the sync only checked songs and videos option enabled from under the iPod's Summary tab?
    What other setting do you have enabled from under the iPod's video configuration tab in iTunes?
    B-rock

  • I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my we

    I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my website online (with Firefox, Explorer, Chrome browser) I always get the message 'Forbidden, You don't have permission to access / on this server.' Can somebody help me please? I have to get my website online..Thank you!

    Hello Els,
    it's well known, that in all these cases you describe I'm not a friend of a detailed Troubleshooting (I see Nancy#s smile already).
    To be able to be independent in all this things It is one of the reasons why I prefer an external FTP program. The difficulties with which you have to fight encourage me in this opinion, not least because we always search for experts, we don't charge a "jack of all trades".
    To manage several websites or to upload my files and sometimes for the opposite way, for a necessary download from my server or to use a "a site-wide synch", I'm using FileZilla. It simply looks easier for me to keep track of all operations precisely and generate or reflect easily the desired tree structure.
    Above all, FileZilla has a feature (translation from my German FileZilla) called "compare file list". Here it's possible to use file size or modification time as a criterion. There is also the possibility to "hide identical files", so that only these files which you want to redact remain visible.
    And even if it means you have to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read informations about how it works:
    http://filezilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager
    Mac: Mac OS X (Use: Show additional download options)
    http://filezilla-project.org/download.php
    Of course, you also need all the access data to reach your server and for MIME issues, you should contact your web host/provider.
    Good luck!
    Hans-Günter
    P.S.
    Since I use two screens, the whole thing became even more comfortable.

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

  • Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it acr

    Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it across all the places around to pay their attention. This is a desperate move, so if you are not the right people to help me to get my message accross, may be you can advise where can I go.
    Thank you, and sorry for the language.
    Vitas Dijokas
    I am sorry to say that, but your security makes my life miserable – it’s been 2 months since my Apple ID account got stuck, and since then I cannot update 37 applications (to date), i.e. most of my applications. Half of them I bought. I also paid for iCloud, and it is not working. I paid money and I am stuck with old applications and no iCloud. Your security *****. Your service ***** too. It took your service 1 month to finally understand why this happened to me, and it took me tens of emails to you and 3 hours of telephone conversation to find out the reason for my problem. And the problem is still not fixed. NOT FIXED. You just leave your customer – the one who paid you money and spent so much time with you trying to help you help me – and nothing. You tell me:  “Vitas, Stick your stinky iphone in your *** and enjoy life, we do not care!” *************.
    It is ******* outrageous, and you should know that,  guys. Get into the ******* database and correct the bug. Get someone in the partners-telephone carriers company (it is Orange as carreer and Cellcom as seller of the phone)  authorized to Identify me in personal encounter in one of the branches in Israel (where I live) and make sure it is really me, and get the ******* system accept my password and let me use my phone.
    Otherwise **** off. None of my friends will get my advise to buy an iphone or any of apple products. And I think you should be very attentive to cases like this, guys. Do your work for the money we pay, or disappear. There are many others eager to take your place, and if the problem is not fixed I will eventually go to the others. My patience is lost, and as soon as I can afford another phone I will change it. AND I WILL TRY TO GIVE BAAAAAD PUBLICITY TO APPLE – I am threatening here, so ACT NOW.
    Vitas Dijokas

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Problems with getting my Ipod Touch to work on my Sony Bravia or any TV

    I am having problems with getting videos or movies to play on my Sony Bravia HDTV or any TV. I have a first generation Ipod Touch and I have the Apple AV Composite Cables and all I get is sound for both TV's that I tried. I read one post where some guy had a faulty Ipod that wouldn't work. Does anyone know how of something hidden or special that needs to be done or how did they fix the problem if they had the same one? Thank, ejcarlson

    Check connection, if you have a case on your Ipod the connection may not be good enough.

  • Problem with getting resized image's bytes

    I've got a problem with getting correct bytes of a newly resized image. The flow is that I retrive an image from the filesystem. Due to the fact that it is large I resize it to a 50x50px thumbnail. I can display this thumbnail in #benchmark1 (see code below). Unfortunately something's wrong with my imageToBytes funtion which returns reasonably small size of image but is totally useless - I can't make an image of it anymore so at #benchmark2 the application either crashes or keeps freezing. I saved this byte array on my disk and tried to preview under Windows how does it look but I got a message "Preview unavailabe". I did some digging in the Internet and I supposed that it's because I don't use any jpg or png encoders to save the file. Actually I think that it's not the case, as the bytes returned from method imageToBytes look weird - I cannot even make a new image of them and display it without any saving in memory.
                                  byte[] bytes = FileHandler.readFile (
                                          FileHandler.PHOTOS_PATH, fileName);
                                  Image img2 = Image.createImage (bytes, 0, bytes.length);
                                  img2 = ImageHandler.getInstance ().resize (img2);
                                                    //#benchmark1
                                  bytes = ImageUtils.imageToBytes (img2);
                                  img2 = Image.createImage (bytes, 0, bytes.length);
                                                    //#benchmark2my imageToBytes function is as follows:
         public static byte[] imageToBytes (Image img)
              int[] imgRgbData = new int[img.getWidth () * img.getHeight ()];
              byte[] imageData = null;
              try
                   img.getRGB (imgRgbData, 0, img.getWidth (), 0, 0, img.getWidth (),
                           img.getHeight ());
              catch (Exception e)
              ByteArrayOutputStream baos = new ByteArrayOutputStream ();
              DataOutputStream dos = new DataOutputStream (baos);
              try
                   for (int i = 0; i < imgRgbData.length; i++)
                        dos.writeInt (imgRgbData);
                   imageData = baos.toByteArray ();
                   baos.close ();
                   dos.close ();
              catch (Exception e)
              return imageData;
    I've run totally out of any idea what's wrong, please help!
    Edited by: crawlie on Jul 17, 2010 6:21 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hey Crawlie,
    Please note that simply writing int values into ByteArrayOutputStream will not suffice. Please have a look at the following conversion from int pixel value into byte[4]:
    public static final byte[] intToByteArray(int value) {
            return new byte[] {
                    (byte)(value >>> 24),
                    (byte)(value >>> 16),
                    (byte)(value >>> 8),
                    (byte)value
    }Good Luck!
    Daniel

  • Problem with getting iPod to work.

    I'm having a problem with getting an iPod to connect to my computers. Also I can't even really get it to run. My brother gave it to me one or two years ago and it had these problems I just didn't think of the idea of going directly to Apple to figure it out. It's a 30 GB black iPod if that helps. When I plugged it in it showed the battery symbol. When I leave it for a while it shows the Apple symbol. Then it comes up with this: http://spirrwell.webatu.com/ipod.jpg If you can help thanks in advance!
    Message was edited by: Spirrwell

    I figured out that it was a hard drive problem so I'll find a fix if not I guess I'm screwed.

  • Problem with getting the little blackberry icon

    Hi the blackberry I'm using is working and up to date. I was setting up my mates blackberry 9320 but having a problem with getting the little blackberry icon to appear in the top right corner of my phone where the GMS is and signal bar and stuff its something to do with blackberry.
    I tried downloading bbm and it say associating bbm with blackberry id and constant loads with nothing happening bbm not working
    I NEED THE TINY BB ICON AT TOP RIGHT???

    Hi neal123
                            That BlackBerry icon will appear near signal bar when we activate  BIS on a 3G device. Did he activated BIS on his account. ? 
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

Maybe you are looking for

  • Help with Pivot Table

    I'm trying to create an airplane seat map.  2 tables boarding and seats, boarding has the seat assignment (seatid) and seats has the id as well as row (eg 1) and position (eg A, B,C).  I'm trying to pivot the two together so I see which seat is taken

  • Feature Request Marked as Being in SQL Developer 3.0 Isn't

    The Unit Test feature request titled "Unit Test Implementation Specific Startup/Teardown" has a Status that is "In Release 3.0", but what was added in version 3.0 was the ability to have multiple startups and teardowns per Test, not what this feature

  • Is this HTML? Javascript? Or a Dreamweaver function?

    I am trying to learn javascript and I don't really know all commands in HTML, so does the following utilize any js or is it straight html? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <he

  • Mobile Me Alias not showing up in "From" drop down list in Mac Mail

    I have a couple of older .mac/Mobile Me email aliases that used to show up as either [email protected] or [email protected] in Mac Mail in the From drop down list, as recently as yesterday. Today, all I can see for any alias that has both the .mac an

  • How to convert sRGB images to CMYK retaining icc profiles?

    I was given the follwoing info. but not sure it answers fully - it still doesn't resolve the problem of converting to CMYK with the icc profile. I think this might be an option if the profile is loaded into the colour setting (colour settings under e