Rollback button

Hi all!!
I'm trying to include a Rollback button in a form, but it doesn't works.
The UIX code is:
<submitButton text="Cancelar"
model="${bindings.Rollback}"
id="Rollback0"
event="action"
disabled="${createMode}"/>
When i execute the form and test the button i got this error "java.lang.NullPointerException". I have no idea what's happening, because when i put and use a Rollback button in a table it works fine.
Any help will be appreciated.
Roxana

Hi Steven and thank you for your answer. This is the error that apper in the console:
05/06/17 09:30:47 javax.servlet.ServletException
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.renderError(StrutsUixLifecycle.java:345)
05/06/17 09:30:47      at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
09:30:47 DEBUG (JhsDataAction) -No commit event in request and multiRowUpdateEvent request param not set, multi-row update NOT executed
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:106)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsStrutsUixLifecycle.processUpdateModel(JhsStrutsUixLifecycle.java:140)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.processUpdateModel(JhsDataAction.java:622)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
05/06/17 09:30:47      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.handleLifecycle(JhsDataAction.java:389)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
05/06/17 09:30:47      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
05/06/17 09:30:47      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
05/06/17 09:30:47      at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
05/06/17 09:30:47      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
05/06/17 09:30:47      at java.lang.Thread.run(Thread.java:534)
05/06/17 09:30:47 javax.servlet.ServletException
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle$NonRenderingPageBroker.renderError(StrutsUixLifecycle.java:345)
05/06/17 09:30:47      at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle._runUixController(StrutsUixLifecycle.java:215)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.processUpdateModel(StrutsUixLifecycle.java:106)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsStrutsUixLifecycle.processUpdateModel(JhsStrutsUixLifecycle.java:140)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:317)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.processUpdateModel(JhsDataAction.java:622)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.processUpdateModel(DataAction.java:508)
05/06/17 09:30:47      at oracle.adf.controller.lifecycle.PageLifecycle.handleLifecycle(PageLifecycle.java:112)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.StrutsUixLifecycle.handleLifecycle(StrutsUixLifecycle.java:70)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.handleLifecycle(DataAction.java:223)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.action.JhsDataAction.handleLifecycle(JhsDataAction.java:389)
05/06/17 09:30:47      at oracle.adf.controller.struts.actions.DataAction.execute(DataAction.java:155)
05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
05/06/17 09:30:47      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1485)
05/06/17 09:30:47      at oracle.jheadstart.controller.strutsadf.JhsActionServlet.process(JhsActionServlet.java:127)
05/06/17 09:30:47      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:527)
05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
05/06/17 09:30:47      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
05/06/17 09:30:47      at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
05/06/17 09:30:47      at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
05/06/17 09:30:47      at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:239)
05/06/17 09:30:47      at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
05/06/17 09:30:47      at oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:172)
05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:645)
05/06/17 09:30:47      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
05/06/17 09:30:47      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
05/06/17 09:30:47      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
05/06/17 09:30:47      at java.lang.Thread.run(Thread.java:534)
Any ideas?
Thanks in advance
Roxana

Similar Messages

  • ADF UIX cancel/rollback button?

    Hi
    We're having a fair amount of trouble implementing a "cancel" button in our ADF UIX application (JDev 10.1.2). Apologies to those who read this same post on the ODTUG mailing list..... I'm hunting for even a hint of an answer before I approach Oracle Support.
    To set the scene, we have a parent VO "Departments" with child VOs "Dispatch" and "Agency". Dispatch also has a FK to Agency.
    We have a UIX view-screen that displays in a master-detail relationship Departments and Dispatch. From this screen the user can select the edit button, which navigates to an input-form screen to edit the currently selected Dispatch record.
    The Dispatch record has effective_from and effective_to dates. The underlying EO has a MethodValidator that ensures the from date <= the to date.
    On the edit screen we currently provide 2 buttons, Ok and Cancel. The Ok submitButton is bound to the commit binding, and navigates back to the view page via a struts link on completion.
    If the user selects the ok button and MethodValidator returns an error, the edit page's MessageBox displays the error and the user remains at the edit page until they resolve the issue.
    Our problems start with the cancel button.
    Originally we implemented the Cancel button as a simply "button" that navigated back to the view page. This worked well as the changes are never submitted, and on returning to the view page the record is presented in it's original state before being edited, thus the user's changes have been "cancelled".
    However if the user was editing an existing record, entered invalid dates that violated the MethodValidator, clicked ok and saw the MethodValidator error, then clicked cancel, on returning to the view page, any changes to the underlying record are visible including the invalid dates. I believe this occurs because the record has been submitted to the mid-tier by the ok button, and as such the changes now lies in the mid-tier.
    Given that a cancel "button" which simply navigates back to the view page is not a viable solution, we decided to investigate using a rollback button on our edit page, which then navigated back to the view page.
    There is a nasty side affect in using the rollback functionality, and has been a continuous frustration mentioned on OTN. When rollback is issued, it appears all iterators in the running application have their current row reset to the first element.
    This is a pain as in our example this results in not only the Dispatch iterator being reset to the first element, but also the parent Departments iterator, and presumably all other iterators in the application too. This would be an extreme annoyance to the user in every time they selected cancel, they would then need to navigate back to the correct Departments and Dispatch record if they wanted to make a different change.
    As such it is necessary to write some code to store the iterator positions before issuing the rollback, rolling-back, then restoring the iterator positions from the saved states.
    Luckily we found some code on OTN to do this:
    ADF - cancel button not working in input form(add new row)?
    This mechanism appeared to work, but, then, we did find one problem.
    I described at the beginning that our Dispatch VO is not only related to Departments but also Agency. To cater for this in our edit screen by including a LOV bound <messageList>, which displayed the relating Agencies for the user to select from.
    In using the pinched OTN rollback code, in the same scenario as previously, when the user edits a record, invalidates the MethodValidator after clicking ok, then clicks cancel, on returning to the view page, the field in Dispatch that represents the Agency is incorrectly showing a numeric result such as 0, 1, 2 etc. We realised that the value being shown is the previous edit screen's <messageList> internal index number representing the value selected in the list, and not the actual value itself.
    We're note sure why the OTN rollback code is causing this to occur. Though it restores the Agency iterator's position, it shouldn't result in the <messageList> index being written to the underlying Dispatch agency field, but rather the value the <messageList> index represents.
    It appears to me we're caught between a "rock and a hard-place" here. The simple solution of using a cancel "button" doesn't work when errors are raised. The complex case of using a "rollback" button doesn't work due to the problem with the <messageLists>.
    My research on OTN shows the "cancel vs rollback" button is a common frustration. Can somebody help me in providing a satisfactory "cancel" button that I can use throughout my app please?
    Many thanks in advance.
    Chris Muir

    The stack:
    Class                     Method
    UsrEcvAmpdsViewRowImpl    setAgency
    UsrEcvAmpdsViewRowImpl    setAttrInvokeAccessor
    ViewRowImpl               setAttribute
    DCDataControl             setAttributeInRow
    DCJboDataControl          setAttributeInRow
    JUCtrlValueBinding        setAttributeInRow
    JUCtrlValueBinding        setInputValue
    JUCtrlValueBinding        setInputValue
    InitModelListener         _setInputValue
    InitModelListener         _doModelUpdate
    InitModelListener         eventStarted
    AbstractPageBroker        _fireUIXRequestEvent
    AbstractPageBroker        handleRequest
    BaseUIPageBroker          handleRequest
    PageBrokerHandler         handleRequest
    UIXServlet                doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    ServletRequestDispatcher  forward
    RequestProcessor          doForward
    RequestProcessor          processForwardConfig
    RequestProcessor          process
    ActionServlet             process
    ActionServlet             doGet
    HttpServlet               service
    HttpServlet               service
    ResourceFilterChain       doFilter
    JAZNFilter                doFilter
    EvermindFilterChain       doFilter
    ADFBindingFilter          doFilter
    ServletRequestDispatcher  invoke
    ServletRequestDispatcher  forwardInternal
    HttpRequestHandler        processRequest
    HttpRequestHandler        run
    HttpRequestHandler        run
    ReleasableResourcePooledExecutor$MyWorker run
    Thread  runAt a wild guess, InitModelListener is causing the issue, because it's the first place where we can see a setInputValue occuring?
    To make this official I've raised a TAR (4613003.992) with Oracle Support with a cut down version of our app to work through the issue.

  • Parent Table - Child Form(bounded task region)- Commit-Rollback Button's

    Hello,
    Here's my simple scenario:
    Jdev 11.1.1.2
    One Am(datacontrol).
    One vertical panel splitter
    On top A panel collection with a read-only table(employees VO), The table lists just a few of the attributes, so it's really just for browsing, and a toolbar with createinsert, commit and rollback button's.
    At bottom: A PanelTab with a bounded task flow - region. The child region(bounded task flow) contains an editable ADF form(same VO) will all attributes available for editing. The form(child region) also contains a 'submit' button (to post changes).
    When run the page commit and rollback button are disable. (ok)
    Navigation and sincronize between table and task flow works fine because i set partialtrigger. (ok)
    When i change some attribute in the form and then press summit button, I want the commit and rollback button's became active..
    . . any help would be much appreciated.
    Edited by: user7056373 on 08-ene-2010 3:23

    Hi Bart,
    if your bounded task flow is placed in .jspx using region it is possible to reach binding container of that task flow.
    You can use handies by Edwin Biemond:
    # // main jsf page  
    # DCBindingContainer dc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();  
    # // taskflow binding  
    # DCTaskFlowBinding tf = (DCTaskFlowBinding)dc.findExecutableBinding("dynamicRegion1"); 
    # // pagedef of a page fragment  
    # JUFormBinding form = (JUFormBinding) tf.findExecutableBinding("regions_employee_regionPageDef"); 
    # // handle to  binding container of the region. 
    # DCBindingContainer dcRegion   = form;  but ExecuteWithParam works for me in bounded task flow - I think you have mistake in your NDValue="#{pageFlowScope.pclNummer}". you should use $ instead #
    regards,
    Branislav

  • Commit/Rollback Buttons Diabled for Pinned Tables?

    When I pin a table, the commit/rollback buttons become disabled. Is there a reason for that, or is it a bug?
    Java(TM) Platform     1.5.0_12
    Oracle IDE     1.5.0.52.03

    Finally got some time to let it return. 454 tables takes takes between 9-10 min. I also noticed if I cancel it, SQLDeveloper becomes pretty unresponsive....probably for the remaining 9-10 minutes, but I've been too busy to double check.
    As for the Commit/Rollback buttons becoming disabled in 1.5.0, I'm not able to get an exact sequence, it "just seems to start happening". It happens when I have multiple tables pinned. Changes to one will let me commit/rollback, but changes to another will not. The window with the disabled commit/rollback buttons sometimes will not even mark a rownum as changed if it has been updated.
    The refresh button still prompts you to save since changes were made. That works as a commit/rollback if the buttons are disabled.

  • Enabling JHeadStart to Generate Automatically RollBack Button

    How to modify JHeadStart Templates so it generates automatically a Rollback Button in every Uix Page.
    Best regards

    Medba,
    You can make customizations like this in the JHeadstart Generator Templates. For instance, take a look at the dataPage.jut file. You'll find the following section:
    <pageButtonBar>
    <contents>
    $CHILD_NAV_BUTTONS$
    $NEW_BUTTON$
    $DELETE_BUTTON$
    $SAVE_BUTTON$
    </contents>
    </pageButtonBar>
    You can enter your own rollback button there, and it will be included in every page generated using this template. There are a few other templates you'll need to modify, for instance dataPagePC.jut (PC = Parent-Child) that also contains buttons. As long as the button puts 'event=Rollback' on the session or 'event_Rollback=true', it will do the trick.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • Rollback button problem!

    Hi! I have ADF form where I can navigate using buttons - Next, Last, ... When I press button New, I go to another page and can create new record, but if I press rollback button I go back to form where I can navigate records and see empty record until I press something! Why so?
    This rollback button is from Data Controls Module and have navigation rule to go back to whaching page. What to do?
    Best regards!

    Hi, mkonio! In adfc-config file I have 2 pages (more but that is not important in this case). One is zemniekuSaimniecibas.jspx and Second page is zemSaimnIevade.jspx. Between these pages is control flow caces. New page I open normaly. I create adf form where I can navaigate records. In this form I insert button from Data controls - "Create" button under my view object. I use the same view object in both pages. All pages is in the same task flow! Now are enough details?
    I can give You a link to see that:
    http://www.arstnieciskieaugi.lv (use IE) in Firefox aren't showDetailItem! I don't know why!?
    Press on button "Zemnieku saimniecības" then under form pres on button "Pievienot jaunu Z/S", You will going to create page. Then press "Atgriezties uz Z/S" and You will see what happens. Hope You can help me!
    Best regards!
    Edited by: Debuger on Oct 19, 2009 6:14 AM

  • Commit/Rollback Button, Count Records, Ctrl-End pblm?

    1. How about adding a commit and rollback button on the SQL Worksheet?
    2. How about a quick way to count the records in the result set in sqlworksheet and the data tab?
    3. Noticed that using ctrl-end on the data tab does not move to the last record. You still need to page down to the end, or scroll to the end. ctrl-end should move to the last record in the table. I get 55 records, ctrl-end, and then go to rec 105. There are 1k's of records in the table. Paging down will get me there.
    4. What about drag and drop selected text in SQL Worksheet?
    5. On the table tab (and sub tabs...what are they called?), automatically store the filters and sorts on a user.table level (and maybe a dropdown to recall them)? These are the kind of requests that really improve your efficiency, and acceptance of the product. The user believes that as they use the product, they are building a foundation that can be easily recalled later.
    As a note for any settings files...they should be stored so they can be easily transported to the next release or another pc. They should probably be in a directory with the operator's name (like my documents).

    I think it would be good to have a function (like Ctrl-End) that allows you to jump to the last record - even if there are a million rows.
    As far as a "work-around", exporting will count the records, so you could run your query and in the result table right-click, select Export -> some format. Once you select the file to export to, the Fetched Rows count is replaced with a Rows count for the export.
    The export does not appear fetch the rows in the results (unless you have already fetched to the end of the query) - in my example, when I ran the query the row count was "Fectched Rows: 100". I exported and the row count was "Rows: 4992". Then when I paged down in the results, the row count was updated to "Fectched Rows: 150". From this, I would assume that it is rerunning the query separately if you haven't already fetched the last record in the results.
    Interestingly, if I then scrolled down to the end of the query (displayed "All Rows Fetched: 4992") and then did an export, it appeared to scroll through the fetched records but ended up with "Row: 4991" displayed, but the full 4992 records were in the export file.
    Another interesting point - if I set up my query to return 199 records (ROWNUM < 200), when I run it, it displayed "Fectched Rows: 100". Once I page down enough it shows "Fectched Rows: 150" and then "Fectched Rows: 200". Then it is only after I page down more that it updates to "All Rows Fetched: 199".

  • Create, commit, rollback button behavior

    I have a view object dropped as a form. It has the default create, commit and rollback buttons.
    On initial display, only the create button is enabled, and the form is read-only.
    I click create button, which then it allows me to enter input.
    Upon clicking create button again, the form saves the input, clears itself, awaiting next input, and both commit and rollback buttons become enabled. I can continue to add more rows using create button.
    When I click either commit or rollback, the form becomes read-only again, and only the create button is enabled.
    This is the JDev standard form behavior which I want.
    Now, I add just 2 more enhancement, and this behavior gets broken.
    First, I drop the same view object as a table underneath the form, so that as records are added, the table will reflect it.
    Secondly, the form has two selectOneChoice components whereby upon valuechange on the first selectOneChoice, the second
    selectOnechoice items are dynamically populated via bean method and partial trigger.
    With these 2 changes, the entire page behaves like following:
    Upon create click, it gives me the form, but subsequent click on create does not clear the fields.
    If I click the create again, it then clears the fields. So, it takes 2 clicks on create to get a cleared form.
    But, it adds the row because I see it in the table below, but only one column displays the value in the newly added row.
    Upon commit, the row displays all values.
    Another thing is it fails to save the value from the second selectOneChoice field.
    Could you please point out what I am not doing right here?
    I would appreciate your insight.
    Thanks.
    Edited by: paikyunki on Oct 23, 2008 6:31 PM

    Chris,
    I might post the code tomorrow in my office - I am home now. Thanks for your offer.
    I gave some thoughts to my problem later, and it seems like one easy way out would be to create a form using ADF Faces components, then write a service method to insert a new row
    from the data gleaned through this form.
    I am new to JDev, and this approach of not utilizing the built-in functions of JDev may seem like defeating the very purpose of JDev.
    I find Oracle's Business Component's non-gui model very understandable and a strong alternative to Hibernate/Spring.
    However, it seems like sometimes it just may be easier, such as in this case, to resort to programmatic way.
    What is your view on this? I have used JDev less than 3 wks and would like to hear from experts.
    Yunki

  • Rollback button action.

    Hi. I put commit and rollback buttons in my form. I navigate through records, then edit one record and press rollback button. After that button click I am returned to first record. HOW to stay in current record after I press rollback button?
    Can anyone give example to resolve this problem?
    Best regards, Debuger

    A simple google search reported the following.
    Stay on previous or next row on rollback.
    Re: current row after rollback
    http://adfbugs.blogspot.in/2010/02/rollback-to-same-row-with-view-criteria.html

  • Creation of a button for rollback

    Greetings Experts from around the world,
    I am having like a lot of trouble in creating a rollback button.
    I have created a small application where i need to enter values for a set of elements at an hourly time interval.
    What is happening basically is that sometimes when people are saving values, they sometimes commit mistakes and i need to remove those values from the database directly.
    What i was thinking of doing was basically to place a rollback button. Is that feasible? and how can i do that? I have already created the button but i'm not too sure as to how to proceed with it
    Thanks
    kevin

    Hi Baig,
    Here is how it is.
    I have an LOV for games with a list of 10 games
    Then i have another LOV which display time from 7:00 to 22:00 but on an hourly basis. Then a field for entering an amt and another field for veryfying that amount number.
    I need to enter values for all the 10 games in order for the time LOV to go the the next hour.
    i am currenly using oracle 10g as database

  • [Jdev11gR1]: Insert taskflow run as dialog and window (X) Close button

    Hi
    i have taskflow to insert some data into database and i have (commit and rollback) buttons
    it is run as external dialog using (dialog:nav)
    when i press commit and rollback every thing good
    but
    if i press X button to close dialog , i find row added to the page
    please any body help me how to prevent the added row to viewobject or how to rollbacking when press X button to close windwo
    thanks
    Edited by: JDeveloper on Nov 29, 2008 11:38 AM
    Edited by: JDeveloper on Nov 29, 2008 11:40 AM

    Hi,
    can you add a return listener to the launching command to check if it is called in this case? If it is called then this is where you can rollback changes
    Frank

  • How to avoid the Commit/Rollback dialog box

    I've a JClient app with two frames wich relate to the same appllication module with the same connection (I need it because I want a single commit).
    I start the first frame,then I click a button to start the second frame, I insert data in the second one and I see the commit/rollback buttons in both navebars enabled.
    When I close the secod frame, without committing (because I want to commit at the end of the whole process) I receive the Commit/Rollback dialog box.
    How can I solve that problem ?
    TIA
    Tullio

    Remove or conditionalize the code in generated Form/Frame.java class that binds a WindowListener to the Frame like:
        addWindowListener(new WindowAdapter()
            public void windowClosing(WindowEvent e)
              _popupTransactionDialog();
              JUApplication juApp = panelBinding.getApplication();
              if (juApp != null)
                juApp.release();
              System.exit(0);
      }You may either conditionlize the above windowClosing method or the code in generated method
    private void _popupTransactionDialog()

  • JBO-35007: Row currency has changed.. when Rollback fom a Dialog page

    Hi All,
    From a page with an ADF Readonly table, I press 'Edit' button to edit some fields (not all) in an edit page as a Dialog page. Both page use same View Object Instance. Edit page has Commit and Rollback button.
    Since it is a dialog page , I add af:returnActionListener to the Rollback button
    If I press Commit its fine. But If I press Rollback, when I back to originating page I get this error :
    1. JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    2. JBO-35007: Row currency has changed since the user interface was rendered. The expected row key was oracle.jbo.Key[IV 2107 SIU01 ]
    How to solve this problem ?
    Thank you for your help,
    xtanto

    Doing a rollback by default clears the caches. This causes view objects to be requeried the next time they are needed, and causes the current row to be reset to the first row in the view object instance's default row set.
    This error means that the row that was current when the browse page was rendered is now no longer the current row. Token validation is set on the page definition for a JSF page. By default, token validation is on.
    To adjust the setting for token validation:
    1. Open the page definition file for the page.
    2. In the Structure window, select the root node for the page definition itself.
    3. In the Property Inspector, use the dropdown list for the
    EnableTokenValidation attribute to set validation to true to turn on token
    validation, or false to turn off token validation.
    Alternatively, if you cause a partial-page update on the base page, it should update it's notion of the current row and that is another way to avoid this error.

  • Problem using rollback in master-detail relationship

    Hello,
    I have an odd error using master-detail relationship, for example: countries and states. This is the problem:
    I have 3 pages:
    Page A: Read-only table of countries
    Page B: Read-only table of states
    Page C: State form
    and the flow:
    1. In the page A, select a country and click button to go to the states page
    2. In the page B, select a state and click detail button to go to the state form page
    3. In the page C, edit something and click rollback button. The rollback button's action goes to the page B
    4. In the page B, the states table is empty but I expected the table contains the same states those were in the step 2
    I know it's a bit difficult to understand but I hope someone can help me.
    Thanks, edwin.
    Edited by: user13259215 on Jun 19, 2012 10:44 PM

    On invoking Rollback the whole of AM is refreshed and hence all VOs are refreshed. The first row in all VOs is selected by default. You will need to retain the VO row selections on your own. Check this thread for ideas.
    Stay on previous or next row on rollback.

  • Rollback in Master-Detail form - SOLVED

    Hellou.
    I have 2 blocks Mater-Detail relation. I execute query and make some changes in Items from block 1 and some changes in items in block 2.There are althoug some POSTs. I have Button "Change Back" and i need to use this button to rollback all changes i have made (All post will be rollbacked). But it always rollback me only DETAIL block items, but MASTER block items didn't rollback.
    I use Forms_ddl('rollback')
    Althoug I change Session_mode to OFF and perform FULL rollback. But always the same. Master block NO ROLLBACK.
    Some ideas???
    Message was edited by:
    zoffob

    I want rollback and continue in query.I guess I don't understand what you are trying to do. Do you simply want to be at the same record when a rollback is issued? If so, this can still be accomplished using CLEAR_FORM() built-in. You simply need to capture the pertinent data so you can return to this record after the Form has been re-queried. For example, the user in on record number 75 when they decide they need to rollback the changes. In your Button trigger, you will need to capture that a rollback was performed and store the current record in a parameter or global variable. When the form is re-queried, check to see if a rollback was done and if so use the GO_BLOCK(), GO_ITEM(), and GO_RECORD() built-ins to return the user to the record they were on when they clicked on the Rollback button.
    For Example:
    When-Button-Pressed trigger
    BEGIN
       /**I prefer to use Forms Parameters to capture Forms unique global variables because
          these values only apply to the current form and shouldn't be visible to other Forms
          in the same session. **/
       :parameter.rollback_issued := 'Y';
       :parameter.current_block := :system.current_block;
       :parameter.current_item := :system.current_item;
       :parameter.current_record := :system.current_record;
       /**If you modified the Data Block's Default Where clause you will want to capture this
           information also. **/
       :parameter.curr_blk_def_where := get_block_property(:system.current_block,DEFAULT_WHERE);
       CLEAR_FORM(NO_COMMIT,FULL_ROLLBACK);
    END;Now, in your When-New-Form-Instance or When-New-Block-Instance trigger do something like:
    BEGIN
       IF (:parameter.rollback_issued = 'Y') THEN
          :parameter.rollback_issued := 'N';
          set_block_property(:parameter.current_block,DEFAULT_WHERE,:parameter.curr_blk_def_where);
          GO_BLOCK(:parameter.current_block);
          EXECUTE_QUERY;
          GO_ITEM(:parameter.current_item);
          GO_RECORD(:parameter.current_record);
       ELSE
          /** Do what you would normally do here.  **/
       END IF;
    END;If this is not what you are trying to achieve, please post what you are trying to achieve and why the CLEAR_FORM() method wont work and we'll see if we can help you find a way to achieve what you are trying to do.
    Hope this helps.
    Craig...

Maybe you are looking for

  • What are right parameter types of ODCIIndexInsert in case of creating indextype WITH ARRAY DML option (documentation mismatch)

    Hello. During developing Domain Index for Oracle 11.2.0.1.0 (problem also appears in 12с) i was faced with misunderstanding of parameter types of function ODCIIndexInsert in case of creating indextype  WITH ARRAY DML option According to Oracle docume

  • ID CS6 Interactive Pdf with buttons is coming up blank

    Please help. I am making a resume after recently graduating college. I have made the entire resume other than the "portfolio" page. I wanted to make the page show small images of my work, than when you roll over them they expand to show a larger imag

  • Laptop vs. Desktop??

    I currently have a 15in Macbook Pro ( that I've had for over 4 yrs, so it has older software on it.) A couple weeks ago it broke, so I am looking into getting a new computer. My question is whether I should get the newer 15in Macbook pro or get the i

  • My itunes gift card isnt working

    When I tried to redeem my itunes gift card the connection to itunes was lost. Then once i got back connected I again tried to redeem my card and it stated that my gift card had already been used/redeemed, however itunes *_did not_* add the money to m

  • Lens Profile Creator v1.0.2 Available

    Please check out the details at http://blogs.adobe.com/lightroomjournal/2011/04/additional-updates-posted-to-adobe-labs.ht ml. Also, Lightroom 3.4 and Camera Raw 6.4 are now available as final releases on Adobe.com and through the update mechanisms a