call a process based on the click of a javascript confirm pop-up

I created a function to create a JavaScript confirm pop-up box called an update process, called Reactivate_save(), see below:

function reactivate_save()
{
var r = confirm ("do you want to save the pending changes?")
If (r is true)
{
document.getElementById('Reactivate_Save').call ();

}
}


I want to make the update process by clicking on the button 'ok' within the popup box... Is this possible?

I thought that I could reference using:

value in the expression 1 = expression 2

reactivate_save() = true or 1


None of them worked and I was wondering if there is anything else I can use?

Thank you

Chris

If the name of your button is 'OK', then you write doSubmit ('OK');

Tags: Database

Similar Questions

  • MessageTextInput filed should show/hide based on the clicking on the checkbox

    Hi all

    Could you please let me know how hide/show messagetextinput field based on by clicking on the checkbox.

    On page load, should not visible and then clicking on the checkbox should the textfield object visible.

    Kind regards

    Prakash

    Please close the message by checking the correct answer

  • Call AJAX process and pass the value on request

    Hello
    I want to call a process on demand by a button. So I added the following for her javascript code:


    function update_bp1()
    {
    Alert ('hhhhi');
    Alert (document.getElementById('P11_PATIENTID').value);
    var ajaxRequest = new htmldb_Get (null, & APP_ID., 'APPLICATION_PROCESS is update_bp', 0);
    ajaxRequest.add ('patient_id1', document.getElementById('P11_PATIENTID').value);
    ajaxResult = ajaxRequest.get ();
    Alert (ajaxResult);
    }
    < /script >


    The called application process is:

    declare
    number of v_id;
    number of v_visitno;
    v_patientid varchar2 (10);
    BEGIN

    Select max (id), max (VISITNO)
    in v_id, v_visitno
    of TBL_PATIENT
    where PATIENTID =: patient_id1;

    Update TBL_PATIENT
    the SYSTOLIC value = 10,
    DIASTOLIC = 20
    where id = v_id
    and visitno = v_visitno
    and patientid =: patient_id1;

    commit;

    HTP. PRN ('process value'-|: patient_id1);

    end;

    It seems there is error in the ajaxrequest.add clause, as after commenting on the function is executed. Alert print correctly the value P11_PATIENTID.
    The alert of the ajaxresult gives the complete HTML code and the process is not running. How interpreet ajaxresult error.

    Please help me to identify the problem.

    Thank you

    Hello

    I think that it is not relative browser, but Firefox with the module Firebug is just a better tool for web developer.
    It is easier to debug problems you have now.

    Is the point of application patient_id1? You need also to pass the value to the application process?
    If you don't need it another vise, it is better to use variables global apex_application

    Try this
    JavaScript for HTML page header

    
    

    Then, create the new process On demand application named UPDATE_PATIENT. Please note that the name of this process is case sensitive.

    DECLARE
      v_id        NUMBER;
      v_visitno   NUMBER;
      v_patientid VARCHAR2(10);
      v_count     NUMBER;
    BEGIN
      SELECT MAX(id),
        MAX(visitno)
      INTO v_id,
        v_visitno
      FROM tbl_patient
      WHERE patientid = apex_application.g_x01
      ;
      UPDATE tbl_patient
      SET systolic  = 10,
        diastolic   = 20
      WHERE id      = v_id
      AND visitno   = v_visitno
      AND patientid = apex_application.g_x01
      ;
      v_count := SQL%ROWCOUNT;
      COMMIT;
      htp.prn(v_count || ' rows updated');
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
      htp.prn('error: patientid ' || apex_application.g_x01 || ' not exists in tbl_patient');
    WHEN OTHERS THEN
      htp.prn('error: ' || sqlerrm);
    END;
    

    Kind regards
    Jari

  • How to get the process based on the correlation instance?

    Can someone please help me get all the process/sub-sub-process color based on the correlation.
    Is there some API available with the method like getProcessByCorrelation()

    Dude,

    First approach:
    public getInstanceByCorrelation (String processId InstanceInfo,
    String correlationName,
    Object [] correlationValues)
    survey OperationExceptionGets the instance specified by the process id, alias and the correlation values.
    Correlations defined during the Argument mapping in the Studio. Unlike the arguments, there is no way to retrieve the name of correlation or values programmatically.

    For this you must have ProcessServiceNESession.Please below the list of the api
    http://eDOCS.beasys.com/albsi/docs57/papijavadoc/Fuego/PAPI/ProcessServiceNESession.html

    Second approach:
    You can also use under method in ALBPM to findCorrelation
    instanceId = Correlation.findInstanceBy (name: "", values: {});
    Once the correlation is found, it will return u the instanceId of instanceId.From you can do what you want. Once again your fitness questions

  • Please help guys - hide fields based on the menu drop-down - javascript - output (adobe livecycle)

    I'm trying to hide certain fields in a form that is based on any value selected from a drop down menu, as shown in the image below. My main dropdown has values such as $25, $50 $ 75 and based on what value is selected, I want to hide two text field and date field, I created. Also when you select a value of $1000 I want to hide the ' field Manager ($ 25 - $ 100).

    hidefields.jpg

    That's how I would solve the problem. Note that the numbers used in the comparisons are links in the drop down menu.

    I don't know if it solves your problem exactly, but he should at least get you on the right track.

  • How to call a taskflow based on results from the drop-down list. ?

    Hello

    I want to call a taskflow based on the results of the drop-down list, I have a drop down list with LOV, if I choose a value insofar as it must call the taskflow are entrusted to him. How to do this. ?. How to assign a taskflow for all values and how to call it. Someone please help...

    Page:

    http://Java.Sun.com/JSP/page"version ="2.1 ".

    xmlns:af ="http://xmlns.oracle.com/adf/faces/rich" >. "

    valuePassThru = 'true '.

    valueChangeListener = "#{SelectBean.onSelection}" > "

    Main.XML (TaskFlow);

    http://xmlns.Oracle.com/ADF/controller"version ="1.2">

    Choose

    Choose.JSFF

    /Web-INF/FirstTF.XML

    FirstTF

    /Web-INF/SecondTaskFlow.XML

    SecondTaskFlow

    Choose

    First

    FirstTF

    Second

    SecondTaskFlow

    Code VlaueChange Listner already told you.

    First and second pages only contain output text component in my example. I think that is not necessary

    Concerning

    Vincent

  • Customize a page based on the SQL function

    Hello

    Please someone help me solve this problem.

    In a page I am Image. By clicking on the image, a page will open. The image is created using the code of the controller.

    The values are displayed in the second page based on the clicked image.

    While the page is being prepared a SQL function must obtain an entry and based on the input TextField should be changed to read-only or not.

    Thanks in advance,
    Roselyne

    There is no log file for OFA...

    Set the profile FND: Diagnostics to 'yes '.

    You can see the error on the screen.

    Prasanna-

  • Best method to call several process flow sequentially

    For my question, I am filling a star schema. In this case I want to fill the Dimensions of first, and then the FACT tables in the last. If I have already created the processflows and set a schedule for them inside OWB, he will call all process flows at the same time on this annex. This will only the parent table, the dimensions, the need to be filled first. I tried well shift calendar, but this seems a little primitive. The ideal would be an addiction where a failure on one of the DIM process flows would result in an abandonment of the whole process, until solve you the problem of charge SUN. First, is there a method inside OWB which will allow you to do? Otherwise, what is the best method outside OWB requiring more money?

    Create a process flow that calls the process Dimension sup flow then done under workflow process. Plan the flow of top-level processes only.

    If

  • Calling a process from a link to the column in a report

    Apex 4.2

    I have a classic report which has links to the column. I can't call a process when you click on these links. I want to insert a record into the table when you click on this link. So I have a process for updating the database

    {code}

    DECLARE

    l

    _vc_arr2 APEX_COLLECTION_GLOBAL. VC_ARR2;

    BEGIN

    -apex_application.g_print_success_message: = ' sector selection: ' | : P122_SECTOR_SELECTION;

    l_vc_arr2: = APEX_UTIL. STRING_TO_TABLE(:P122_SECTOR_SELECTION);

    FOR z IN 1.l_vc_arr2.count LOOP

    -apex_application.g_print_success_message: = 'TEST2 ';

    -htp.p (l_vc_arr2 (z);

    insert into ISECTOR_PHASE1_ACTIVATION

    (PHASE_1_ACTIVATION_DATE, INSPECTION_SECTOR_ID, HIGH_WATER_EVENT_ID)

    values (: P122_ACTIVATION_DATE.l_vc_arr2 (z),: P0_HIGH_WATER_EVENT_ID);

    END LOOP;

    END;

    {code}

    The report query is:

    {code}

    Select...

    ......

    .......

    -case when current_activation_status = 'Not active' then

    "< a href =" f? p = & APP_ID.:122: & SESSION. Phase 1: "> click here < /a > '"

    Another null

    go to link,

    ....

    {code}

    Phase 1 is the name of the process. I think there may be an error in how I build the link. I build the query link, because there will be other cases that determine what process will run. That is when current_activation_status = 'active' and then '< a different link and process > '.

    So I figure that if I can do it in a "if - then" clause of an instruction box, so I can change it to accommodate several "if-then" clauses in the case statement.

    Also, should ASK = phase 1 in the status of the process?


    Thanks in advance. Let me know if you need more information.

    Just to clarify, by using a link + a request and do not put the page is a perfectly legitimate solution to this problem.

    If the above code is in the region of report source query you need not use the notation #COLUMN #. You can concatenate the string together. also, I made sure to escape from your simple tics. the clause is only to create a dummy sample put to test against

    with TEST_DATA as(
      select 'NOT ACTIVATED' CURRENT_ACTIVATION_STATUS , 1 INSPECTION_SECTOR_ID from DUAL union all
      select 'ACTIVATED', 2  from DUAL union all
      select 'ACTIVATED', 3  from DUAL union all
      select 'NOT ACTIVATED', 4  from DUAL
    )
    select case when current_activation_status = 'NOT ACTIVATED' then
    'Activate'
    else NULL
    end as link
    from test_data
    

    Good luck

    Tyson

  • When I use a special rendering for my xfaForm I can't have the full button or finished when I call workspace process?

    Hello

    I have a 'FlexriverInvoice' process that contains two steps first change a budget ID and pass the xfaForm, then a second step use the rendering service that return a pdf.

    I created a new process 'InvoiceCall', he uses 'FlexriverInvoice' service in the first stage and second he use a service of writeXml that put a coded XML on my "c:" in the advanced settings of xfaForm of my "InvoiceCall" of the process, I enable rendering with 'FlexriverInvoice '.

    When I call the process of work space, I have the button submit on the pdf file and when I click there is no action.

    When I put the InvoiceCall xfaForm rendering"default process, I have the finished button and if I click I have xml texts on my"c: ".

    the .lca process is attached to this message (Please remove the extension pdf)

    Thanks for your help

    Hamza

    "I'm sorry, but I did not understand how to find the url to submit.

    It is a property of the button submit on your XDP.

    Jasmine

  • Call for a process of page by clicking a link

    I have a report of the Apex with several lines and a column of link in. I would like to be able to call a page process to work on the line with the clicked link... I also need a couple of settings somehow to the process page that he calls a procedure that requires the parameters to operate correctly.

    So-
    When I click on a link on a line... maybe a couple of hidden objects page get ready.
    The page is then submitted and my process calls the procedure by using the values of the elements defined above as its parameters.
    Control is subject to the original page.

    So, basically, I'm trying to allow a user to perform repetitive actions on each line.

    My thought was to use a URL in the link and perhaps Javascript... or I am barking the wrong tree and is there a better way rather than a link?

    Thoughts?
    See you soon
    Ken

    You have the right idea. JavaScript is the way to go. Assuming that the values that are passed are part of this line of data, you can build the call to process JavaScript.

    Create two hidden objects on your page, make sure that they are not protected.
    say P1_CITY and P1_STATE

    Say your city query included and the State, define a column in the report as a link of the URL target with the following url

    JavaScript:MyFunction('#City#',_'#State#');

    Then set a javascript function in the HTML header section page

    function myFunc (City, pState) {}
    $x_value ('P1_CITY', City);
    $x_value ('P1_STATE', pState);
    doSubmit ('RUNPROC');
    }

    Then a process on the page did you want and which is conditional on the APPLICATION = "RUNPROC."

  • Routing of calls based on the area Code

    I want to route the calls to some agents based on the caller's area code. I guess I'll need a database file to reference the calling party number. Then filter on the area code and the router accordingly. I never did look a script on a database. I would use a separate SQL database server for this.

    I can handle the routing part as soon as I know not if the number of matches. I just need some advice on getting to the database correctly.

    If I'm heading in the wrong direction? It must be an XML file instead? All the sample scripts or tips would be appreciated.

    No problem. Remember not all the nifty tools in the method Execute of Java later and I think that you will find very practical in many scenarios.

    Moreover, do not forget if you find a post is useful or solve your problem, you should give him a side :)

    Thank you

    Jim

  • Cisco Jabber call privilege based on the location

    Hi team,

    a customer asks to change the privilege of call user for Cisco Jabber Extension based on the location to have Mobile call privileges if they are covered by the local Access Point and internal call privilege if they are registered on the Internet

    y at - it an idea how to. ?

    Characteristic of mobility to implement in CUCM device, it does exactly what you ask.

    Chris

  • How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    How to navigate to the next page based on the value returned by the method call inside the action attribute of the command key.

    I use JDeveloper 12.1.2.0.0

    < af:button id = "tt_b2".

    rendered = "#{attrs.nextRendered} '"

    partialSubmit = 'true '.

    action = "#{attrs.backingBean.nextAction} '"

    Text = "next".

    Disabled = "#{attrs.nextDisabled}" / >

    private static final String NEXT_NAVIGATION_ACTION = "controllerContext.currentViewPort.taskFlowContext.trainModel.getNext";

    public String nextAction() {}

    If (validate()) {}

    updateModel();

    Return NEXT_NAVIGATION_ACTION;

    }

    Returns a null value.

    }

    Use case is made for model train, which is being implemented based on this blog: http://javacollectibles.blogspot.co.UK/2014/10/ADF-train-template.html

    We define a generic action following in the model, but the action must be called under certain conditions, based on the question of whether all validation controls had been passed on no.

    You can do this in two ways:

    1 returnValue = (String) ADFUtils.invokeEL("#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}");

    return returnValue;

    2.

    public String getNextTrainStop() {}

    String nextStopAction = null;

    ControllerContext controllerContext = ControllerContext.getInstance ();

    ViewPortContext currentViewPortCtx = controllerContext.getCurrentViewPort ();

    TaskFlowContext taskFlowCtx = currentViewPortCtx.getTaskFlowContext ();

    TaskFlowTrainModel taskFlowTrainModel = taskFlowCtx.getTaskFlowTrainModel ();

    TaskFlowTrainStopModel currentStop = taskFlowTrainModel.getCurrentStop ();

    Terminus of TaskFlowTrainStopModel = taskFlowTrainModel.getNextStop (currentStop);

    nextStopAction = nextStop.getOutcome ();

    _logger.fine ("train, next stop:"+ nextStopAction ");

    Return nextStopAction;

    }

  • PS ask activetion again. the worm is first CS PS v8, it fails, I tried to call help number given on the page but service does not exist, redirect to .../go/activation statement fails, it causes some assistance - activate is not possible to click

    PS ask activetion again. the worm is first CS PS v8, it fails, I tried to call help number given on the page but service does not exist, it redirects to .../go/activation

    statement fails it causes some assistance - activate is not possible to click

    Adobe has disabled the server activation for pre CS3 products a long time ago and that's why you are unable to activate your product. I can not to suggest what to do, but I don't know that CS2 owners with this problem can download a version specially created that doesn't require activation. To my knowledge, no such version exists for CS. If it was me, then as the real owner of the software and just unable to use it due to having no mechanism to activate, I download CS2 and use it until someone from Adobe told me to stop. It is a sensitive issue because the download site clearly indicates that there must be an existing CS2 owner. However, the url to the download was posted the pirate not many Adobe Web sites not as a way to free download the CS2. I imagine that there have been hundreds if not thousands of downloads from 2013 when it became first available and so far Adobe has not made any attempt to restrict the download to current owners of CS2. Their policy is quite clear if CS2 is not given away for free. Fortunately, I use CC2015, I can't make a call on it, but the URL is below if you want to move forward.

    Download Adobe Acrobat 7 and Adobe Creative Suite 2

    Terri

Maybe you are looking for

  • End of 2009 to new iMac

    I have a 27 "iMac (late model 2009) which, despite the efforts of the CAD in High Wycombe, still does not work properly (Mail is a bit erratic and other hardware and software does not behave as expected. I am considering getting a new iMac and am won

  • Download Mozilla Firefox

    On my I Phone

  • NI 9505 encoder resolution?

    Hello I have the following hardware configuration: -compactRIO controller 9074 with NI 9505 (DC Brushed Servo Drive) and NI 9263 (analog outputs). -Maxon Motor RE 40 (no-load speed ~ 7500 RPM) -R137 encoder Gurley (180000 cycles/rev = 720000 counties

  • Identify the Version of the Firmware

    My HP Officejet 6500 a Plus has the version of the firmware CIP1FN1206AR installed (as shown on the network configuration page information). The latest firmware from the website is OJ6500_E710n-z R1206A.exe dated 09/05/2012. How can I determine if th

  • How to save png or jpg in the library of Cloud?

    I have the idea that you simply move the objects of applications and it is in the library. However, if you wanted to Sage png, JPG, which are the exported on, PSD? It seems that if you import the png and jpg in, PSD or INDD and make them slide librar