JavaScript dialog to confirm

Hi all. In my code, before to delete a register, I would like the user confirm the operation. I know javascrip dialog can make it for me. But (using JSF / JSC) I don�t know how to. Somebody could send me a piece code for that?
Thanks in advance.

I found this thread helpful:
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=64385
My "guess" is that you do not include action methods in your javascript. You submit to an action method. When your confirm returns true, the action is executed. When your confirm returns false, the javascript does not submit the page at all.
if (!confirm("Are you sure?.")) return false;
Note: the if statement is only required due to a bug, but that may be fixed with Update 1 release. Not sure.

Similar Messages

  • Javascript pop up confirm

    I would like to have my form be able to delete a database
    entry by clicking
    a button. Easy enough.
    However, I want to make sure that it isn't done by accident.
    Can someone point me to information on how to create a
    javascript pop up to
    confirm the action prior to it executing?
    If a member where to click the remove client button, I would
    like a
    JavaScript window to pop up and ask "Are you sure?"
    If the use clicks yes, it will run the REMOVE sql query on
    the page, if they
    click no, it will just close the window and nothing will
    happen.
    Thanks
    Wally Kolcz
    Developer / Support

    I found many examples of JavaScript confirm popups, but I
    don't know how to
    edit it to do what I want. I have this and, except that it
    wants to leave
    the site, works fine. How can I edit this so it either goes
    to the right
    part of the web site (the delete sol block) or runs the
    delete block inside
    of it? Thanks!
    <script type="text/javascript">
    <!--
    function confirmation() {
    var answer = confirm("Remove client?")
    if (answer){
    alert("Client has been removed.")
    window.location = "
    http://www.google.com/";
    else{
    alert("Client has not been removed.")
    //-->
    </script>
    Wally Kolcz
    Developer / Support

  • Javascript help needed (confirmation for cancel button )

    Hi guys!
    I am not good at javascript but am going to improve shortly :-). Now i need very quick fix.
    I'm using <html:cancel> button in Struts 1.1 and I'm using without thinking the following code:
    <html:cancel onclick="bCancel=true;" >
    <bean:message key="cancel.operation"/>
    </html:cancel>
    It is not that important though. I would like very much to alert user on possible loss of data (long multipaged form - could press mistakingly, who knows).
    Would you, please post the javascript code that is needed to accomplish this - just alert and if yes - cancel, no - leave alone?
    I'll really appreciate this.

    Thank you for your response.
    I also manage to write this. Is this correct?
    <script language="JavaScript">
    function ensure() {
    return confirm("Are you sure that you want to cancel this operation?");
    </script>
    <td colspan="3" align="center">
    <html:cancel onclick="bCancel=ensure();" >
    <bean:message key="cancel.operation"/>
    </html:cancel>
    </td>

  • Using onclick events in the javascript dialog box

    hi,
    Iam creating dialog box to get some inputs and use it for batch processes. so, i need onclick events on that dialog box.
    for example:
    in my dialog box, i fix a browse button(check box) and connect the choose folder box. but, after i click okay button only i get the choose folder box. i need to see the choose folder dialog box after click the check box.. is it possible???
    regards,
    Subha oviya

    hi bob,
    The following code shows a dialog box.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    var myDialog = app.dialogs.add({name:" Dialog Onclick Test", canCancel:true});
    with(myDialog)
    with(dialogColumns.add())
    with(dialogRows.add())
    with(dialogColumns.add())
    var browse_check = checkboxControls.add({staticLabel:"Browse",checkedState:false});
    if(myDialog.show() == true)
    if(browse_check.checkedState == true)
    var filefolder = Folder.selectDialog("Choose Files Folder");
    This is my code. After run this script a dialog box appear on the screen. we check the browse check box and then click he ok button. after then a "choose folder dialog box" will appear.
    i need to see the "choose folder dialog box" before press the ok button and after check the check box. IS IT POSSIBLE?
    Regards,
    Subha

  • Af:clientListener and javascript confirm() dialog

    Hi,
    a common requirement in most of our web apps is to include a warning dialog when a user tries to delete a record, ie. if someone presses on a link to delete a record they get a javascript dialog asking them "Are you sure you want to delete this record?'. Clicking ok will delete the record, while clicking cancel will cancel the action. Our jsp code from jdev 10.1.3 is shown below:
    <af:commandLink actionListener="#{bindings.removeRowWithKey.execute}"
              action="#{viewCalStatus.deleteCalStatus}" text="Delete"
                    onclick="return confirm('Are you sure you want to delete this record?');">
        <af:setActionListener from="#{row.rowKeyStr}" to="#{requestScope.calStatusRow}"/>
    </af:commandLink>We have noticed that in 11G <af:commandLink> no longer supports any javascript events such as onClick. The suggested replacement is to use <af:clientListener>, however, it doesn't look like the same functionality can be achieved. We tried the code below, however, when the delete link is pressed, the record is submitted for deletion before the javascript dialog shows up (which we kind of expected anyway). Is there any way of achieving the same javascript functionality using <af:clientListener>? If not, what is the suggested 'best practice' for achieving similar functionality?
    <script language="JavaScript" type="text/javascript">
        function confirmDelete() {
            if (confirm('Are you sure you want to delete this record?'))
                return true;
         else
                return false;
    </script>
    <af:commandLink actionListener="#{bindings.removeRowWithKey.execute}"
              action="#{viewCalStatus.deleteCalStatus}" text="Delete">
        <af:clientListener method="confirmDelete" type="click"/>
        <af:setActionListener from="#{row.rowKeyStr}" to="#{requestScope.calStatusRow}"/>
    </af:commandLink>Thanks,
    Michael.

    Hi Michael
    Hello from sunny Perth.
    I suspect (but don't quote me) what you're looking for is described in the entire section "3.9 Sending Custom Events From the Client to the Server" in the new Web User Interface Developer's Guide for ADF, available online with JDev 11g TP2.
    I've had some limited success testing this approach, to get a commandLink to call a client side JavaScript, display a message, and when the user clicks Ok, a server side backing bean method is called to do the rest of your work. It seems to work sometimes and not others, so I'm playing around with the config.
    As for "best practice," it's a little early to start asking this of a preview release isn't it? ;)
    Happy JDevelopering in Geelong.
    Regards,
    CM.

  • VI Server dialog box does not show

    I have an application that has a number of pop-up windows. Some of these are the built-in "File Dialog" VIs & some of them are my own modal windows (open when called, close when done). I have about 5 of my own and several built-in ones (like Yes/No Dialog boxes).
    I want to run a Web Server or VI Server to this application and am not sure how to best handle these pop-up windows. I would guess I would need a separate Web Publishing .htm file for each window, but of course the File Dialog does not have one. And I'm not sure what is the best approach using the VI Server.
    Any suggestions? I do not want to make an executable in my case as the program needs to run locally but be accessed remotely.

    The popups you're talking about called from the File Dialog VIs are windows system dialog boxes. These will need to be opened by a program on the remote machine somehow. This can be done either by remotely executing the code or modifying the code to use a different type of popup box native to whatever environment your client is running (for instance, google chrome has a prompt box). If you're running the whole thing in HTML you might look at http://www.javascripter.net/faq/confirm.htm for info on how to write a simple javascript dialog. I'm not sure I completely grasp your application, but regardless you're going to have to manage those popups from the remote execution environment. Just make sure you understand that the File Dialog ones are coming from windows system calls.

  • JQuery UI modal delete confirmation

    Hi,
    I am looking for suggestion on how to fix my script.
    What I am trying to accomplish is to replace a regular javascript delete confirmation window with jquery modal. My regular javascript delete confirmation (as it is build-in thing) looks as:
    in page header I have:
    script language="JavaScript" type="text/javascript">
    <!--
    htmldb_delete_message='"DELETE_CONFIRM_MSG"';
    //-->
    </script>and I have a template based button with Database Action: SQL Delete action and Option URL Redirect to
    javascript:confirmDelete(htmldb_delete_message,'DELETE');
    What I am trying to do with jquery ui is:
    1. I have this script in my page header
    <script>
    $(function() {
         $( "#dialog:ui-dialog" ).dialog( "destroy" );     
         $( "#dialog-confirm" ).dialog({
                   resizable: false,
                            autoOpen: false,
                   height:140,
                   modal: true,
                   buttons: {
                        "Delete all items": function() {
                             $( this ).dialog( "close" );
                        Cancel: function() {
                             $( this ).dialog( "close" );
         </script>
    <div id="dialog-confirm" title="Empty the recycle bin?">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">
    </span>These items will be permanently deleted
    and cannot be recovered. Are you sure?</p>
    </div>and I have a template based button (the same as before) with Database Action: SQL Delete action and Option URL Redirect to
    javascript:$('#dialog-confirm').dialog('open')
    My Issues:
    1. When I click on my "Delete" button, I am not getting my modal confirmation pop up in IE at all but I am getting it in Firefox for 0.5 second and then in both browsers I get white page with " [object Object] " on it.
    2. If I change my button to HTML button, I am getting my modal pop up screen but if I am confirming my delete option...it doesn't delete anything. For delete I use "Automatic Row Processing (DML)" process and I want to use Template based button not the HTML.
    I would really appreciate any help and suggestions.
    Thanks

    Hi,
    Create HTML region without template to before footer.
    Place to region source
    <script>
    $(function(){
    $("#dialog-confirm").dialog({
      resizable:false,
      autoOpen:false,
      height:140,
      modal:true,
      buttons:{
       "Delete all items":function(){$(this).dialog("close");doSubmit('DELETE')},
       Cancel:function(){$(this).dialog("close")}
    function confDialog(){$('#dialog-confirm').dialog('open')}
    </script>
    <div id="dialog-confirm" title="Empty the recycle bin?" class="hideMe508">
    <p><span class="ui-icon ui-icon-alert" style="float:left; margin:0 7px 20px 0;">
    </span>These items will be permanently deleted
    and cannot be recovered. Are you sure?</p>
    </div>And button URL target
    javascript:confDialog()Regards,
    Jari
    Edited by: jarola on Nov 10, 2010 9:02 AM
    Edited by: jarola on Nov 10, 2010 9:36 AM
    If you do not like change all your delete buttons:
    Just create HTML region to page zero before footer without template.
    Place to source
    <div id="htmldb-conf-dialog" title="Confirm"></div>
    <script type="text/javascript">
    $('#htmldb-conf-dialog').dialog({resizable:false,autoOpen:false,modal:true});
    function confirmDelete(m,r){
    $('#htmldb-conf-dialog').html($nvl(m,htmldb_delete_message)).dialog('option','buttons',{
      "OK":function(){$(this).dialog("close");doSubmit(r)},"Cancel":function(){$(this).dialog("close")}
    }).dialog('open')
    </script>This will overwrite original alert
    Regards,
    Jari

  • Button not disabling using Java Script after confirm message in button

    I have a STAGEDATA button on a form with the following code to prevent Resubmissions (Apex 4.0)
    Action When Button Clicked:
    Action: Redirect to URL
    Execute Validations: Yes
    URL Target:
    javascript:if ( apex.confirm('Have you saved the data on the current page? Please confirm.','STAGEDATA') ) {javascript:this.disabled=true;this.value='Staging data...';apex.submit('STAGEDATA');}
    When I click the button, the confirmation message is displayed.
    However, after the confirmation message is displayed, the button is not disabled and the value does not show, while post processing of the page takes place before moving to the next page.
    Am I missing something?
    Appreciate your help. Thanks in advance

    Hi,
    try adding
    <script>
       alert('Testing');
    </script>
    This actually adds the script to the page body and not the header as af:resources does
    Frank

  • Spoof dialog Boxes security issue

    Hi all
    Any one out there aware of this security issue with Safari
    "Secunia Research has discovered a vulnerability in various browser's, which can be exploited by malicious web sites to spoof dialog boxes.
    The problem is that JavaScript dialog boxes do not display or include their origin, which allows a new window to open e.g. a prompt dialog box, which appears to be from a trusted site."
    I found the above by accident as i was looking up something else.
    If you go to Secunia site and try the test you may find that you are also vulnerable.
    http://secunia.com/multiple_browser'sdialog_origin_vulnerabilitytest/
    The only way i found to stop the spoof dialog box was to turn off enable plug-ins in preferences. However i don't have any plug-ins in my Safari plug-in folder.
    I'am running safari 1.3(v312) however it would appear that it also effects version 2.2 of Safari too. Also i have installed the latest update but to no effect. Other browser effect are:-
    _ Internet Explorer for Mac
    - Internet Explorer
    - Opera
    - iCab
    - Mozilla / FireFox / Camino
    My question is, is this vulnerability true, or just a setup
    Any comments welcome.
    ~Tim

    Hi,
    The issue is resolved, but I don't know what caused this error.
    I uninstalled the java components and BO then I deleted the BO folder under program files, then I deleted all BO entries in the registry.
    Finally I reinstalled everything except the service pack and that finally worked. I don't know the cause of this error.
    Regards,
    Marcela

  • Need ideas for alternative to JavaScript for comparing two inputText values

    Hello
    I am currently using the JavaScript method to check if the values of two inputText components are equal.
    If the values are not equal an alert box is displayed. In either case the action on the bean is performed and in the action method the two bean property values are compared again, if they don't match the action returns null and the for is redisplayed.
    I don't like this method because:
    A) it seems long winded and wasteful
    B) the JavaScript dialog box is out of character with the rest of the form, where validation errors are returned as messages next to the offending component.
    On one of the inputText components I already do a custom validation to check that the input value is a valid javax.mail.internet.InternetAddress.
    Does anyone know of any other method ideas, perhaps using Value Change Events that will allow a message to be written against the second inputText component if the two values did not match, and which could be done before the Invoke Application event. I have tried something along these lines but have failed.
    Many thanks in advance...

    If you can use a custom tag for the validator instead of the standard f:validator tag,
    there is a better way:
    The custom tag has an attribute , eg. "forId", to specify the ID of another component.
    Then, your validator can use the attribute for the parameter of findComponent().
    Something like:
    YourValidatorTagHandler.java
         protected Validator createValidator() throws JspException {
              YourValidator val = (YourValidator)super.createValidator();
              val.setForId(forId);
              return val;
    YourValidator.java
         public void setForId(String f) {
              forId = f;
         public void validate(
              FacesContext context,
              UIComponent component,
              Object value)
              throws ValidatorException {
                   int i1;
                   int i2;
                   try {
                        i1 = ((Integer) value).intValue();
                        UIComponent comp = component.findComponent(forId);
                        String val = (String)((UIInput)comp).getSubmittedValue();
                        i2 = Integer.parseInt(val);
                   } catch (RuntimeException e) {
                        FacesMessage msg = new FacesMessage(e.getMessage());
                        throw new ValidatorException(msg);
                   if (i1 != i2) {
                        FacesMessage msg = new FacesMessage("Error");
                        throw new ValidatorException(msg);
         }

  • Calling javascript from a button

    Good morning everyone!
    I need to add a message box that asks the user a confirmation to delete information. So I want my delete button to call the javascript necessary to confirm the delete and then delete.
    My problem is in calling the javascript. I'm able to do so by using an image for my button and in the image attributes add:
    onclick="javascript:confirmDelete('Are you sure you to delete?');"
    This works perfectly, except for one thing: I don't want to use an image for the button. It doesn't fit with the rest of the application.
    I know it can work, because Oracle is using it on this page:
    http://apex.oracle.com/pls/otn/f?p=37719:8:3069181226556730::NO:::
    So how can I call my javascript from an ordinary button?

    I have a related question:
    How can I access the BROWSER_LANGUAGE in javascript? With my method of calling javascript, I didn't find a good way to pass variables to the function that I call.

  • Delete button action and javascript

    Hi! In old JDeveloper 10g I can put to my delete button JavaScript to open confirm window on button click - if(confirm(\'You are about to delete the selected record.\' )) {return true;} else {return false;}"
    What can I do in JDeveloper 11g and how to implement this functionality?
    Best regards, Debuger!

    Timo! When I do like You said then I have error: javax.servlet.ServletException: java.lang.NullPointerException
    I created popup and droped ther my delete button from my form. Then in form I created button that shows popup! I removed delete button disabled property so I can press it. But when I run my app. and click on delete button in popup then the following error occours:
    javax.servlet.ServletException: java.lang.NullPointerException
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:277)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         ... 36 more
    Caused by: java.lang.NullPointerException
         at kokaugi.view.bean.ValueHolder.deleteButtonPases_action(ValueHolder.java:95)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 52 more

  • Confirmation Window with YES & NO buttons

    Hello guys,
    I have created on hyperlink into region source of a page which redirect user with maintaining the session something like this :-
    Click Me
    and this works very much perfect, now my question is when user clicks on the link than he/she should be prompted by a confirmation window only by clicking YES button on that same window user will go to the specified link otherwise not???
    how to implement the same confirmation window??? does apex handles those stuffs or I need to implement something else for that???
    thxs
    regards,
    Kumar

    Kumar,
    I assume that you want user to click "Click Me" link and get prompted for Yes or No. If yes, he/she will be re-directed to a link.
    You can add this Javascript to call confirm function -
    <script language="JavaScript" type="text/javascript">
    <!--
    function confirm_response()
      var answer = confirm ("Would you like close this record?")
      if (answer) {
           window.location = "http://www.google.com/"
      else {
            // do something else
    //-->
    </script>and on you region's Click Me link, you just simply call above Javascript -
    a href='javascript:confirm_response();'

  • Call page process within Javascript

    Hey guys! Just shortly after working out my conditional Javascript dialog function I stumbled upon another little problem that is as follows:
    I need to call a page process from the Javascript function "dialogwarning" when the save button of a jquery dialog is clicked.
    The Update action works already but the pl/sql process is not carried out.
    Actually it cannot be that difficult...
    Can you please give me a hint how to accomplish it? Until now I've only seen threads were javascipt was called in an pl/sql process - not vice versa.
    Here's my code for the dialog:
    $(function(){
      $("#dialogwarning").dialog({
        autoOpen: false,
        bgiframe: true,
         modal: true,
            width: 400,
            minWidth: 400,
            resizable: true,
         buttons:{
           Save: function(){
              doSubmit('UPDATE','APPLICATION_PROCESS=proc_reset_mx_results');
          Exit: function(){
             $(this).dialog('close');
    </script>Any help is appreciated!
    Regards,
    Sebastian

    Well Dirk, thanks for your feedback.
    Option number 2 does not work for me since the "UPDATE" raised by the javascript function saves something to a table a and is supposed to launch a process that deletes from another table b. The javascript function in turn is already conditional to be raised only when some criteria match and a delete action is neccessary.
    In short words, option 1 would cause the launch of the delete procedure whenever the update process is called.
    Thus, I just created an application process proc_reset_mx_results that is of type after page submission:
    begin
    Delete from tbl_matrix_intermediate_result
    where str_lrt_class = :p231_str_lrt
    and lng_gebiet      = :p231_str_gebiet
    and int_be          = :p231_bewertungseinheit
    and eval_type       in (7,8);
    end;My problem - it doesn't work as it should. The dialog opens, I click the save button and in turn the update action is carried out. However, nothing is deleted from table b i.e. tbl_matrix_intermediate_result!
    Regards,
    Sebastian
    Wow, thanks for all your interest!
    @ roel
    It's a custom pl/sql anonymous block that is supposed to be called using the button of that jquery dialog. The dialog itself is only raised when a condition is met.
    The background info:
    -A user enters data that is stored in table a
    -The user goes to an evaluation module where the input values are weigthed and evaluated in an extensive stored procedure.
    -The user has the option to override the automatically calculated result by entering custom results.
    -Both result sets (automatic and custom values) are saved in tbl_matrix_intermediate_results.
    Here it comes:
    Only if the user modifies the input data after the evulation has been performed, then the message-box should be displayed and if the user agrees, all previous results should be deleted.
    I believe a trigger is not the proper tool for my purpose.
    I hope you can understand my point and problem now?
    Edited by: skahlert on 01.03.2010 14:20

  • Publishing "announce" sheet dialog irritating - can I turn it off?

    Is there any way to turn off the sheet/dialog that confirms when your site has been published? (Your site has been published using Moblieme. . .)
    Many times I'll be making many iterative small changes and this modal dialog really interrupts the workflow. . .

    Send a feature request to Apple at http://www.apple.com/feedback/iweb.html.
    OT

Maybe you are looking for

  • Itunes folder location is correct but music and books pointing to time machine

    hi, i was hoping someone could help with an itunes 10.6.3 issue i have.  i am using an imac with OS X 10.5.8.  when i open itunes preference, the itunes media folder location is correct.  however, when i look at a song or book info, it is pointing to

  • [SOLVED] Ctrl+Alt+S and Ctrl+Alt+O Blocked by ?

    Hi! On a new arch+gnome system, I cannot bind any command to the Ctrl+Alt+O and Ctrl+Alt+S shortcuts in pycharm. Going through all the shortcuts in gnomes' Keyboard > Shortcuts and via dconf-editor, I cannot find any program that binds to these short

  • Can u please give me two critical issues in app

    < MODERATOR:  Message locked.  Please read the [Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement] before posting next time. > can u please tell me two critical issues in app and explain me how i can solve

  • Convert aiff to mp3

    How do I convert a mix which is 29 meg aiff to an mp3 fpr the web i use to be able through itunes but not any more

  • Games for the Nano?

    I cant find games that will work for the nano on itunes. what BS are they trying to pull with only games for the touch and iphone?