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
Sign InSign Up

OrclQA.Com

OrclQA.Com Logo OrclQA.Com Logo

OrclQA.Com Navigation

  • Oracle
  • Oracle Apex
  • Python
  • Questions
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Ask Question
  • Add Post
  • Oracle
  • Oracle Apex
  • Python
  • Questions
Zulqarnain Haider
Zulqarnain Haider

Zulqarnain Haider

  • 8 Questions
  • 17 Answers
  • 0 Best Answers
  • 81 Points
View Profile
  • 0
Zulqarnain HaiderProfessional
Asked: November 19, 20202020-11-19T15:06:26+05:30 2020-11-19T15:06:26+05:30

How to implement Sweet Alert Message in Oracle Apex

  • 0

Hi Sir Vinish

I'm Working Sweet Alert Libraries Its Javascipt Alert Message all process done.Upload #APP_IMAGES#sweetalert.js  and  #APP_IMAGES#sweetalert.css

Now I'm using in Update, Delete button when i click then record update or delete.but facing problem no update or delete record.

Code is

if ($v("")) { // javascipt code when i click then record update?????

swal("Good job!", "Your product has been successfully Update!", "success")
} else {
swal({
title: "Your product has been not successfully Update!",
text: "Please correct your errors",
type: "warning",
showCancelButton: false,
confirmButtonColor: "#DD6B55",
confirmButtonText: "OK",
closeOnConfirm: false
});
}

 

oracle apexsweetalert
  • 5
  • 517
  • 0
  • 0
  • Share
    • Share on Facebook
    • Share on Twitter
    • Share on LinkedIn
Answer

5 Answers

  1. Vinish Kapoor

    Vinish Kapoor

    • 1 Question
    • 727 Answers
    • 63 Best Answers
    • 4k Points
    View Profile
    Vinish Kapoor Enlightened
    2020-11-20T08:17:59+05:30Added an answer on November 20, 2020 at 8:17 am

    I have checked the library after install; it is working properly.

    But I am not getting the understanding of the below code:

    if ($v("")) { // javascipt code when i click then record update?????

    Will you explain?

    • 1
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  2. Zulqarnain Haider

    Zulqarnain Haider

    • 8 Questions
    • 17 Answers
    • 0 Best Answers
    • 81 Points
    View Profile
    Zulqarnain Haider Professional
    2020-11-20T12:06:14+05:30Added an answer on November 20, 2020 at 12:06 pm

    Yes Sir Sweet Alert lib working properly but no update or delete record.

    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
  3. Zulqarnain Haider

    Zulqarnain Haider

    • 8 Questions
    • 17 Answers
    • 0 Best Answers
    • 81 Points
    View Profile
    Zulqarnain Haider Professional
    2020-11-20T12:07:29+05:30Added an answer on November 20, 2020 at 12:07 pm

    Delete code is

    swal({
    title: "Are you sure?",
    text: "Once deleted, you will not be able to recover this imaginary file!",
    icon: "warning",
    buttons: true,
    dangerMode: true,
    })
    .then((willDelete) => {
    if (willDelete) {
    swal("Poof! Your imaginary file has been deleted!", {
    icon: "success",
    });
    } else {
    swal("Your imaginary file is safe!");
    }
    });
    • 0
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
    • Vinish Kapoor

      Vinish Kapoor

      • 1 Question
      • 727 Answers
      • 63 Best Answers
      • 4k Points
      View Profile
      Vinish Kapoor Enlightened
      2020-11-20T14:11:09+05:30Replied to answer on November 20, 2020 at 2:11 pm

      In the above code, there is no such thing in which you are deleting something. It is just giving the message.

      • 1
      • Share
        Share
        • Share on Facebook
        • Share on Twitter
      • Zulqarnain Haider

        Zulqarnain Haider

        • 8 Questions
        • 17 Answers
        • 0 Best Answers
        • 81 Points
        View Profile
        Zulqarnain Haider Professional
        2020-11-20T14:21:29+05:30Replied to answer on November 20, 2020 at 2:21 pm

        Yes sir its just like Alert Message.but its possible to delete record using Sweet Alert  library ?????

        • 0
        • Share
          Share
          • Share on Facebook
          • Share on Twitter

You must login to add an answer.

Forgot Password?

Sidebar

Explore

  • Ask Question
  • Add Post

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