Chaging the table value after update

Hi All,
I want to update a certain column ( date column ) after update is done. I can do this using "before update" trigger. But I'm getting some transaction issues when the trigger is written as before update ( Error from java side saying data is modified outside the transaction ) . So i was wondering whether there's another way to achieve the same, whether I can change data after update is done. I searched the net and found "cannot change NEW values for this after update trigger type". Anyone knows how to do this ?
Thanks in Advance !

Hi all,
I found the real reason for this problem. Entity bean for table which I'm trying to write trigger, has concurrency-strategy="Optimistic" and optimistic-column="db_mod_date". This db_mod_date is the column which I was trying to update using a trigger.
i.e Following configuration set to entity bean. Therefore weblogic updating "db_mod_date", hence no need of trigger.
@weblogic.cache concurrency-strategy="Optimistic" max-beans-in-cache="200" idle-timeout-seconds="60" cache-between-transactions="true"
@weblogic.persistence delay-updates-until-end-of-tx="True" verify-columns="Timestamp" optimistic-column="db_mod_date"
More Details
[http://docs.oracle.com/cd/E11035_01/wls100/perform/EJBTuning.html|http://docs.oracle.com/cd/E11035_01/wls100/perform/EJBTuning.html]
Thanks !

Similar Messages

  • How to update the table value in the valuechange event?

    I have an input field in the datatable with the valueChangeListener
    <rich:dataTable id="cart" value="#{cart.cartList}" var="item">
    <h:inputText value="#{item.cost}" id="qty" valueChangeListener="#{items.updateCost}" onchange="submit()">
    <h:outputText value="#{item.errorMsg}"> </h:outputText>
    in the backing bean
         Item item = (Item) model.getRowData();
    // do some update, if the cost too larger, change to max_cost
         item.setCost(max_cost);
         item.setErrorMsg("Error Msg");
    After calling the valuechange method, the screen output doesn't update the cost.
    How to update the table value in the valuechange event?

    As you're misusing the valueChangeListener to set another input field, you need to skip the update model values phase. Otherwise the value set in the valueChangeListener will be overridden by the submitted value. You can do this by calling the FacesContext#renderResponse() inside the valueChangeListener method. This will shift the current phase immediately to the render response phase, hereby skipping the update model values and invoke application phases.

  • How to print the table values in fastest way?

    Dear Friends,
    I'm having table in my application and i need to print the table values. For that I used print() method to print the table values.
    boolean complete = tableObj.print(mode, header, footer, showPrintDialog, null, interactive,
                                  null);But, the time taken for displaying print dialouge box so late and printing operation is done very slowly.
    Could anyone please tell me is there any better way and fastest way to print the table values?
    Thanks in advance

    Hi,
    In the Module pool you will have fields. For those fields you have created the name also. Assign those name to work area and from there to internal table.
    And for your requirement viceversa you need to done.
    With Regards,
    Sumodh.P

  • HT4623 My iPad 3 has lost the speaker sound after updating to iOS 6.1, headphones are working fine

    My iPad 3 has lost the speaker sound after updating to iOS 6.1, headphones are working fine. Please help me out, done all the troubleshooting like restarting, side switcing, cleeaning the headphone jack etc.,

    Hi I also have this problem. Sound was only working on the headphones and also on the volume slider in the settings app. Everywhere else I get no sound and no volume slider. Now the headphones don't work either.
    (I'm using an ipad 2 iOS 6.1.2) 
    And NO it's not muted. I've reset all settings and restarted the iPad. Been searching forums for a couple days. Some say its a dirty docking port problem, others suggest a Skype or other app update that could be the problem.
    No volume control icon appears when I press the volume control buttons. Only says sound effects, if it says anything at all. Most often there is NO volume icon. YouTube, video, music, and other game apps, no sound.

  • Has anyone else had the issue of losing the YouTube apps on the original IPhone after updating to 4.3.5

    Has anyone else had the issue of losing theYouTube app on the original IPhone after updating to 4.3.5?  (The Restrictions is turned as OFF)
    The Youtube app is now cleaned away from the IOS 4.3.5
    Any help would be appreciated.

    This still doesn't make sense. The iPhone 4 may have come with a number of different versions of iOS out of the box depending on when it was purchased and how long it had sat on the shelf.
    If you can't find it, check restrictions and make sure you haven't locked it out.

  • How can i get rid of the iTunes logo after updating my iPhone 4 to the iOS 6

    How can I get rid of the iTunes logo after updating my iPhone to iOS 6

    Absolute garbage.
    This abysmal excuse "Always have been built in apps" is irrelevant. NOTHING should be tied to the OS of even
    a phone so tightly that you can't get rid of it. NONE of the apple crap apps do I use, but they use space on MY phone.
    I want the **** things gone.

  • From which prgram the table TSTC is updated

    Hi all ,
    Can anybody know me from which program, the Table TSTC is updated where it stores all the transaction codes.
    Regards,
    Madhavi

    Tcode for maintaining Tcodes is SE93.
    Goto>SE93>System>Status>Program.
    Program Name:SAPLSEUK
      include lseuktop.      " Global Data
      include lseukuxx.      " Function Modules
    include lseuko01.
    include lseuki01.
    include lseukf01.
    include lseukf00.
    include lseuki00.
    Navigation Transaktion
    include lseuktn0.
    include lseuke01.
    include lseukfwm.
    Regards,
    Ansari.

  • From which transaction the table OBEW is updated

    Hi Experts,
      From which transaction the table OBEW is updated
    Thanks,
    Nagendra

    The table OBEW gets updated thru MI21/MI22/ and MB01/MB02

  • Only half of the body just below the camera and steel side of camera side is getting heated up just after 10 , 15 mins of usage i my iphone  4 is it normal...as earlier the body was not heating up even after 2 hours....the problem started after updating t

    only half of the body just below the camera and steel side of camera side is getting heated up just after 10 , 15 mins of usage i my iphone  4 is it normal...as earlier the body was not heating up even after 2 hours....the problem started after updating to 6.1.2
    iPhone 4, iOS 6.1.2

    Hi, did you ever solve this problem?
    My 1 year old -- ha! one month out of warranty -- iPhone 4 has been having a nearly identical problem over the past few days.
    It started by dying completely so I had the battery replaced, thinking it was simply battery issue.
    It then worked again for a moment but started doing exactly what you describe, going through a reset cycle (longer than 30 seconds but who's counting). And it felt quite warm.
    Did hard reset, plugged into wall charger and MBP USB but the new battery wouldn't even get a full charge (a whopping 92% after nearly two days). It would even lose battery when plugged in if I opened an app. And all the while plugged in, if I left the phone on, it would cycle through these resets. So I turned it off to try to charge it.
    Now suddenly, it's dead again. Totally black, and hard reset does nothing. Up until two days ago there was nothing wrong whatsoever with this phone! And I hadn't even installed a new app that could be the root of the issue. No idea whatsoever what caused this.
    Any help would be much appreciated!!

  • How to make the document dirty after updating the links?

    Hi,
    I am using the below code to update the link resources by providing new URI. The link resources are getting updated, but the document is not becoming dirty.
                    InterfacePtr<ICommand> updateCmd(CmdUtils::CreateCommand(kLinkResourceStateUpdateCmdBoss));
                    InterfacePtr<ILinkResourceStateUpdateCmdData> updateCmdData(updateCmd, UseDefaultIID());
                    updateCmdData->SetResource(ref.GetUID());
                    updateCmdData->SetDatabase(ref.GetDataBase());
                    updateCmdData->SetNotify(true);
                    updateCmdData->SetUpdateAction(ILinkResourceStateUpdateCmdData::kUpdateURI);
                    updateCmdData->SetURI(newURI);
                    updateCmd->SetUndoability(ICommand::kRegularUndo);
                    CmdUtils::ProcessCommand(updateCmd);
    How do I make the document dirty after updating the resources?
    Thanks,

    Thanks. It is working fine.
    I called PreDirty(docPtr), before updating the links.

  • Why is EE showing in the status bar after update

    why is EE showing in the status bar after update and is it costing anything to have this on, can i remove it?

    Start with this article: iOS: Wi-Fi settings grayed out or dim - Apple Support
    If the steps here do not work, you probably have a hardware issue and will need to replace the device.

  • I can't open the "Keepsafe" App after update.

    I can't open the "Keepsafe" App after update it to the latest version,
    When i click on the app and after 20 second it's quickly goes back to the home screen,
    I've tried reopening this App and restarting my iphone but still not working.
    Please Help me to restore my data (more than 2,000 pics) in this App.
    Best Regards

    Close all open apps by double-tapping the home button, then swiping up and off the screen with the app window (not the smaller icon).
    Then reset: hold down the home button along with the sleep/wake button until the screen goes black and you see the Apple, then let go. (No data loss)

  • I have a problem in the Bluetooth headset after updating iOS 7

    I have a problem in the Bluetooth headset after updating iOS 7

    Hi,
    have a similar problem here. More specifically, I am using a Plantronics Voyager Legend (brand new) with my Iphone5 (iOS 7.0.2). All apps are working great with the headset, e.g., listening to music, normal phone calls, etc. No sound distortion at all.
    When I use Skype (most recent version, which is 4.12.258) the sound is very distorted, like scattered. I also successfully used the same headset with a Samsung Galaxy S3 and Skype. No problems. So, I suspect that it must be the combination of Iphone/iOS7 and Skype which messes up the sound.
    Does anybody else have the same problem when using that combination of devices and apps?
    Best,
    Kurt

  • There is no sim card installed in the iphone error after update software from 4.1 to 5.01(iphone 3gs)

    there is no sim card installed in the iphone error after update software from 4.1 to 5.01(iphone 3gs)

    Thanks for reply, but problem is diffrent I got updated my device via I tune(IPSW 5.01) before that, it was working well after upgreade 4.1 to 5.01 I am getting problem. No cydia no signal!
    BTW Thank you,

  • I have the IPhone 4 , after updating the software to version 5.0 , i can't edit my contacts, is it only from my device or the updated software should be adjusted?

    I have the IPhone 4 , after updating the software to version 5.0 , i can't edit my contacts anymore(the button edit doesn't exist anymore), is it only from my device or the updated software should be adjusted?

    That's exactly right.  And since you have a MacBook Air (as I do), that means the synching should occur just fine (if you've set it up right in iTunes).  In other words, once you actually do the update, the iTunes on your MacBook Air will re-sync your photos back to your iPhone.
    Basically, the process is that your iPhone gets backed up, wiped clean, then the new iOS version gets installed, then the backup gets restored.  That will restore everything in the article above, which does not include your photos.  But the sync process that happens after the iOS installation would restore your photos from iPhoto given you've set it up that way in iTunes.
    When you have your iPhone plugged into iTunes, while looking at the iPhone's summary page, click "Photos" on the right side of iTunes to see how you have your sync set up.
    Regardless, it sounds like you'll be fine!  Your photos will wind up in iPhoto once you place them there.  They will be safe there.

Maybe you are looking for

  • Ability to view multiple files in ONE window

    I can see here that this is not a new topic really but the thing with Acrobat 9 is so frustrating that it is just unbelievable. This is another pearl: Acrobat 9 "lost" its predecessors ability to view multiple files in ONE window. After opening four

  • How to display HTML content in Siebel form applet

    Hi All I have a requirement where I send data from external webservice to be displayed in a siebel form applet. The control which displays this data is a textarea but the problem is my data is with HTML tags in it like <html xmlns:v="urn:schemas-micr

  • Problem with Bonita

    Hi all. I'm working with Bonita workflow application. I've successfully been able to install,configure and deploy Bonita on JOnAS . But,the problem is that when i start the manager application,i get the following error java.io.IOException: CreateProc

  • Adding more than one video effect

    I have a short clip that I want to give both the "aged film" look to as well as make it black and white. Both these effects are available under Window > Clip Adjustments, but I can't figure out if it's possible to use both at the same time. Anyone kn

  • Using Aperture 3 with several user accounts

    Is there a way to share Aperture's library among several users accounts ? Just like you do with iPhoto's library when you put it in the shared users folder ?