How to refresh VO to get the changed value in other AM or backend database

one VO is refrenced by two AMs, when i insert or update data by VO in one AM, how to get the changed data in another AM ?
another case is i have updated some attributes of the record in database by SQL statement ,but the client can not get the updated value at once .
i have tried to use executeQuery() ,but it does not work. now i always do a rollback method ,a bad idea.:)
pls help me ! thanks
Message was edited by:
Guo Qinghua

Mind that ADF BC (probably like any other persistence framework) caches data. So when you update something in the database other than via ADF BC, you then have in the ADF BC cache what is called 'stale data'. When you try to commit that nevertheless, the database will tell ADF BC that the record in the database has been updated by another user, and a rollback will be done. That is all to be expected.
You can find some more info on how this works here:
http://download-uk.oracle.com/docs/html/B25947_01/bcvoeo007.htm
It also explains how to clear the cache and enforce that data will be read from the database.
Jan Kettenis

Similar Messages

  • How to refresh iterator to get the deleted item

    Hi,
    Scenario:
    User loads the first page. He can see his profile details. He clicks on a edit link ; it opens a popup to edit details along with a save and cancel button. He deletes his phone number and click on cancel. The cancel button will just close the edit popup.
    Problem:
    He is not able to see his phone number in the front page. Only if he commits his phone number should get deleted. I think i have to clear the cache and refresh the iterator on click of cancel. I have added CacheResults="false" for iterator.
    <iterator Binds="AdminVO1" RangeSize="25" DataControl="AppModuleDataControl"
    id="AdminVO1Iterator" CacheResults="false"/>
    I tried to refresh the iterator like iterator.setRefreshOption(8192);// as i found in one blog.
    Its also not working. Can anyone please tell me how can i refresh the iterator to show the deleted row when he goes back to the first page on click of cancel

    sorry for the post

  • How to get the Change node in Production Server!!!!!

    Hi Guys,
    Kindly let me know how to get the Change node in Production Server for the Transaction Code Pe03 for generating the Acknowledgement No for the year 2008 .
    Plz provide me the steps how to get the Change Node for Acknowledgement No so tat i can get the configuration done.
    Regards
    Ansuman Mohanty.

    Hi Mr!
    If you want to generate the e-file feature 40ACK, do it in our Customization client box (Golden box) & save the request & move to Quality & production.
    Still if you need to workout only in Production, than with the help of Basis people you can get the Production change mode for 5 to 10 min time & can generate it. But mostly Basis people wont give us change mode for Production box ... with ur request they can do..try it.
    Did u collected 4 quarter TAN no's for 2008 Quarter...if not collect it & generate it at a time.
    All the best:-)
    Kind Regards,
    Saisree.S

  • How to get the Change Document Header details for a given date

    Hi All,
    Can anyone help me on this Change Document Header details(CDHDR).
    Better way to pull the information of Change Document Header details(CDHDR). No Index is maintained for the tables.
    So please suggest better Optimising techniques to get the Change Document Header details(CDHDR).
    Using this Function module : CHANGEDOCUMENT_READ_HEADERS how to import the DATE_OF_CHANGE.
    Thanks in advance
    Regards
    Chakri

    HI,
    Go through the documenattion of the FM u can get the details.. and also where used list
    Regards,
    Nagaraj

  • Confition type FRC1- how to get the change log,

    Hi,
    When  the condition type FRC1 automatically gets deleted (deletion flag),. and we are not able to see the change log for the same.
    how the Conditions are deleted. Or if at all any one has deleted, how to get the change log,

    Check in
    m/06
    go to utilities
    change log
    If not found  consult BASIS consultant

  • How to get the changes during ABENDED replicat process

    Hi,
    I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
    My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
    GGSCI (db1) 30> alter replicat rep2 begin now
    GGSCI (db1) 30> start replicat rep2
    After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
    My doubt is.
    1. Is my command is correct for start the ABENDEND replicat process?
    2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
    3.How to avoid the ABENDED replicat process on production server?
    4.how to track the ABENDED process in production server?
    Please HELP:(
    Edited by: NaveenK on Aug 29, 2012 3:32 AM

    NaveenK wrote:
    Hi,
    I am working on Oracle GG bi-directional DML replication. I m stuck in one place.
    My target replicat process was ABENDED due to Error :- ORA-01403: no data found. I restarted my replicat process again by runing the below command
    GGSCI (db1) 30> alter replicat rep2 begin now
    GGSCI (db1) 30> start replicat rep2
    After restart the replicat process I can't see the changes on target server which I had applyed on source server during target replicat was ABENED.
    My doubt is.
    1. Is my command is correct for start the ABENDEND replicat process?
    2.How to get the changes on target server which applyed on source during ABNDED of targer replication?
    3.How to avoid the ABENDED replicat process on production server?
    4.how to track the ABENDED process in production server?
    Please HELP:(
    Edited by: NaveenK on Aug 29, 2012 3:32 AMHi Naveen. SQL Error 1403 means row not found. Your data is out of sync and you should fix this.
    By doing begin now when this happens, you are skipping all the transactions that were "in-line" since the process ABENDED.
    You have more than one way to deal with these things, first of all you should synchronize your data! This should get rid of the 1403 errors.
    Then you can write rules using REPERROR to tell the replicat how to behave in case of errors should come up.
    Using logdump, you can read the exact row which failed and find out the next RBA to skip that specific one if required. You should also configure a DISCARDFILE to get details about errors when they happen.
    Greetings,
    N K

  • Excel 2010 VB How do I get the old value of a changed cell?

    HI,I am tracking changes made to an unshared spreadsheet and the VB code below appears to be working well, but how can I modify the VB code to get the old value of the changed cell also?Private Sub Workbook_Open()
    Sheets("LogDetails").Visible = xlSheetVeryHidden
    End Sub
    Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
    On Error Resume Next
    If Sheets("LogDetails").Visible = xlSheetVisible Then
    Sheets("LogDetails").Visible = xlSheetVeryHidden
    Else
    Sheets("logDetails").Visible = xlSheetVisible
    End If
    Target.Offset(1, 1).Select
    End Sub
    Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    If ActiveSheet.Name "logDetails" Then
    Application.EnableEvents = False
    Sheets("LogDetails").Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Value = ActiveSheet.Name & "-" & Target.Address(0,...
    This topic first appeared in the Spiceworks Community

    char s = '\u0153';
    int i = (int)s;
    System.out.println(Integer.toHexString(i));This works for a single character. For a String, use toCharArray() and loop through every character.
    String s = "SomeString";
    char[] c = s.toCharArray();
    for (int i = 0; i<c.length;i++) {
      System.out.println(Integer.toHexString((int)c));

  • How can I get the edited value from the editor in JTable

    I have a JTextField added as an editor to a cell in JTable.
    I value gets changed when I press enter.
    but in actionPerformed of the JTextField when I say
    String txtEditorValue = txtEditor.getText();
    I am getting the old value. How can I get the edited value? Thanks.

    Hi,
    I guess, your understanding of how JTable works together with its models is not good enough - for example the method getTableCellEditorComponent(...) of the TableCellEditor interface is used to get the component, that should be used as editing component - its second parameter is a value that should be used to setup the editing component - it is normally not the editing component itself.
    JTable uses an underlying TableModel to store the cell values - if you have edited a cell, JTable gets the value of the editing component by itself and stores it in the TableModel using its setValueAt(...) method. To retrieve this data you only need to query the TableModel using row and column of this cell as parameters
    say jt is your JTable, and row and column are the row and column of the cell - so to get the value, simply use
    Object obj = jt.getModel().getValueAt(row,column);
    if you know, that there is a String in this cell use
    String str = (String) jt.getModel().getValueAt(row,column);
    The editor component is used for the view of the JTable - you only want the data, which is stored in the model - you don't have to deal with the GUI components in this case.
    greetings Marsian

  • How can I get the text value of an XML element  in MXML ?

    Hi,
    I have the following XML loaded into a variable of type XML :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times">5</entry>
         <entry key="rdc.proxy.host">http://192.168.1.2:8080</entry>
    /properties>
    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider to my variable and the dataField to "@key".  But I do not know how to get the text value in a second column...  Is there a way or do I need to change my XML to something like this :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times" value="5"></entry>
         <entry key="rdc.proxy.host" value="http://192.168.1.2:8080"></entry>
    /properties>
    Many thanks in advance.
    Marc

    yes, you'd better modify your XML structure to fit the DataGrid internals.
    Since dataField pattern require each grid row item to have a named property to be displayed, otherwise you'll be forced to overcome this pattern using custom labelFunction for the particular column which will implement your custom actions on how to extract appropriate data for that column out of grid row item. It will be much more complicated than just rearranging your xml structure.

  • How to get the Node Value from XmlValue result?

    Hi ,
    I am not able to get the Node Value from the result. In my XQuery im selecting till a Node, if i change my query as
    collection('PhoneBook')/phone_book/contact_person/address/string()", qc);
    im getting the node value, but here the problem is its not a Node so i cannot get the Node name.
    So how can i get the Node Name and Node value together?
    any help please ????
    XML :
    <?xml version="1.0" encoding="UTF-8"?>
    <phone_book>
    <contact_person>
    <name>
    <first_name>Michael</first_name>
    <second_name>Harrison</second_name>
    </name>
    <address city="yyyyy" pincode="600017" state="xxxxx">
    176 Ganesan street, Janakinagar, alwarthirunagar
    </address>
    </contact_person>
    <phone_number type="mobile">9881952233</phone_number>
    <phone_number type="home">044-24861311</phone_number>
    <phone_number type="office">080-12651174</phone_number>
    </phone_book>
    Code:
    XmlQueryContext qc = manager.createQueryContext();
    XmlResults rs = manager.query
    ("collection('PhoneBook')/phone_book/contact_person/address", qc);
    while(rs.hasNext()){
    XmlValue val = rs.next();
    System.out.println(val.getNodeName() + " = [ " + val.getNodeValue() + " ] ");
    Output
    address = [  ]

    You are right, this seemed un-intuitive to me too, but I finally understood how it's done.
    The "value" of a node is actually the total amount of text that is not contained in any of the node's child nodes (if any). So a node with child nodes can still have text value.
    To get the 'value' of an element node, you must therefore concatenate the values of all children of type "XmlValue::TEXT_NODE", of that node. Try it.
    In your example, the <address> node has no child elements, my guess is that BDB XML stores the address string "176 Ganesan street, Janakinagar, alwarthirunagar" inside a child node of <address> node (of type XmlValue::TEXT_NODE) because you wrote the string on a separate line.

  • How to get the MTBR value in days instead of in hours

    Dear Sir,
    Please help me to get the MTBR value (T-Code MCJB)  in the units of days instead of in the units of hours which is coming as default unit at present.
    Looking for an early reply please.
    THANKS AND REGARDS,
    RN SABAT.

    hi for this you need to change the formula in the std sap
    as per sap's formula
    suppose start date is 01.01
    breakdown date is 10.01
    downtime = 10 hrs
    next break down date is 20.01
    downtime is 5 hrs
    mtbr =19 days X24 hrs-10/2
    the above is how sap calculates
    if 24 hrs is removed from the formula all the data will be in days
    i hope iam right .
    Edited by: Mohammed Iqbal on Apr 27, 2011 6:26 PM

  • How we can get the Trial balance in other currency -USD now.

    Hi All,
    I have an issue reg: My client  had gone live in 2005 and only One Currency is defined u201CINR u201D as company code currency and Controlling area currency.
    Controlling area settings are maintained as: Controlling Area Same as Company Code and Currency Type maintained is: Company code currency u2013 INR.
    Even in OB22, No parallel currencies (Group currency, Hard currency, Index based currency, Global company currency) are defined.
    Now, my client is asking to have the Trial Balance (F.08) in currency u201CUSDu201D,but at present we are getting it is "INR" only.
    Is it possible to get the Trial balance (F.08) in USD , for the previous posted document values(They did all the postings in INR only)
    How we can get the Trial balance in other currency -USD now.
    Please suggest and guide.
    Thanks in advance
    Regards,
    Sudha.

    Hi,
    First you need to enter USD as HARD CURENCY for your company code's country settings.
    Then in OB22, for your Company code, enter Currency type 40 as additional local currency (LC2)
    Legal Valuation
    Exch rate type M
    Sour Curr 1
    TRs Date Type 2 ...and now save.
    By making these changes, you will be getting F.08 in USD by specifying currency type as 40 in the selection screen of this report.
    The only thing you wont get here is that.............you cannot determine USD values for documents, which are already posted into the system.
    For the time being...you can use report S_ALR_87012279 - Structured Account Balances....in this selection screen enter USD as output currency, tran key date and exch rate type M....to get the LC values to be converted into USD during this report only. (this is as good as fast food)
    As suggested above, use of special purpose ledger is all together a different concept....you dont need to go for it.
    Regards,
    Srinu

  • How to get the keyfigure values

    hi all,
    I have loaded the sales ,billing and delivery data  to sales overview cobe(0sd_c03).
    The keyfigures in all the update  rules are inactive.I changed the update rule type to addition from no update and when i try to assign source fields to those key figures,in the f4 help of the source fields i am not getting the field.
    so by this i am not getting the keyfigure values in the cube .only the characteristic values are displayed.
    How to get the keyfigure values in the cube.
    will there be any settings in the SPRO in R/3.
    Plz give solution for this .
    Points will be awarded.
    thanks
    Satish.

    If your UR is inactive, how you can load data?
    The KFs you are trying to add, are newly added KFs in cube or the existing KFs?
    Do this:
    Activate your cube, TR again.
    Delete your UR and re-create it.
    Delete all the bad requests from cube.
    Now try to do the load.
    OR
    If you did customization your cube, make sure you did activated your cube, did the changes in your DS, replicated datasource in BW, added the new fields in TR and activated,  and Deleted your UR and re-created it.
    Now try.
    Hope it helps..

  • Formatted Search: How 2 get the active value

    Hi ,
    I defined a simple FS to learn, but keep getting the same values for different codes.
    Shortly, I have 2 tables, first one (
    REASON) keeps ReasonID,Reason Description, etc.
    In the second one (MAIN) I enter other unrelated data and ReasonID.
    I wanna get Reason Description from REASON table into that MAIN table by the help of FS. So I defined something like that:
    SELECT T0.U_ReaDesc from .[@REASON]  T0 , .[@MAIN] T1 WHERE T0.U_ReasonID = T1.U_ReasonID</b> 
    When I use this query, I keep getting the same reason description for different reason codes, actually the description of the first data in the REASON table.
    Ouery settings : Search By Saved Query - Auto Refresh - When exiting altered column - Column "REASONID "- Refresh regularly
    I guess, I have to add or change something in the query, so that I can refer to the <u>activ ReasonID value</u> in the MAIN table and get the descr. for it.
    (Sorry if this subject is handled before but I couldn't find anything related in SDN.)

    Hi Gul,
    Why don´t you download the help files from the SBO marketplace?
    You can find a document about the FS under Service & Support SAP Business One  Knowledge & Services  Knowledge Base Customizing Formatted Searches.
    There it explains lot of things about them.
    The FieldId is the variable number seen when you are in debug mode. ColID is used only for matrix columns. And you could use 0 for the format is no formating is needed.
    Regards,
    Ibai Peñ

  • How does one go about getting the Kit Kat upgrade?

    I've searched the Verizon site ad I can't find how to download it.  Must one be selected?

    Thanks for your reply.  I went to Settings and About Phone, however, there was a "System updates"  that showed a history and a "Check for new software update" key.  I tried that and it returned with Your phone is up to date.  I guess I'll have to wait for Verizon to send me an update.
           From: clydefrog4963 <[email protected]>
    To: John Manning <[email protected]>
    Sent: Sunday, December 7, 2014 5:20 PM
    Subject:  - How does one go about getting the Kit Kat upgrade?
    #yiv6222900142 img
    |  
    |
      | 
    A message from the Verizon Wireless Community
      |
    |   |
    How does one go about getting the Kit Kat upgrade?
    created by clydefrog4963 in Samsung Galaxy Note 3 - View the full discussionVerizon has started pushing the 4.4.4 KitKat update on the Note 3, I got mine today. It poppped up when connected to my computer on Kies but you can do it on your phone by going to settings, all the way to "about phone" at the bottom, then click on "software update." Its best to do this while connected to wifi, and make sure your phone is at least half charged. Reply to this message by replying to this email -or- go to the message on Verizon Wireless Community Start a new discussion in Samsung Galaxy Note 3 by email or at Verizon Wireless Community


    © 2014 Verizon Wireless
    Verizon Wireless
    One Verizon Way
    Mail Code: 180WVB
    Basking Ridge, NJ 07920
    Not interested in these emails anymore, or want to change how often they come? Update your email preferences by visiting https://community.verizonwireless.com/user-preferences!input.jspa.
      |
    We respect your privacy. Please review our privacy policy for more information
    about click activity with Verizon Wireless and links included in this email.
      |

    |

Maybe you are looking for

  • How can i set up an apple id to download apps without a credit card?

    I have several Ipads in school to set up for apps, but we don't have a school credit card and only want to use iTune cards. How can I set up an multiply id without using credit card details?

  • Objects modified by a patch

    Hi, Please let me know how to find the objects modified by a patch. In OAM I'm able to see only the files modified by a patch. I need modified objects. Thanks \RK

  • [SOLVED] Vim search history inserts A

    Hello, I have the following problem with Vim: when I press the up arrow in search mode (/<Up>), Vim switches to the insert mode and enters the letter A in a new line above the cursor. When I press /<Down>, the same happens, only the letter is B. Surp

  • Can't find contacts using airdrop (iphone6)

    I cannot access any contacts using airdrop

  • What happened to the 8/16GB Zen V Pl

    The Zen V Plus page on Creative's site still lists 8 and 6GB models available but I can't find a site still selling them. Did Creative discontinue this model for some reason? Are they still for sale anywhere?