VO refresh after commit not working

I have a complete Master-Detail functionality ( query, update and create ) implemented.
I have created 3 pages for this.
SearchPG
UpdatePG
and
CreatePG
In the SearchPG I can search for the Master rows and have an update link for every record.
When the user clicks on the link the UpdatePG opens with the Master and Detail VOs and they can edit and save both VOs.
On saving, I return to the SearchPG displaying a message.
I also have a Create button on the SearchPG to create new records.
On clicking, it opens the CreatePG with both the Master and Detail VOs and the user can create 1 Master and multiple Details records and save the data.
On saving, I return to the SearchPG displaying a message.
I have a very peculiar issue here.
The first time when I create the record and then return to the SearchPG if I try to update any existing records I get a blank page on the UpdatePG.
If I close the screen and reopen it works fine. The new data gets created. There is no problem if I use only Update functionality throughout one session.
This is an issue only when I create and then try to update any record.
After I create new records, the Search query works fine. It is only the Update not working immediately after create.
I use the same VOs. MasterVO and DetailVO for both same Create and Update fucntionality. I thought it might be a caching issue so
I tried to use immediately before the actual update in
     vo.reset();
     vo.clearcache();
But it is still not having any effect.
Any assistance is appreciated.

I believe when you are creating the row, its not actually getting saved . Hence when you are querying its showing the value as zero.  Could you please paste in your code here , so can pass our inputs .Please try to commit the trasaction
public String commit() {
    try {
  XxEmployeeVOImpl employeeVO = getXxEmployeeVO1();
  XxEmployeeVORowImpl row = (XxEmployeeVORowImpl)employeeVO.first();
  String savedEmp = row.getEmpno().toString();
  getOADBTransaction().commit();
  return savedEmp;
  } catch (Exception e) {
   e.printStackTrace();

Similar Messages

  • After Effects not working in Mavericks

    Is anyone having issues with Adobe After Effects not working in Maveriks? Premeire, Photoshop, Audition all work, but not AE. No update from Adobe available.

    This update is ONLY FOR MAVERICKS. You can't update through Creative Cloud, to prevent users of other operating systems from installing it.

  • ADF Region not getting refreshed after Commit

    Hi everyone!
    I'm having some trouble with a region that is disturbing me for more than 2 weeks, its true guys, I tried everything!!
    My parent page is a normal ADF .jspx page that contains inside it a task-flow call. The first task-flow activity is a router, after sending a String
    to router it chooses the region activity that fits the page (in this example I always pass the same value, same String).
    After the router is called then it delegates to "ExecuteWithParams" method call before calling my final region that have its query executed with
    parameter set inside task-flow.
    The region is refreshed (refresh="ifNeeded") when I change row inside a table in ParentPage, all fine here.
    The problem is:
    - After any Commit (with navigation case or executable binding) is issued inside Region the region save its state and does not refresh anymore, even if task-flow parameters change.
    Already tried CacheResults="false" on iterator too.
    I'm using Jdeveloper 11.1.2.1.
    Thanks in advance!!

    Hi,
    so I think the shirt summary of your problem is that an ADF region doesn't refresh after it issued a commit. Sounds like a bug to me if this reproduces in a test case. Do you have a testcase based on the Oracle HR schema ? If so, send it my way in a zip file you rename to ".unzip". My mail address is in my OTN profile. Note that bugs I file are not visible to customers. So if you need to keep track of any state of the issue, you need to file a service request with support yourself.
    Frank

  • Trigger - After Report Not working.

    Hai,
    Below is the coding written on the after report trigger for inserting values in a table but it not working,
    even srw.message put and checked but not functioning at all...
    what might be the problem...
    Thanks in Advance...
    function AfterReport return boolean is
    begin
         srw.message(100,'Hai');
    if (:total_credit) is not null then
         insert into opcl (fiscal_yr_cd,Period_no,Col1,Col2,Col3,Col4,Col5,Col6)
         Values (:P_Fiscal_yr,:P_Period,nvl(:total_credit,0), nvl(:total_cess_cf,0),
         nvl(:total_sec_cess_cf,0), nvl(:cf_tot_serv_tax1,0), nvl(:cf_tot_serv_tax2,0),
         nvl(:cf_tot_serv_tax3,0));
    commit;      
    end if;      
    return (TRUE);
    end;

    How are you running the report? Not in the preview mode in builder I hope, because that won't fire the after report trigger.
    "The After Report trigger fires after you exit the *Runtime Previewer*, or after *report output is sent to a specified destination*..."

  • Commit not working with actionBinding

    I am having a bit of a problem, i am trying to change a value from an iterator (this part work fine) but can't commit this value for some reason but i get no error.
    I click on the button that will change the value of the selected row in the table.
    First sysout return the right value.
    second sysout return "N" which is good.
    third sysout return "Y" which is what i want to do.
    I do have a commit action in my page definition.
    I tried addind a button that will commit but no success here.
    Any help ?
    public String disableSelectedProject(){
    RowKeySet selectedRowKeys = table1.getSelectionState();
    //Store original rowKey
    Object oldRowKey = table1.getRowKey();
    if (selectedRowKeys != null)
    Iterator iter = selectedRowKeys.getKeySet().iterator();
    if (iter != null && iter.hasNext())
    Object rowKey = iter.next();
    System.out.println(rowKey.toString());
    //set the current row in the ADF binding to the same row
    DCIteratorBinding dcib = (DCIteratorBinding)bindings.get("ProjectList1Iterator");
    dcib.setCurrentRowWithKeyValue(rowKey.toString());
    Row rowData = dcib.getCurrentRow();
    System.out.println( rowData.getAttribute(ProjectListRowImpl.ISDELETED));
    //set the field flag to Deleted
    rowData.setAttribute(ProjectListRowImpl.ISDELETED, "Y");
    System.out.println( rowData.getAttribute(ProjectListRowImpl.ISDELETED));
    //commit the transaction - for iterators Not working for this case.
    JUCtrlActionBinding actionBinding = (JUCtrlActionBinding)bindings.get("Commit");
    actionBinding.execute();
    //refresh list
    DCIteratorBinding iterator = (DCIteratorBinding)bindings.get("ProjectList1Iterator");
    iterator.executeQuery();
    //Restore the original rowKey
    table1.setRowKey(oldRowKey);
    return "";
    Thank you

    hi Charles
    ... I am using Jdev 10.1.3.1.1 and use Application Dev framework documentation. But i did not start at the beggining of the project so i was able to looked at the code already there. ...You might want to review documentation sections:
    - "8 Implementing Business Services with Application Modules "
    at http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/bcservices.htm
    - "24 Testing and Debugging Web Applications "
    at http://download.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_testdebug.htm
    You also might want to try to add more System.out.println() statements to see which statements get executed and which don't, and combine that with some try-catch statements (maybe for the whole method) like this
      try
        ; // some statements
      catch(Throwable th)
        th.printStackTrace();
        throw new RuntimeException("statements failed, th = " + th, th);
      }success
    Jan

  • Commit not working on web

    Using Forms 6i Client/Server & on App Server
    I have a form that runs in both client/server and on the app server.
    In C/S it commits with no problems. On the App Server the commit does not work. No errors are produced. There is no ddl_commit in the form, just a straightforward 'commit'.
    Can anyone shed any light on this mystery?

    After further investigation, I have managed to replicate the problem in the Client/Server environment by changing the run time compatability mode in the form level properties to 5.0. It seems that 5.0 behavior is carried out by default when the form is run on the Application Server.
    The problem was to do with a non display item having it's required property set to YES but not being populated. On the web, this item was being validated where as client server (where the runtime compatability mode property was 4.5 in the form), it isn't.
    The form on-error trigger prevented the error from being displayed but once I got around that, I was able to track down the errant item! I guess the answer is to set the run time compatability mode to 5.0 when moving to the App Server to ensure consistent behavior with the Client/Server Environment.
    The property and the differences between 4.5 and 5.0 are documented in the Forms Help system.

  • Multiple JVMs within app server - refresh of metdata not working

    Hi guys.
    We have an interesting scenario at present when running our application within a new test environment.
    Our web-based application has the facility to refresh it's application metadata. This should mean that the next time the browser refreshes (or a user logs in to the application), the application will display based upon the refreshed metadata structure.
    Previously, we have run our application on an app server with a single JVM without any dramas. ie. the refresh has always been reflected appropriately when viewing the application - as mentioned above.
    However, we have installed the application in a new environment where the refreshing of meta data does not work consistently. That is, only about 50% of the time does the data refresh correctly. This can be seen by pressing the refresh button in an IE browser, so that the refreshed data appears approx. every second time the button is pressed. The only notable difference with this environment is that it runs 2 JVMs within the app server.
    It seems that in this case, the 'old' data remains cached for the 'other' JVM, and that when the browser receives 'refreshed' data from the server, it does not always source from the same JVM.
    This situation can be resolved by restarting the OC4J container, but this is not a desireable solution.
    Is anyone aware of an OC4J parameter that can be set so that the 2 JVMs can run in synch so that both are refreshed appropriately when our meta data is cleared (refreshed) ? I don't believe this can be controlled within the Java source code, but I'm receptive to any other alternate solutions.
    Thanks in advance.
    Steve.

    I'd like to embed multiple instances of the JVM within
    a single, multi-threaded native server process. I'm
    aware this was not possible with the Sun JDK in the
    past.
    Is this still true (for JDK 1.4.1 say)?Yes, this is still true.
    If it's still not possible, are there any timetables
    as of when it might be available? No.
    Likelihood?Check the current list of JSRs at http://www.jcp.org.
    Ah, btw: Is support for VM unloading (during
    DestroyJavaVM()) available now?No.
    >
    In any case: does anybody know of a JVM
    implementation
    available for Linux which supports multiple VM
    instances within a single process?Why do you need multiple VMs? Would multiple separate 'processes' within a single VM work? If so, have a look at:
    http://www.cs.utah.edu/flux/janos/janosvm.html
    http://www.javagroup.org/echidna/
    Jim S.

  • Eye Dropper tool in After Effects Not working Properly

    I am using Adobe After Effects CS5 on a mac. And most all of the eyedropper tools in the software are not working properly. They always select a way different color than it should be. What is wrong?
    One day they just all decided to not work. Its really frustrating. Its been a few weeks now.

    Well, For some strange reason its working just fine today. I did restart my computer yesterday and after that it seems to be working.
    I haven't recenitly messed with my hardware acceleration/graphics card or monitor color profile. So if that was it, then it did it on its own.
    None the less its working now. Thank you for your help!!!

  • Refresh all worksheet not working in smartview 11.1.2.2.300

    Hi All,
    We have a excelsheet report which contain multiple sheets in it. These all sheets have essbase report using HsGetValue formulas. Now when we are clicking on 'Refresh all worksheet' its not working however single sheet refresh works. Can you anyone please sugget what will be the issue?
    Thanks,

    Hi,
    I didn't understand your first question. Can you please explain it more?
    In smartview log I'm getting below error-
    [2015-02-17T19:07:32][SVC][ERROR:1][SVC10000][SVC][ecid: be2ca10d-c2a6-4146-b8d0-21ec0852f46a,0]Registry write operation failed (System.NullReferenceException): Object reference not set to an instance of an object.
       at B8CEB14D_B26A_48bf_80BC_18D4B75F6D5F.ExtensionUpdater.GetBoolSetting(String strName)
    Thanks,

  • Commit not working in Oracle !!

    Hi all,
    I have created a JDBC System using the following link.
    http://help.sap.com/saphelp_nw04/helpdata/en/ab/082484173ae045ab8dad8a41d33da3/frameset.htm
    The JDBC Datasource is working absolutely fine , in my database actually autocommit is off , so i need to commit a transaction explicity , when i try using connection.commit() , it gives me the following eroor
    Commit not possible , xadatasource.
    Can any one provide the reason for this , and what is the alternative for the Same.
    Points will be rewarded for helpful answers
    Regards
    Sara

    Hi Sara,
    Are you using XADatasource ?I think it is an issue (http://wiki.jboss.org/wiki/Wiki.jsp?page=ConfigDataSources)with that
    try using this
    DataSource Type :-ConnectionPoolDataSource
    ClassName:-oracle.jdbc.pool.OracleConnectionPoolDataSource
    just restart the service and use it in your code.
    Thanks
    Pankaj

  • Iterator refresh after commit

    Hi,
    I have three tabs in my page , and in each tab , i have separate taskflows.
    The first tab taskflow contains a jsff which has lets say master table iterator i.e departments iterator.
    In the second tab, i have a table based on read only query, but when i click on add button, i will be inserting in to detail VO (employee VO) and using postChanges() .
    so that read-only query based table gets the new data.
    now when i click on save button and commit , the iterators in taskflows of tab1, tab2 are pointing to first record rather than the current record.
    1) even i tried with having an action for the 'save' button and navigating to method activity which sets the iterator to current row.
    When i am returning back to taskflow,i am still seeing the iterator pointing to first record rather than the current record i intend to see.
    could anybody tell me why iterator is pointing to first row after commit()
    i don't have 'refresh' -- if needed for taskflows. its default.
    for transactions, datacontrols, its default for my taskflows.

    I generally retain the previously selected row using the following code in my VOImpl after every executeQuery().
    public void executeQuery()
    // current row key if any
    Key currentRowKey = null;
    Row currentRow = getCurrentRow();
    if ( currentRow != null )
    // get current row key
    currentRowKey = getCurrentRow().getKey();
    // super call
    super.executeQuery();
    if ( currentRowKey != null )
    // set current row now using previously stored key
    Row[] rows = findByKey( currentRowKey, 1 );
    if ( rows != null && rows.length == 1 )
    setCurrentRow( rows[0]);
    }

  • After Effects not working. It hangs before getting to the interface and I can't upgrade neither!

    I juust bought adobe after effects for the creative cloud. I can't get it to work. I installed the Afx through the app manager and launch it and didn't work. It freezes. Then I though it was because I had a previous version trial installed in my computer. The Cs 5.5. I downloaded the Adobe cleaning software and cleaned the HD. Then I reinstalled everything and now stills not working and won't patch neither. What should I do?

    Nobody can tell you anything without system information. The most common issues why the app won't launch are GPU issues or DynamicLink problems, but again, we really can't know without more details. Provide system specs and the crash info and while there, also comb the articles on my site. It is, after all, the After effects error Code Database...
    Working with your Operating System’s Tools
    Mylenium

  • [SOLVED] Hybridgraphics: acpi_call after Kernelupgrade not working

    Hi,
    after upgrading from Kernel 3.14.6 to 3.15.1, deactivating the my Nvidia Optimus GT730M by using acpi_call seems not to work anymore. Calling the parameters which worked until now seems to succeed:
    bla$ sudo sh -c './gpuOff.sh && cat /proc/acpi/call'
    0x0called
    But neither I was able to observe any changes of the battery state nor the output of lspci has changed. As far as I can gather, there should be something like "rev ff" indicating a deactivated card?!
    bla$ lspci | grep VGA
    00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
    02:00.0 VGA compatible controller: NVIDIA Corporation GK208M [GeForce GT 730M] (rev a1)
    Acpi_call is up2date and compiled with current Headers.
    Maybe I'm missing something?
    Last edited by bl0b (2014-07-11 12:06:33)

    Sorry ^^
    The script simply contains the parameters for deactivating the NVIDIA card of my t440p.
    #!/bin/bash
    echo "\_SB.PCI0.PEG.VID._DSM {0xF8,0xD8,0x86,0xA4,0xDA,0x0B,0x1B,0x47,0xA7,0x2B,0x60,0x42,0xA6,0xB5,0xBE,0xE0} 0x100 0x1A {0x1,0x0,0x0,0x3}" >/proc/acpi/call
    echo "\_SB.PCI0.PEG.VID._PS3" >/proc/acpi/call
    exit 0
    I have checked both lines and both commands succeed, at least according to /proc/acpi/call.
    PS:
    Using bumblebee/bbswitch is not working for me since it causes data corruption
    Last edited by bl0b (2014-06-19 15:35:35)

  • After Method not work

    Hello guys,
    I need your help.
    In activity step I added one method in "Methods AFTER Work Item Execution (Modal Call)", but this method not work after complete the workitem.
    This method run in background, and insert data in one table.
    My workflow use BUS1001006 object type, and this method too.
    Any idea?
    Thanks!!!
    Kleber

    Hi Arghadip!!!
    Now it's work fine!!! Thanks!!!
    Please... more one question...
    In my method, I need the value of the element <b>_Workitem.WorkitemStatus</b>.
    It's possible:
    ===========================================================
    swc_get_element container '<b>_Workitem.WorkitemStatus</b>' vl_status.
    ===========================================================
    or
    ===========================================================
    swc_get_element container '<b>_Workitem-WorkitemStatus</b>' vl_status.
    ===========================================================
    How I do this?
    Thank a lot!!!
    Kleber

  • HT4528 i wont know  i change logic board after button not working

    i change logic board after button not working

    If you opened the phone, you've rendered your phone unsupportable. The iPhone is not user servicable and Apple does not sell iPhone parts.

Maybe you are looking for

  • From alv to standard transaction

    Hi, Iam using alv hiereracy for a report. say i have a material field in header if i double click can i take me to mmo3 . if yes pls let me know how to proceed with this thanks swathi

  • Keynote 6.0 seems to break LaTeXiT: workarounds?

    I use LaTeXiT to place equations in my Keynote presentations. In Keynote 6.0, I can still copy equations from LaTeXiT into Keynote, but I can't copy equations from Keynote back into LaTeXiT. Does anyone know of a workaround?

  • MM related

    HI ,    Anybody please tell me how to get functional knowledge in MM from the net basically i am an ABAPer,

  • Batch job taking longer time then expected

    Hi All, We have a scheduled batch job which run at 11:30 pm daily. When user did testing in UAT environment , it took 56 hrs to complete.But now when they run the same batch job in production system took more than 80 hrs. FYI : The production server

  • Basic questions about permanent Collections

    I am just learning about Collections, discovering that a Collection preserves all of the work I done in the collection. I am assuming then, that the images in a collection are virtual copies that can be adjusted in the Develop Module to be different