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

Similar Messages

  • 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.

  • 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 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".

  • 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()

  • 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.

  • Commit/Rollback in Stored Procedures

    I'm just confused about how this setup works. I understand that ODP.NET is in autocommit mode by default, and any INSERT, UPDATE, or DELETE commands are committed automatically. If they fail for any reason, obviously the row(s) are not modified.
    But how about sprocs? Do they autocommit as well? If so how are rollbacks handled? Do I need to explicitly create a transaction and commit/rollback? Is it best practice to commit/rollback in the .NET transaction or in the sproc itself?
    As you can see, I'm just really looking for info on how these two interact. Any info you can provide will be extremely helpful.
    Thanks!

    Hello,
    When ODP.NET is operating in auto-commit mode (the default as you note) this applies to PL/SQL calls as well.
    I am of the opinion that the client should be in charge of a transaction and I do not commit/rollback inside PL/SQL code (unless of course I am writing PL/SQL that is the client of other PL/SQL code).
    Here's a bit from Tom Kyte on the subject:
    http://tkyte.blogspot.com/2007/03/dreaded-others-then-null-strikes-again.html
    Just search for the text "Who control the commit?" on that page.
    Regards,
    Mark

  • 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

  • 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

  • Commit / RollBack

    Hi,
    I want to execute 2 or more database operation in one transcation with commit/rollback mechanism.
    Below is my code,
    How can i make it has commit /rollback (in one transaction).
    Thanks.
    InitialContext ctx = new InitialContext();
    DataSource ds = (DataSource) ctx.lookup("jdbc/SAPXXXDB");
    Connection con1 = ds.getConnection();
    Connection con2 = ds.getConnection();
    PreparedStatement pstm1 =con1.prepareStatement("insert into ZTABLE1(...)Values(...)";
    PreparedStatement pstm2 =con2.prepareStatement("insert into ZTABLE2(...)Values(...)";
    pstm1.executeUpdate();
    pstm2.executeUpdate();
    con1.close();
    con2.close();

    Hi Cemil Bozlagan ,
    When a connection is created, it is in auto-commit mode. This means that each individual SQL statement is treated as a transaction and is automatically committed right after it is executed.
    The way to allow two or more statements to be grouped into a transaction is to disable auto-commit mode by using Connection object.
    con.setAutoCommit(false);
    Once auto-commit mode is disabled, no query statements are committed until you call the method commit explicitly. All statements executed after the previous call to the method commit are included in the current transaction and committed together as a unit.
    Have a look
    PreparedStatement pstm1 =con1.prepareStatement("insert into ZTABLE1(...)Values(...)";
    PreparedStatement pstm2 =con2.prepareStatement("insert into ZTABLE2(...)Values(...)";
    pstm1.executeUpdate();
    pstm2.executeUpdate();
    con.commit();
    con.setAutoCommit(true);
    To roll back the transaction based on ur requirement u can use
    con.rollback()
    Regards,
    srikanth

  • 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

  • Button behavior in LV 7

    I am using LV 7 to run vi's created in LV 6. On these vi's I have buttons configured as normally open momentary. When I run the vis in LV 7 and the buttons are clicked, their behavior is changed to normally closed momentary. I have to exit the vi and manually change the button behavior back. I replace the buttons with LV 7 buttons, but the behavior is the same. Any ideas?
    Bill F

    "bfarley" wrote in message
    news:[email protected]..
    > I am using LV 7 to run vi's created in LV 6. On these vi's I have
    > buttons configured as normally open momentary. When I run the vis in
    > LV 7 and the buttons are clicked, their behavior is changed to
    > normally closed momentary. I have to exit the vi and manually change
    > the button behavior back. I replace the buttons with LV 7 buttons,
    > but the behavior is the same. Any ideas?
    I've had the same behavior on a VI created in LV 6.1. I thought it was
    because the buttons were monitored with an event structure.
    Are yours using any of the event functions also by any chance? I never
    tracked down this problem yet; I've been busy with other problems, and
    d
    idn't want to go bug-chasing just yet.
    -joey

  • Newbie - Default Button behavior

    I am trying to use HTML db to create a new application that will run on LYNX enabled scanners. When the user scans an item into a textbox there is a carriage return that is entered at the end.
    I would like to do one of two things -
    1) On the CR move to the next Text Item or
    2) On CR fire the only button on the page. Kind of like default button behavior in Forms or other PL's.
    Any hints that you could give me would be very helpful.

    Can I automatically go to another page within the application? If so how and where.
    I need to send an onchange from the text field then do I need to create a process to move to the next page?? I am a complete newbie to this so I have no clue. For an example lets say that I have Page1 and Page2 with Text1 on Page1 and Text2 on Page2. Here is the code that I am starting to put in the HTML Table Cell Attributes:
    onchange = 'javascript.dosubmit()'
    Now what do I need to do to change to page 2? Does it need to be a process? and if so what code do I need to put in it and where?
    This is for a Proof of Concept project, we are just trying to see if we can use HTML DB to create RF Scanner application.
    Thanks for your initial reply.

  • Creating an Animated Button

    HI
    I am new to flash. So i am trying to create an animated button, using a Movie Clip.
    1. I create a Rectangle with a fill.
    2. I convert it to a Symbol (Movie)
    3. Double Click on the graphic to create it's on Timeline.
    4. Why do i then need to convert to a symbol again?
    It will not animate unless i convert that timeline button again.
    I will now add a behavior, i think i am OK there...
    Thanks in advance...

    When you converted it to a movieclip. it already had a timeline.  In step 3 you would be accessing that timeline, not creating it. Whether or not you need to convert the rectangle to a symbol (inside the movieclip) depends on what/how you intend to animate.   Inside the movieclip the rectangle is the raw drawn item you started with, not an object that you can control except possibly to do a shape tween.  If you plan to tween the rectangle, such as fading it or moving it, then it needs to be converted to at least a graphic symbol.

  • How to create a rollover button effect in Captivate 7?

    Hi,
    I recently upgraded from Captivate 6 to Captivate 7 and am curious to know how I can create a rollover state for a SmartShape button. Basically, let's say I have a SmartShape being used as a button. What I want is to have the button have a glow effect and a shadow effect each time the mouse is hovered over it. Is there an easier way than having two objects on the slide -- one as the normal state and one the mouse hoever image. What I'm thinking is that the mouse hovered state image will have it's 'Visible in Output' set as unchecked and I can use an Advanced Action to show the object on mouse hover. Perhaps I can have the mouse hovered state image as a rollover SmartShape too?
    Nonetheless, this looks like too much work. If I have 10 clickables on the page for which I want rollover effects, I would need to have 10 additional objects with their rollover states -- just seems like too much, but perhaps that's the Captivate way. Or I am I missing the obvious?
    Any help would be appreciated.
    Thanks,
    Sean

    Most people would say the easiest way to achieve what you are talking about would be to just create your own custom image button in a graphics editor and give the Over state image having the glow effect that you want.
    If you decide to go that route, this tutorial describes the process of creating an image button:
    http://www.infosemantics.com.au/adobe-captivate/create-custom-image-buttons
    Another possibility is that you can use the Infosemantics Event Handler widget to trigger an Apply Effect action and use the Glow filter as the effect. 
    However, this may require some tweaking since it's not that easy to time effects that are applied via an advanced action.

Maybe you are looking for

  • Getting runtime error when i am deploying my ear file in weblogic8.1

    I deployed my ear file into weblogic server, the below error i got in console of weblogic server. please tell where i need to setup class path. I am using eclipse as IDE and running the project in eclipse. How can i set classpath in weblogic server ?

  • Never had an issue now i do, can go to a webpage but click a link within that website and it will not open

    Not sure what happened. I used to be able to go to a site and then click a link within that site and it would open. Now it won't, I added it to pop-page and still nothing so i am in blogger and try to "add a gndget" and the link will not open i was i

  • Using PREVIEW as default viewer

    I installed the latest version of Adobe Reader/Acrobat so I could access files I had been sent, no issues there. But, I inadvertently accepted Adobe as my default reader (replacing Preview) and I want to switch back but cannot find how or where to se

  • Cookie in a mod_plsql

    Hi, I want to set and get a cookie in a mod_plsql but i don't know to do this. Can u give me a help for that. Regards

  • How do I set the LUT binary thresholds?

    In a LabVIEW vi I am controlling the acquisition of an image with the IMAQ Property Node. I can select the LUT through the image parameters to Binary or Inverse Binary. However, I can't find the parameters to set the thresholds for binary conversion,