Call a process based on the click of a javascript confirm popup box

I have created a function to create a javascript confirm popup box which calls an update process called Reactivate_save(), see below:
function reactivate_save()
var r=confirm("Do you wish to save pending changes?")
if (r==true)
document.getElementById('Reactivate_Save').call();
I want to make the update process conditional on clicking the 'ok' button inside the popup box.....Is this possible?
I thought that I could reference it by using:
value in expression 1 = expression 2
reactivate_save() = true or 1
Neither of these worked and wondering if there is something else that I can use?
Thanks,
Chris

Hi,
Your function is in Javascript while the process is PL/SQL. What you need to do is somewthing like this
if (r==true)
document.getElementById('Reactivate_Save').call(); // not sure what this does so left it as it is
doSubmit('MY_REQUEST');
}You can now use the 'MY_REQUEST' request, or whatever else you choose to call it, in the process condition using
1. Request = e condition type by entering MY_REQUEST in the Expression 1
or
2. PL/SQL Expression type with :REQUEST = 'MY_REQUEST' in expression 1
Note : In Apex 3 and below you need to add a semi colon at the end of PL/SQL Expresssions
Regards,
PS : Noticed that this is the same as call a process based on the click of a javascript confirm popup box
Edited by: Prabodh on Sep 28, 2010 9:05 PM

Similar Messages

  • How to trigger the "click" event using javascript in LC8?

    I have 2 button in the form. I don't want the user to click the button1 directly (invisible now). but I want the user click the button2 and then do some checking. after checking is finisined,  the script will continue to trigger the button1 "click" event. How to trigger the button1 "click" event through javascript in LC 8? Thanks.

    button2.execevent("click");

  • I dropped my iphone 4 and the screen wont turn on, but i can still recieve calls and texts based from the sounds. What should i do?

    My iphone 4 was dropped on the bottom right corner, and the screen did not crack at all. The screen won't turn on, but alerts and noises come from the phone when i get a notification. What can i do?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.
    If this does not resolve the issue, take the device to Apple for an Out of Warranty replacement.

  • HTTPUNIT - How to click OK on a javascript confirm popup

    Hi all,
    I'm new using httpunit. I've to test a webpage that deletes an item. When you click on the delete button, a confirmation's popup is shown with two buttons (Accept and reject). To go on testing the whole website, I need to click on the accept button and I don't know how to do this. Could anyone help me please?
    Let me type some code to ilustrate the case.
    //This is the delete button as is written in the html's form tag
    buch of code
    <input type="button" class="button" value="delete" onclick="verify.onBorrar(this.form)"/>
    bunch of code
    //This is the javascript that handles the onclick event
    function verify_onBorrar(form){
    for(var i = 0;i<form.selection.length;i++){
    if(form.selection[i].checked){
    if(confirm('blablabla'){
    form.action = 'ConsAlmBorrar.jsp?';
    form.submit();
    verify.onBorrar = verify_onBorrar;
    note that selection is the name of a group of radio buttons
    With the httpunit java class that I've made, I'm able to select the item I want to delete, click on the delete button, and here is where the popup window appear and I can't go further.
    Thank you Indeed.

    Hi Maciejhttp://forums.adobe.com/people/Maciej%20Przepi%C3%B3ra
    Thanks for your inputs.
    I have memory leaks in my code. I have tried iDialog->Release() code which reduces some of the memory leaks
    Though I want to use more clean method of InterfacePtr.
    "To prevent reference counts  from incrementing, as in Type 1a and 1b, use this constructor, which does not  call IPMUnknown::AddRef:"
    Which Constructor you are pointing out, I didn't get it.
    I tried InterfacePtr<IDialog> iDialog((IDialog *)iWidgetParent->QueryParentFor(IID_IDIALOG));
    It started giving me assert again.
    Please give an example how to do it or which InterfacePtr constructor doesn't call AddRef().
    Many thanks for helping me with this.
    D

  • How to load the resource bundle message on confirmation popup

    hi every one
    i am using java script confirmation message on my delete button.
    this is my sample for that one
    <h:commandButton action="#{createCurrency.removeCurrency}"
             onclick="if (!confirm('Are you sure to delete this value?')) return false" value="#{messages.Delete}"/>    i need to load the "Are you sure to delete this value?" from resource bundle.
    is there any way to load above message from resource bundle.
    thiagu.m

    If you're using JSF 1.2, you can add the bundle config in your faces-config.xml file like this:
    <resource-bundle>
       <base-name>mypackage.i18n.MessageResources</base-name> // i18n is shorthand for internationalization
       <var>msg</var>
    </resource-bundle>     
    <locale-config>           
       <default-locale>en</default-locale>  // or whatever locale you preferred 
       <supported-locale>...</supported-locale> // other locale defined here if you need them
    </locale-config>Then create a property file called "MessageResources_en.properties. In this file, you can define something like:
    {code}
    MSG_CONFIRM=Do you wish to delete this value?
    // add other messages here. Syntax is: key=value
    {code}
    Then reference the bundle's message in your form as per normal:
    {code}
    !confirm(#{msg.MSG_CONFIRM}))
    {code}
    I haven't tried the above codes but it should help you get started.
    Edited by: icepax on 13/11/2009 19:44

  • CRM5.2 UI-Call a dynamic URL on button click

    Hi all, 
               My requirement is to call a dynamic url on the click of a button in the overview page. I have added a custom button in  the method  IF_BSP_WD_TOOLBAR_CALLBACK~GET_BUTTONS , and the related code in do_handle_event.I have created a custom method for the button event. I have enhanced a custom controller and created an attribute.In the custom method created for the button event, I have written the code for retrieving the parameters to be passed to the url.
    In the layout of the view associated with the display view , I have written the following code for calling the URL in a new window.
    <%
    DATA: lr_cuco_EMA TYPE REF TO ZL_BP_CONT_BPCONT_IMPL,
          lv_url TYPE string,
          lv_url1 type string,
          lv_count type i.
      lr_cuco_EMA ?= controller->get_custom_controller( 'ZBP_CONT/BPCONT' ).
      check lr_cuco_EMA is bound.
      if lr_cuco_EMA->gv_VALUE is not initial.
      if lr_cuco_EMA->gv_COUNT IS NOT INITIAL.
      clear lr_cuco_EMA->gv_COUNT.
      endif.
      LV_URL = lr_cuco_EMA->gv_VALUE.
      Concatenate 'http:/' LV_URL  into LV_URL1.
      Concatenate '"http:/' LV_URL '"' into LV_URL.
        lv_count = lr_cuco_EMA->gv_COUNT mod '2'.
        if lv_count Ne 0.
      lv_url = lv_url1.
    endif.
      %>
         <scrpt language="Javascript">
            window.open(<%= lv_url%>).focus();
          </script>
       <%
             lr_cuco_EMA->gv_COUNT = lr_cuco_EMA->gv_COUNT + 1.
             clear lr_cuco_EMA->gv_value.
             clear lv_count.
             clear lv_url.
             clear lv_url1.
             ENDIF.
    %>
    But here my URl is getting called alternate times.If I do not write the code  by using the variable GV_COUNT the url is getting called only the first time of the button click  and to call the URL again you need to navigate back to the search page and again back to the overview page and click on the button.
    Can anyone help me regarding this? I want the URL to be called in a new page on every button click.
    Thanks in Advance,
    Chandana

    Hi Nisha,
    The crux of your issue here is that you want to call the event triggered with onClick before calling the event triggered on onClientClick. This can be achieved by the following code in the function called on the onClientClick.
    function fn_button()
               htmlbSL(this,2,'b_row_selection:onInputProcessing()');
               window.open("new_page",target="BLANK");
    Here, fn_button is the javascript function called on button click, and b_row_selection is the event triggered on the onClick event of row selection.
    Try this out and let us know if it works for you.
    Regards,
    Saurabh

  • Dynamically change the contents of one combo box based on the other

    Hi Forum,
    I have a question which might have a possibly simple answer. Well anyway help me out since i could not find the simple answer.
    I am building an application using Swing and binding with BC4J using JClient. My GUI has combo boxes, grids, editboxes. My requirement is that i should be able to dynamically change the contents of one combo box based on the selected item in trhe previous combo box. For example, when i choose a country in the "country combo box", the "states combo box" should show the list of the states of the selected country.
    Now how do i do this using binding. If not, how do i write custom querirs in BC4J layer and return a resultset to the remote application so theat i can populate the dependent combo boxes.
    I will appreciate if anyone can help me out in this regard.
    Thank You
    Sumit

    there could be quite a few number of ways of solving this problem.
    One way is through event handlers.
    taking your example as a model when user selects a country you could fire an action with a flag set to ture. A method will return the states from the DB or your temporary files or what ever and then the true flag will be used in the states combo box rendering.
    other way: javascript
    this might be a bit clumsy as you will need the states information in a property file and you can get the info as the user selects a country.
    regards,
    raj

  • Javascript  Confirm Based on server time!!

    Hello Everybody,
    I want to raise a javascript confirm dialog box based on the server time. On button click, I want to raise the following code if the time is between 11 am to 24pm.
    E.g.
    IF l_time BETWEEN '11:00' AND '24:00' THEN
    htp.p('<script>');
    htp.p('var r=confir("Do you want to proceed?");
    htp.p('........so on');
    htp.p('</script>');
    ELSE
    -- just submit the page
    END IF;
    Any help will be appreciated!!
    Thanks,
    Parveen

    Hi,
    a.Always mention the Apex version, in every post.
    b. Always enclose your code in a pair of tags to make is more readable.
    Javascript can read the local machine time. If you want to access the server time you will need to use PL/SQL or SQL for that and pass that to the javascript function.
    Any specific reason why you are generating the JS through PL/SQL? Its so much easier to decalre the function in the Page HTML Header rather than doing htp.p.
    Regards,                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Pass Mouse click events from JavaScript to Falsh Movie

    Hi,
    I have an interesting problem here.
    i am trying to create a web page which has my
    flash-presentation movie. i need to disable mouse click &
    keyboard click navigation of the flash movie. The only way by which
    i can navigate my slide in the flash movie should be using 2
    buttons say Next & Prev that are i my web page.
    when i click the Next button i should be able to go to the
    next slid or the animation in the same slide like how i do in the
    power Point.
    Is there any way by which i can send these mouse click
    events from my javascript to my flash movie or is there any other
    means by which i can achieve this.
    ~Blackperil

    Hi Mathias,
    What i understood is that you want to triger a server side event (simulate onClick event of button)from a client side event (javascript confirm popup), based on the choice of user..
    You can also try this one...
    Check = confirm("Do you really want to proceed?");
    if (Check == true)
    document.getElementById('do_proceed').click();
    else
    document.getElementById('do_cancel').click();
    Regards,
    Anubhav

  • Hello! I want to set up an appointement with Genius Bar but when i choose the available date and try to confirm there is this message appears : We're sorry. There was an error processing your request. Click OK to try again. HELP ME PLEASE

    Hello! I want to set up an appointement with Genius Bar but when i choose the available date and try to confirm there is this message appears : We're sorry. There was an error processing your request. Click OK to try again. HELP ME PLEASE

    I have called the store with the same problem but the answer is this must be done on line. I was told to use a different browser but it has made no difference - I am still having the same problem

  • We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a

    We are trying to implement a process so that any document that needs to be printed through our Java application will be printed as PDF using Adobe Reader. For which, We created and execute the below command line to call Adobe Reader and print the PDF on a printer."C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /T "\\<Application Server>\Report\<TEST.PDF>" "<Printer Name>". Current Situation: The above command line parameter when executed is working as expected in a User's Workspace. When executed in a command line on the Application Server is working as expected. But, the same is not working while executing it from Deployed environment.Software being used: 1. Adobe 11.0 enterprise version. 2. Webshpere Application Server 8.5.5.2. Please let us know if there is a way to enable trace logs in Adobe Reader to further diagnose this issue.

    This is the Acrobat.com forum.  Your question will have a much better chance being addressed in the Acrobat SDK forum.

  • Process to split production order based on the raw material batches

    Hi All, below is a business situation which needs some some SAP process to help overcoming this issue.
    We are working on process industry, where the core fabric (SFG) are produced from different machines and which are used as raw material in the subsequent process (Coating).  Business wants SAP to generate individual planned orders for Coating when it uses this materials
    e.g
    Current situation.
    SFG1  is the component of SFG2
    SFG2 is  the component of FG.
    When the demand for FG is 100, you get 2 planned orders  SFG1- 100 yd and  SFG2- 100 yds
    During production, the Planned order for SFG1 is split for 2 production order  each producing 50 yds each.
    Now I have SFG1 - 50 yds ( Batch A001), and SFG1- 50 yds ( Batch A002).
    Now Business wants  SAP to automatically propose 2 order for SFG2, However based on MRP it will  only show 1 planned order of 100 yds required for SFG2 since the demand of FG is 100.
    We want to split the planned orders of the higher level to look at lower level stock.
    Any ideas or thought process.
    Regards
    Sarvan

    Sarvan,
    You can have MRP propose two lots of SFG2 based upon lot sizing.  For instance, if you always will want SFG2 to have orders of 50 each, then one way to achieve this would be to set the 'maximum lot size' to 50.  MRP1 Tab of the material master.
    There are other lotsizing methodologies that may be better suited to your business requirements as well.
    Lot-Size Calculation - Consumption-Based Planning (MM-CBP) - SAP Library
    Best Regards,
    DB49

  • Process flow for the Mid-year Status Changes based upon the Qualifying Even

    Hi Experts,
    I'm looking some information for the process flow for the Mid-year Status Changes based upon the Qualifying Events. Basically, I need to know, what would be the impact of these changes on various info types (Via IT0014 - Deduction changes & so forth) and the things that needs to be considered during it's Configuration and the things that needs to be checked due to the occurrence of the change. I would greatly appreciate any kind of help/document.
    Thanks a bunch in advance,
    Thanks,
    Exertive.

    Hello guys,
    Can anyone has any kind of input on this? Basically, I need to know the procees for Mid-year status changes based upon Qualified events. Any kind of help is greatly appreciated.
    Thanks,
    Exertive.

  • How to process data in the past based from data in the present

    hello guys,
    i have a problem in my labview programs. how to process data in the past based from data in the present ?
    i have a formula self-organizing maps
    this formula is looking for D1, D1 is neuron index that will be searched for the smallest value.and the result are D1=2 ,D2=5, D3=17 from calculating with formula  .it means the smallest value is 2, "2" from weight [2 2] in file attached.
    and then it will be in other formula
    it mean [2 2] + 0.5 ( [1 1]-[2 2] ) = [1.5 1.5]
    and the weight will be  [1.5 2 2 ] in matrix
                                              1.5 3 5
    I would appreciate any input/help on solving this
    thanks
    Attachments:
    dika.vi ‏16 KB
    weight.txt ‏1 KB
    data .txt ‏1 KB

    Hi Ronny Hanks,
    Moving your records from internal table into the database table depends upon various scenarios :-
    1. If you use INSERT statement.
    INSERT <database_table> FROM TABLE <internal_table>.
    But in this case, you need to make sure that you don't have any duplicate entries in your internal table that violates data entry into database table, else you will get a dump.
    INSERT <database_table> FROM TABLE <internal_table> ACCEPTING DUPLICATE KEYS.
    In this case, you are forcefully inserting duplicate records into your database table which may lead to data redundancy in your database table.
    2. If you use UPDATE statement.
    UPDATE <database_table> FROM TABLE <internal_table>.
    This will update the existing records in your database table from the internal table.
    3. If you use MODIFY statement.
    MODIFY <database_table> FROM TABLE <internal_table>.
    This statement works both in combination of INSERT & UPDATE statements.
    Existing records (in database table) will be eventually updated/modified and new records (not in database table currently) will be successfully inserted into the database table.
    Hope this solves your problem.
    Thanks & Regards.
    Tarun Gambhir.

  • Escalation process in Service Ticket based on the Priority,DueDate & Status

    Hi Experts,
    What is the standard way of Escalation process in SAP CRM Service Ticket management based on the Priority, Due Date and Status together. SLA can be usde with Service Ticket ?
    Based on the status, priority and due date/Time, how can I re-assign the ticket and send mail to the specific responsible employee or department to work on the ticket.
    Thanks
    Shaik Chand

    Hi Chand,
    pls check this below link ..
    http://help.sap.com/saphelp_sm40/helpdata/en/ec/7c83dc4ded11d5992600508b6b8b11/content.htm
    Regards,
    Raghu

Maybe you are looking for

  • Change Management. Cannot go to the next phase ... And common questions.

    Hi dear colleagues! Here there are some unpleasant problems which has arisen during Change Management functions realization... 1. After approving of Urgent Correction by so-called "Change Manager", "developer" couldn't set it status "in development"

  • FRM-41361 Cannot navigate out of current form in Enter-Query Mode

    Hi All, I am getting the FRM-41361 error in the bottom message area when opening a form from the function navigator. The issue does not exist when opening the form from the application homepage. The form is loaded in enter-query mode, and the enter_q

  • I have adobe design std. 6 i wanted to install photoshop and acrobat pro on my windows xp sp3

    i have adobe design std. 6 i wanted to install photoshop and acrobat pro on my windows xp sp3. i am not able to install acrobat it is showing folowing error. my email id is [email protected] Exit Code: 6 Please see specific errors and warnings below

  • ADC and DVI  (GeForce FX 5200)

    Hello, I need some help! I have been offered a G5 1,8Ghz PowerMac with a GeForce FX 5200. Just a while ago, I bought an LCD Monitor (22``) with only one D-SUB socket (analog). Do I have the chance to run this monitor with the installed GeForce ??? Ho

  • Mac OS X Yosemite mail not working properly

    Hi, I have a MacBook Pro (Retina, 13-inch, Late 2013) - and using with Mac OS 10.10 - Yosemite i was previously using Mail with Mavericks without any major problems - Gmail, exchange server, iCloud, etc. however, after upgrading to yosemite immediate