Commit after change of af:SelectOneChoice

Hi,
I have a af:SelectOneChoice in a table and the value is #{row.bindings.VastgelegdDoorId.inputValue}
Now when the users selects a other value from the LOV I want that it is committed direclty after change.
I have created a ValueChangeEvent for the af:SelectOneChoice and in there is a commit, but then there is a commit done with the old value.
How can de commit be done with the new value?
Thanks in advance.

I have a fix for my problem:
In the pageDefenition I added 'Employees1Iterator' that is the list that is visable in the LOV.
        BindingContainer bic = this.getBindings();
        DCIteratorBinding  listIter = (DCIteratorBinding)bic.get("Employees1Iterator");
        int curIndex = (Integer)valueChangeEvent.getNewValue()-1;  // get the index -1 empty row
        Row datRow = listIter.getRowAtRangeIndex(curIndex); // get that row
        DCIteratorBinding iter = (DCIteratorBinding)bic.get("OpenTickets1Iterator");
        Row currentRw = iter.getCurrentRow();     
        currentRw.setAttribute("VastgelegdDoorId", datRow.getAttribute(0)); //Save the new id
        commit();

Similar Messages

  • Avoid Commit after every Insert that requires a SELECT

    Hi everybody,
    Here is the problem:
    I have a table of generator alarms which is populated daily. On daily basis there are approximately 50,000 rows to be inserted in it.
    Currently i have one month's data in it ... Approximately 900,000 rows.
    here goes the main problem.
    before each insert command, whole table is checked if the record does not exist already. Two columns "SiteName" and "OccuranceDate" are checked... this means, these two columns are making a unique record when checked together with an AND operation in WHERE clause.
    we have also implemented partition on this table. and it is basically partitioned on the basis of OccuranceDate and each partition has 5 days' data.
    say
    01-Jun to 06 Jun
    07-Jun to 11 Jun
    12-Jun to 16 Jun
    and so on
    26-Jun to 30 Jun
    NOW:
    we have a commit command within the insertion loop, and the each row is committed once inserted, making approximately 50,000 commits daily.
    Question:
    Can we commit data after say each 500 inserted rows, but my real question is can we Query the records using SELECT which are Just Inserted but not yet committed ?
    a friend told me that, you can query the records which are inserted in the same connection session but not yet committed.
    Can any one help ?
    Sorry for the long question but it was to make u understand the real issue. :(
    Khalid Mehmood Awan
    khalidmehmoodawan @ gmail.com
    Edited by: user5394434 on Jun 30, 2009 11:28 PM

    Don't worry about it - I just said that because the experts over there will help you much better. If you post your code details there they will give suggestions on optimizing it.
    Doing a SELECT between every INSERT doesn't seem very natural to me, but it all depends on the details of your code.
    Also, not committing on time may cause loss of the uncommitted changes. Depending on how critical the data is and the dependency of the changes, you have to commit after every INSERT, in between, or at the end.
    Regards,
    K.

  • Can I know what is "Commit" after failover to Azure ?

    Can I know what is "commit" after failover to Azure ?
    I want to know "Commit" button of protected items.
    SETUP RECOVERY: [ Between an on-premisese Hyper-V site and Azure ]
    After failover from on-premis Hyper-V site to Azure, Protected item show "Commit" button.
    "Commit" Jobs include "Prerequisite check"  and "Commit".
    Regards,
    Yoshihiro Kawabata

    In ASR Failover can be thought to be a 2 Phase Activity.
    1) The Actual Failover where you bring up the VM in Azure using the latest recovery point available.
    2) Committing the failover  to that point.
    Now the question in your mind will be why do we have these 2 Phases. The reason for this is as follows
    Lets say you have configured your VM to have 24 recovery points with hourly App Consistent Snapshots. When you failover ASR automatically picks up the latest point in time that is available for failover (day 9:35 AM). Say you were not happy with that recovery
    point because of some consistency issue in the application data, you can use the Change Recovery Point button(Gesture) in the ASR Portal to choose a different recovery point (say an app consistent snapshot from 9:00 AM that day) to perform the failover.
    Once you are satisfied with the snapshot that is failed over in Azure you can hit the Commit Button. Once you hit the commit button you will not be able to change your Recovery Point.
    Let me know if you have more questions.
    Regards,
    Anoop KV

  • Master-detail: detail field not displayed after changed by master field

    I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
    In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
    How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.

    Wouter,
    I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
    So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
    Steven Davelaar,
    JHeadstart team

  • Message Server Unreachable (after changing IP address at host)

    Hi guys,
    I changed the IP address in my server. According to note 403708, I updated the new IP address in /etc/hosts. The note also suggests me to change in /etc/services but I see no IP address for me to update.
    Later when I restart my sapinstance, I see the disp+work.exe is "Running, but Message Server Unreachable". I've also updated the IP address in SM59 but I see no change.
    This is what I got from dev_rfc.trc:
    ERROR file opened at 20071206 221839, SAP-REL 620,0,674 RFC-VER 3 549374 MT-SL
    T:5048 Error RFCIO_ERROR_MESSAGE in abrfcio.c : 1400
    T:5048 <* RfcDispatch [1] : returns 1:RFC_FAILURE
    This is what I got from dev_disp:
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  3212]
    Anyone has any idea?

    Yes I'm on Windows, the path that i'm refering is:
    winnt/system32/drivers/etc/services
    winnt/system32/drivers/etc/hosts
    Anyway my prob is fixed now. Probably the problem is due to I did not restart the server after changing the IP. Anyway everything looks pretty fine now
    Thanks guys

  • Internet very slow after changing my previous airport extreme to my new 2T TC

    Hi,
    I just got a new 2T time capsule to replace my Airpot Extreme that worked fine. After installing it I chose to import a previous wifi network to the new TC and my internet became very slow. I read a few online documents sugesting that the internet slows down when backing up large data, but I dont think it is backing up (I did a force quit on systems preferences that "froze" with the cursor becoming a spinning ball) and after that tryed to restart my mac pro, but it has been recovering space from file vault for 2 hours. I am trying to access the internet from my mac air, but the speed is 10% of what I usually get.
    Any suggestions? Starting to regret getting the TC, I had high expectations about it.
    Thanks
    Rubens

    Thanks William.
    I got help from Apple by phone and aparrently after importing the old airport extreme configurations, my time capsule ended with wrong "Radio channel selection" and after changing the 2.4Ghz to 9 and the 5Hhz to 157 the internet connection is back to normal. thanks

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • Problems with PObject::destroy(void*) and commit after this

    Hi there
    I have some problem with delete garbage objects.
    For example:
    I create my object
    MyObject * o = new (conn,"MY#TABLE") MyObject();
    if (some_condition)
    PObject::destroy(o);
    delete o; //this work well
    //but after this
    conn->commit();
    I have got the error
    OCI-21710: argument is expecting a valid memory address of an object
    help me anybody
    can I delete/destroy object if one has been init over new (conn,table)
    and absent problem with commit after this ?

    Thank you for answer
    but what you mean about this code ?
    MyObject * o = new (conn,"MY#TABLE") MyObject();
    if (some_condition)
    o->markDelete();
    PObject::destroy(o);
    delete o;
    //but after this
    conn->commit();
    This is work without error.
    Message was edited by:
    pavel

  • HT5624 How do I update my Apple ID on iPad and iPhone after changing it?

    How do I update my Apple ID email address on iPhone and iPad after changing the email but not password.  I have verified my new email on iPhone iPad and iMac but settings on all for iCloud still show my old email address. I can't use anything now that needs my Apple ID

    Hello there, Chivs86.
    From what it sounds like you are wanting to sign out of iCloud with the "old" ID and sign in with the new. The following Knowledge Base article should help you with that issue:
    iCloud: Features that work with one account at a time on iOS 5 and OS X Lion or later
    http://support.apple.com/kb/TS4020
    Specifically:
    To change a secondary account to a primary account
    iOS 5 or later:
    Tap Settings > Mail, Contacts, Calendars.
    Delete the secondary account.
    Tap the Back button.
    Tap iCloud.
    Delete the primary account.
    Add the secondary account that you want to be your primary account.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How can we remove the space after changing look and feel to generic

    Hi
    I want to remove the space which left blank after changing look and feel to generic in formsweb.cfg file.
    Can anybody help me to remove this blank space.

    Hi,
    can you be more specific on teh space you mean?
    Frank

  • Dear support @Apple,  I have tried to log in App Store with my Apple ID 3 times but never possible.  I have tried to change password 2 times. It was successful.But soon after change of my password, I could not log in App store.  It says always incorrect u

    Dear support @Apple,
    I have tried to log in App Store with my Apple ID 3 times but never possible.
    I have tried to change password 2 times.
    It was successful.But soon after change of my password, I could not log in App store.
    It says always incorrect user name or password. But I input correct ! Because just I successfully changed my password through secret question.
    Third time when I tried to change password, the page did not open!
    So I checked my connection by netstat , and I trace the IP address ; 17.154.66.17 this is apple IP, but when I trace , it did not show the route. I will copy
    Traceroute has started…
    traceroute to 17.154.66.17 (17.154.66.17), 64 hops max, 72 byte packets
    1  220.224.141.129 (220.224.141.129)  490.517 ms  64.527 ms  94.524 ms
    2  115.255.239.97 (115.255.239.97)  65.157 ms  89.128 ms  89.806 ms
    3  124.124.251.241 (124.124.251.241)  104.972 ms  79.051 ms  96.948 ms
    4  * * *
    5  62.216.147.137 (62.216.147.137)  102.266 ms  85.581 ms  88.352 ms
    6  xe-0-0-0.0.pjr04.ldn001.flagtel.com (85.95.25.186)  221.939 ms  225.223 ms  236.605 ms
    7  xe-11-0-0.edge5.london1.level3.net (212.187.138.53)  231.629 ms  232.045 ms  233.673 ms
    8  ae-52-52.csw2.london1.level3.net (4.69.139.120)  373.798 ms  390.412 ms  383.277 ms
    9  ae-57-222.ebr2.london1.level3.net (4.69.153.133)  382.653 ms  382.558 ms  376.740 ms
    10  ae-43-43.ebr1.newyork1.level3.net (4.69.137.74)  405.088 ms  377.679 ms  386.527 ms
    11  ae-91-91.csw4.newyork1.level3.net (4.69.134.78)  378.499 ms  389.733 ms  396.375 ms
    12  ae-92-92.ebr2.newyork1.level3.net (4.69.148.45)  391.706 ms  389.605 ms
        ae-82-82.ebr2.newyork1.level3.net (4.69.148.41)  381.615 ms
    13  4.69.135.185 (4.69.135.185)  380.183 ms  414.398 ms  387.054 ms
    14  ae-91-91.csw4.sanjose1.level3.net (4.69.153.14)  384.980 ms  381.375 ms  386.453 ms
    15  ae-4-90.edge2.sanjose3.level3.net (4.69.152.209)  377.304 ms  365.457 ms  373.281 ms
    16  * * *
    17  * * *
    18  * * *
    19  * * *
    20  * * *
    21  * * *
    22  * * *
    23  * * *
    24  * * *
    25  * * *
    26  * * *
    27  * * *
    28  * * *
    29  * * *
    30  * * *
    31  * * *
    32  * * *
    33  * * *
    34  * * *
    35  * * *
    36  * * *
    37  * * *
    38  * * *
    39  * * *
    40  * * *
    41  * * *
    42  * * *
    43  * * *
    44  * * *
    45  * * *
    46  * * *
    47  * * *
    48  * * *
    49  * * *
    50  * * *
    51  * * *
    52  * * *
    53  * * *
    54  * * *
    55  * * *
    56  * * *
    57  * * *
    58  * * *
    59  * * *
    60  * * *
    61  * * *
    62  * * *
    63  * * *
    64  * * *
    What it means??
    Please help !!
    To post this question, I tried thierd time to change password, and before I tried to log in to App store, I logged in this community, and I could !
    Then I could finally log in App store also.
    But still I feel something is wrong with my connection.
    Why the trace route does not show to the apple site ?

    This is a user to user forum. Apple is not here. Apple does not answer questions here.
    iTunes Support -
    http://www.apple.com/support/itunes/
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • HT4623 After changing broadband suppliers I have a new email address and have had to change my Apple id. I can't change it on my phone so can't access anything. Why doesn't it change when I sync it on itunes and what can I do?

    after changing broadband suppliers I have a new email address. I therefore had to change my apple id. It won't change on my iphone even after syncing. What should I do?

    Follow this procedure:
    1. Go to Settings > iTunes & App Stores > Apple ID.
    2. Tap your Apple ID
    3. Sign out
    4. Sign in with your updated Apple ID.

  • Some, but not all, podcasts existing on the iPod no longer appear in iTunes. Different podcasts have been affected at different times, after changes in the state of the iPod. Only podcasts are affected.

    I have not seen this precise issue addressed anywhere. I don’t know if it’s an iTunes or an iPod problem:
    - Some, but not all, podcasts existing on the iPod no longer appear in iTunes;
      this, after normal behavior for more than a year since purchase of the iPod.
    - Different podcasts have been affected at different times, after changes in the state of the iPod.
    - Only podcasts are affected.
    - This concerns an iPod nano 6th gen. and iTunes 11.0.2 (26) on System 10.6.8
    - The only change to iTunes, the Mac, or the iPod is that just before this condition began
      I’d begun syncing an iPhone via iTunes.
    I sync manually (“manually manage music and videos”). The first time this happened, I wanted to delete seventeen podcast episodes (all belonging to one podcast) existing on the iPod — but they didn’t show up in iTunes. I tried re-downloading them and re-syncing, to see if the new versions would somehow “re-link” to iTunes. They didn’t. Only one — new — episode appeared in iTunes.
    I ultimately reset the iPod and manually resynced all the podcasts I currently had on iTunes. That worked, though I had to painstakingly add in all the other content deleted by the reset.
    So: after that reset and manual sync, all podcasts and episodes on the iPod were visible to iTunes and I was able to delete the podcast and its — now 18 — episodes I’d wanted to get rid of to begin with. But the next time I connected the iPod, only 8 podcast episodes out of 21 episodes total existing on the iPod were visible to iTunes. These are different podcasts; I’d deleted the original “invisible” ones.
    By “visible,” I mean in the “Podcasts” list view under “[name]’s iPod” in the iTunes sidebar. If I select “[name]’s” iPod in the iTunes sidebar and the “Podcasts” tab, all podcasts and episodes are visible, though greyed out because I’m set to sync manually. It’s unclear to me if these are the podcasts on the iPod or those currently in iTunes, as they are currently the same. If I switch to syncing automatically, all content on the iPod will be lost again, so I’m not up to trying it at the moment.
    As I said,  this involves only podcasts. All other content on the iPod does appear in iTunes.

    I have the same problem- i see my movies in the ipod section in itunes and they even show as mpeg4 in the 'kind' section but they dont have that small TV icon next to them. if i play these in itunes, they play fine- but try playing them on the ipod and all you hear is the sound and no picture. All videos that i manually transfer work fine in the beginning- its when i hook up the ipod to the comp again and start itunes- they start showing up without the 'tv' icon!! i have to again transfer them from the itunes library to activate them as videos.
    Need Help!!!

  • How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    How can I change my original security questions? After changing my AppleID and password, I am not given an opportunity to change my security questions, which I cannot remember the answers to, so I cannot purchase any music.

    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities.
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service

Maybe you are looking for

  • I cannot connect my iPod touch to iTunes

    There are several factors preventing me from connecting my sister's iPod Touch to iTunes on my computer (the same one I used to set up her iPod): 1.  The sleep/wake button is jammed, or just doesn't work. The button ITSELF feels fine.  It pushes down

  • Error in posting with Arrears

    Hi Experts, I have run payroll for one EE in the 2nd Period for both 1st & 2nd periods. and I have posted results in the  2nd period, and no errors were showing while posting in Live run too. BUT the problem is with amount what It had posted . for ex

  • Fieldpoint IO points are all greyed-out and alias is "unknown"

    the app was originally written in 6i or 6.1 I don't remember. I am updating and adding an Oracle backend. Anyway ... Running LabView 7 on Win2K server, MAX 3.2 in the Fieldpoint IO point controls/indicators, all text is always greyed-out, and when I

  • Gif images blurry - asha302

    Hello people. I have this issue with relatively large GIF images, they look blurred when I use the zoom-in. They actually don't zoom. I solved this using the editor and saving them as JPGS but I would like to know if this is something in common with

  • Password protecting PDF from copy/paste, not secure in Mac "Preview"?

    I created a book for someone and sent a PDF of it.  I secured it with a password so it can be printed but not edited or copy/paste compatible.  When I open the PDF on Acrobat on my PC, its locks me out as it should.  I sent to friend and of course it