Sign Up

❇️ OrclQA.Com is a question and answer forum for programmers.
❇️ Here anyone can ask questions and anyone can answer to help others.
❇️ It hardly takes a minute to sign up and it is 100% FREE.

Have an account? Sign In


Have an account? Sign In Now

Sign In


Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.


Have an account? Sign In Now

Sorry, you do not have a permission to ask a question, You must login to ask question.


Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

Oracle APEX Tutorials & Forum

Oracle APEX Tutorials & Forum Logo Oracle APEX Tutorials & Forum Logo

Oracle APEX Tutorials & Forum Navigation

  • Home
  • Oracle Apex
  • PL/SQL
  • SQL
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Ask Question
  • Write a Tutorial
  • Tools
    • Oracle Table Script Generator
    • PL/SQL Package Generator
  • Users
  • Tags
  • FAQs
  • Badges
  • Home
  • Oracle Apex
  • PL/SQL
  • SQL
Yuri
Yuri

Yuri

  • 1 Question
  • 1 Answer
  • 0 Best Answers
  • 26 Points
View Profile
  • 0
YuriContributor
Asked: September 1, 20212021-09-01T17:51:23+05:30 2021-09-01T17:51:23+05:30

Confirm Question after validation and submit

  • 0

Hi,

My workflow is:

  1. Press button "SAVE"
  2. Validation
  3. If pass then a submit processing
  4. A question "Do you want to send a mail?"
  5. If OK - to send mail.

My problem is that Confirm Message is javascript.

Where's a point of that in submit processing?

Thanks

confirmprocessingsubmit
  • 2
  • 213
  • 0
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
Answer

2 Answers

  1. Vinish Kapoor

    Vinish Kapoor

    • 1 Question
    • 727 Answers
    • 62 Best Answers
    • 4k Points
    View Profile
    Vinish Enlightened
    2021-09-01T18:02:21+05:30Added an answer on September 1, 2021 at 6:02 pm

    Follow these steps:

    Create a new page as modal dialog and print the text on it "Do you want to send a mail?".

    Then create two buttons on this modal dialog page, for example, yes and no buttons.

    Now on that page from which you want to ask the question. Create a branch after processing and open the dialog page you just created.

    And on the dialog page, you can write the code for sending the mail for the Yes button.

    Use this approach, it would work perfectly.

    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  2. Yuri

    Yuri

    • 1 Question
    • 1 Answer
    • 0 Best Answers
    • 26 Points
    View Profile
    Yuri Contributor
    2021-09-01T19:51:14+05:30Added an answer on September 1, 2021 at 7:51 pm

    Thank you Vinish, for your fast answer.

    After I sended the question I've solved this problem in an another way.

    I didn't want to create a new page. I've created a new brunch in the After Process section with Redirect to URL javascript:isSendMail();

    In the function javascript:

    function isSendMail(){
    apex.message.confirm('Do you vant to send Mail?' ,
    function( okPressed ) {
    if( okPressed )
    {
    apex.server.process("Send_Mail"
    ,{x01 : $v('P80_SEQ')}
    ,{dataType : 'text'
    ,success : function(pData){
    console.log('Success: '+pData);
    //                    apex.navigation.dialog.close(true);
    }
    });
    } else{
    //          apex.navigation.dialog.close(true);
    }
    });
    }else {
    // apex.navigation.dialog.close(true);
    }
    }

    This works too.

    Regards

     

     

    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter

You must login to can add an answer.


Forgot Password?

Sidebar

Explore

  • Ask Question
  • Write a Tutorial
  • Tools
    • Oracle Table Script Generator
    • PL/SQL Package Generator
  • Users
  • Tags
  • FAQs
  • Badges

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
© 2022 OrclQA.Com. All Rights Reserved.
Privacy Policy - About Us