How to call javascript process?

Hello!

I have a button Delete which redirects to url:

javascript:apex.confirm (htmldb_delete_message,'DELETE_CONFIRM_MSG');

And a process that is placed after validation.

How to call this process, I put the button to zero State and condition the type of request = Expression 1 and tried the two doDelete and confirmDelete in the expression field, but it does not work.

How can I call the process?

Hi EgaSega,

Give you an example, try something like below

(1) change your page

Create the javascript function in the HTML header

  

(2) of the button calls the javascript function

action button: "URL redirect".

Target URL: javascript:f_execProc();

(3) modify your process

In Conditions

When you press the button: no condition button

Condition type: request = Expression1

Expression1: REMOVE

Hope this helps you,

Kind regards

Jitendra

Tags: Database

Similar Questions

  • How to call javascript in an another QML

    Hello

    I have 2 file QML file qml 1A listview with ArrayDataModel as the source of data, when the user clicks on a line, it nav push another QML to change/remove, the arrayDataModel consist of a given amount of time, which 1 contains a qml file label to display the subtotal of all time values in the data model. I also have a javascript that will do a loop through the ArrayDataModel to update the label of the total time that I call the file onCreationCompleted 1 qml, all works well.

    However, when deleted, the listview will automatically update, now the problem is how can I trigger a refresh on qml file 1 in order to update this label.

    Here's the qml file 1

    import bb.cascades 1.0
    
    NavigationPane {
        id: navigationPane
        backButtonsVisible: false
        Page {
            titleBar: TitleBar {
                title: "Interval Timer"
            }
    
            content: Container {
                id: root
                background: Color.LightGray
    
                // Javascript definition
                function udpateTotalTimeLabel() {
                    var totalHour = 0, totalMinute = 0, totalSecond = 0;
                    var print = function(o) {
                        var str = '';
    
                        for (var p in o) {
                            if (typeof o[p] == 'string') {
                                str += p + ': ' + o[p] + '; 
    '; } else { str += p + ': {
    ' + print(o[p]) + '}'; } } return str; } for (var i = 0; i < eventsModel.size(); i ++) { var currentEvent = eventsModel.data([ i ]); totalHour += parseInt(currentEvent["EventHour"]); totalMinute += parseInt(currentEvent["EventMinute"]); totalSecond += parseInt(currentEvent["EventSecond"]); } if (totalHour < 10) totalHour = "0"+ totalHour; if (totalMinute < 10) totalMinute = "0" + totalMinute; if (totalSecond < 10) totalSecond = "0" + totalSecond; totalTimeLabel.text = totalHour + ":" + totalMinute + ":" + totalSecond; } ... Container { // Container for the total time id: digitsContainer preferredWidth: 780.0 background: Color.create(0.2, 0.2, 0.2) bottomPadding: 50.0 layout: DockLayout { } verticalAlignment: VerticalAlignment.Center horizontalAlignment: HorizontalAlignment.Center topPadding: 50.0 topMargin: 0.0 Label { id: totalTimeLabel horizontalAlignment: HorizontalAlignment.Center text: "88 : 88" textStyle.fontSizeValue: 0.0 textStyle.lineHeight: 1.5 textStyle.textAlign: TextAlign.Center topMargin: 0.0 verticalAlignment: VerticalAlignment.Center // Apply a text style to create large, light gray text textStyle { base: SystemDefaults.TextStyles.BigText color: Color.Green } } // end of total time container } Container { // Conatiner for the Go button id: goButtonContainer layout: StackLayout { ..... onCreationCompleted: { root.udpateTotalTimeLabel(); console.log("No of EventsModel: " + eventsModel.size()); console.log("In sheet creationCompleted"); mainObj.dataReady.connect(root.onDataReady); }

    Here's the qml file 2

    import bb.cascades 1.0
    import bb.system 1.0
    
    Page {
        titleBar: TitleBar {
            title: "Edit Event Detail"
        }
        property alias txtEventName: eventNameText
        property alias pickEventTime: eventTimePicker
        property int selectedIndex: 0
    
        // Javascript implementation
    
        content: Container {
            id: editEventPage
    
            Container {
                layout: StackLayout {
                    orientation: LayoutOrientation.TopToBottom
                }
                Container {
                    Container {
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        leftPadding: 20.0
                        topPadding: 50.0
                        bottomPadding: 50.0
                        Label {
                            text: "Event Name"
                            preferredWidth: 200.0
                        }
                        TextField {
                            id: eventNameText
                            hintText: "Enter Event Name"
                            preferredWidth: 500.0
                        }
                    }
                    Container {
                        layout: StackLayout {
                            orientation: LayoutOrientation.LeftToRight
                        }
                        leftPadding: 20.0
                        Label {
                            text: "Event Time"
                            preferredWidth: 200.0
                        }
                        DateTimePicker {
                            id: eventTimePicker
                            mode: DateTimePickerMode.Timer
                            minuteInterval: 1
                            preferredWidth: 500.0
    
                            onValueChanged: {
                            }
    
                        }
                    }
                }
            }
        }
        // Attached Objects
        attachedObjects: [
            SystemDialog {
                id: dialogConfirmDelete
                title: "Confirm Delete"
                body: "Do you really want to delete this event?"
                onFinished: {
                    if (dialogConfirmDelete.result == SystemUiResult.ConfirmButtonSelection) {
                        console.log("Commiting to delete " + selectedIndex);
                        eventsModel.removeAt(selectedIndex);
                        navigationPane.pop();
                    }
                    else {
                        return;
                    }
                }
            }
        ]
        // Context actions
        actions: [
            ActionItem {
                title: "Save"
                ActionBar.placement:ActionBarPlacement.OnBar
    
                onTriggered: {
    
                }
            },
            ActionItem {
                title: "Delete"
                ActionBar.placement:ActionBarPlacement.OnBar
    
                onTriggered: {
                    dialogConfirmDelete.show();
                }
            },
            ActionItem {
                title: "Cancel"
                ActionBar.placement: ActionBarPlacement.OnBar
    
                onTriggered: {
                    navigationPane.pop();
                }
            }
        ]
    }
    

    Thanks in advance

    NVMD, I solved it.

    QML 2 file-> refresh C++ function signal-> qml file 1 onDataReady call javascript to label fresh

  • How to call javascript method action listener.

    Hi Experts ADF,

    JDEV version 11.1.1.7.0

    I cb2 and cb1 button, 2. I call the pressing cb1, cb1 - actionListener () method. I invoke the javascript cb1() method.

    And JavaScript, I need to invoke the command button 2 actionListener. How do I get there?

    I tried the below code but its not invoking is not the cb2_actionListener.


    var button
    = AdfPage.PAGE.findComponentByAbsoluteId ("cb2");

    ActionEvent.queue (button, true);

    Thanks in advance,

    Animesh

    HI Anne

    If you have created actionListener for button cb1 cb2 actionListener call you in this

    See - Blog of Ashish Awasthi (Jdev/ADF): call to Action button by programming, Queuing ActionEvent

    Or if you insist on using Javascript then try this

    var component = AdfPage.PAGE.findComponentByAbsoluteId (commanButtonId);

    AdfActionEvent.queue (component, component.getPartialSubmit ());


    Thank you

  • How to call resuable process BPM of another project?

    Hello

    UseCase:
    We have two projects BPM - project1 and project2 into the same request. Project1 has of a reusable BPM process that needs to be accessible via a process inside project2. Is it achievable? If so, please expain how we can do that.

    I tried to use CallActivity in process2. But CallActivity only shows the list of processes in the same PROJECT.

    Thank you
    Suren.

    It is possible. You must deploy project1. Project1 has a wsdl url now. Copy this wsdl url and call a web service in composite of the project2...

  • How to call JavaScript/ExtendScript for first Pro CC Mac OS

    Looking for a way to run JavaScript aka ExtendScript in first Pro CC

    Here's what I have for other applications Adobe, using AppleScript:

    tell application "Adobe After Effects CC 2015"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      DoScript SomeExtendScript
    end tell
    
    
    tell application "Adobe Photoshop CC 2015.5"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      do javascript SomeExtendScript
    end tell
    
    
    tell application "Adobe Illustrator"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      do javascript SomeExtendScript
    end tell
    

    But so far nothing for first.

    tell application "Adobe Premiere Pro CC 2015"
      activate
      set SomeExtendScript to "ThisVariable='Runs This Js Code';"
      -- Does not work: DoScript SomeExtendScript
      -- Does not work: do javascript SomeExtendScript
      -- Does not work: do script SomeExtendScript
    end tell
    

    ExtendScript = JavaScript Adobe-flavored. Very similar.

    For other products Adobe AppleScript has been the key to do this.

    Yes, but there is no need to limit your solution to a single platform!

    I'd be curious to see what you do in AE.

    Instead of trigger ExtendScript some system based on external data, you can put the buttons in a panel of HTML5 (JavaScript based) for convenience of the user.

    Here is an example of PProPanel; other samples in the repository prettier HTML and use modern web frameworks; PProPanel is quite comprehensive in the use of agency ExtendScript API:

    Samples/PProPanel to master · Adobe-CEP/Samples · GitHub
    Pushing metadata to projectItems PProPanel = shows how to get the static value (metadata Panel) and temporal metadata (marker).

    Here is "how to set up a panel dev environment:

    Samples/ReadMe.md to master · Adobe-CEP/Samples · GitHub

    Work in the readme file, play with the sample and feel free to ask me anything!

  • How to call one process of another?

    Hello

    I created two process and two buttons on a page.
    Button1 runs termpol1.
    Button2 runs Process2, which is supposed to run termpol1 before execution of its own logic.

    How can I implement this?

    Thank you

    Gabor

    Make sure that Process1 has a sequence number less than Process2, then do the condition for the execution of termpol1 PL/SQL Expression with

    :REQUEST in ('Button1', 'Button2')
    

    in the Expression 1. Note that this condition is case sensitive.

  • How to call javaScript action af:commandButton

    Hello

    ..... I use JDeveloper 11 g last Relese Version...

    I have a commandButton control in my page as:

    < af:commandButton text = "commandButton 1" id = "cb1" action = "gotoPage2" / >

    I want to call this action of commandButton control when I press F8.

    Thank you

    Sameh Nassar

    Hello

    Try

    function invokeCommandAction(id){
      var component = AdfPage.PAGE.findComponentByAbsoluteId(id);
      AdfActionEvent.queue(component, component.getPartialSubmit());
    }
    

    where 'id' argument, that you pass to this function is the id of the command button

    Frank

  • How to call a process that runs in another engine

    Hi all

    I looked through the 10.3.1 OBPM docs, I found "Subflow activity" and "Business process" can invoke a process that runs in another engine. But in the studio OBPM, I find not all the properties of these two activities to set up this feature.

    Any ideas? Thanks in advance.

    Best regards
    Bill

    Hi Bill,
    In addition to the above, you may consider using process Interfaces, you can define an interface to process in a project and import it into another project to simulate its execution by the way and receive arguments, after when you deploy business interfaces are not published and are substituted by real projects located in tha other project.
    HTH

  • How to run Javascript in a PL/SQL Page process?

    Hi all
    I developed a page that calls Adaptive API of PayPal payment and I had success by posting to PayPal and get a response with a valid "Paykey" using a process of PL/SQL page. I leaned heavily on 'Express Application Integration with PayPal Payments Pro' at http://www.oracle.com/technetwork/developer-tools/apex/integrating-application-express-wit-129259.pdf


    Now I need to call again PayPal (to process page) for my user to approve the payment set up exactly.

    PayPal's API doc says to run the following Javascript code, but I can't understand how to call her leave in a PL/SQL Page process...:


    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("< paykey returned earlier > https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=");
    }
    javascriptLaunch(); -For auto-run function


    Note: The 'src' in the header is:
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >


    So if I take the URL in the startFlow (and provide a paykey valid) and put it in my browser the page URL approval as expected, but I need to have the "pop up" approval in a lightbox of a PL/SQL Page process.

    I think that it is something simple, but I need your help.

    Thank you
    Russ

    Below, I've included the entire contents of a local file, I created to prove the javascriptLaunch works and isn't the problem (of course PayPal gives an error in the light table, because he can't find a 'junk' paykey):

    < html >
    < head >
    < script src = "https://www.paypalobjects.com/js/external/dg.js" type = "text/javascript" > < / script >
    < / head >

    < body >

    < script type = "text/javascript" >
    function javascriptLaunch()
    {
    flow_Javascript = new PAYPAL.apps.DGFlow ({expType: "light"});
    flow_Javascript.startFlow ("https://www.sandbox.paypal.com/webapps/adaptivepayment/flow/pay?paykey=junk");
    }
    javascriptLaunch();

    < /script >



    < / html >

    Why should it be run from pl/sql process?

    What is the process? What is a button on the page?
    Could this button call a dynamic action that fires to javascript, and then a few plsql, then call your required javascript API?

    Scott

  • How to call the java function with javascript setting in mobile adf?

    How to call the java function with javascript setting in mobile adf?

    The ADF Mobile utility container API can be used from JavaScript or Java.

    Application container API - 11 g Release 2 (11.1.2.4.0)

  • How to call the javascript function in ADF

    I have the javascript function stored in a .js file external (try to reuse in another application). How can call the javascript function for an event of ADF faces component. I need to I am a newbie to ADF, all ideas are appreciated.

    Kind regards
    Surya

    Published by: sgodavar on Sep 24, 2010 11:44

    Include JavaScript to the jsff/jspx as page:

    Call it like:

    Type = "dblClick" / >
    Amit

  • How to call the file of JavaScript in the Page header model

    Hello

    I created a Javascript custom.js file and uploaded in the shared-> component static files.
    How to call this file in the Header of Page Template, I mean the exact syntex...

    Thank you
    Deepak

    Hello

    File name must be typed exactly the same as the file that you downloaded.

    Are you sure that your file is OK? Did you remove

    wwv_flow_file_mgr.get_file?p_security_group_id=4967074027259628303&p_fname=custom.js
    
  • How to call service to process BMP OSB?

    Hi all

    Could someone tell me how to call a proxy service or a business process BPM studio OSB?
    Sorry, I'm new in the scope.

    I tried to:
    create processes-> create Global Interactive-> main cteare task-> type: method, name someMame, etc..

    I tried to code:
    alsbEndpoint as AlsbEndpoint = Fuego.WebServices.AlsbEndpoint (url: "http://localhost:7021/njws_basic_ejb/NormalSimpleBean"))

    thus:

    httpEndpoint as HttpEndpoint = Fuego.WebServices.HttpEndpoint (url: "http://localhost:7021/njws_basic_ejb/NormalSimpleBean"))

    URL*-corresponds to the URI of the endpoint of the OSB business I created using examples of service bus.


    Thank you very much in advance!

    You will need create a module in your component catalog, for example of WebServices. Then right-click on this module and select component Catalog-> Web Service. You can then two points to a copy local or remote from your WSDL and it will be discovered. Alternatively, you can select catalog component-> Aqualogic Service Bus. After that, choose new Configuration and provide a name. You then provide the host/port/user/password to your console of OSB. This will allow you to browse projects and services directly from BPM and then select the one you want to catalog instead of the WSDL. Anyway you will give the same web service catalogued and the same result.

  • 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

  • Call the process page when clicking on a link to report

    Hi all
    I want to call a process of conditional page when clicking on a link to report;
    That is to say the process runs only if the user clicks on the report link.
    How can I do this?

    Thanks for your help.

    Concerning
    Ozzie

    Hello

    Yes, if you use the column change attributes report, in the section "links" column you can assign values to some articles.

    But if you only need to apply, you should probably use URLS like target and a javascript:doSubmit('REQUEST');.

    Kind regards
    Andrea

Maybe you are looking for