Generate a confirmation message on press of a button

Hi,
I have a button with an action "redirects to the page in this application"...
I want to generate a confirmation message when my users press the button... if they press "okay" or "yes" then they should proceed to the redirected page, if the select "No" then they should stay back to the same page...
Please advice how to accomplish it...
Thanks
Tal

>
is there a way to have "Yes" and "No" buttons rather than having "ok" and "Cancel"...?if not, I can live with this too...
>
I think you would need to live with OK and Cancel. :)
>
may I also know how to clear the cache of the page 2...
>
You can create a pl/sql process on your target page which executes before header and resets all the items to null and whatever else you want to do.
Cheers
Zahid

Similar Messages

  • Is Confirmation Message possible in case of File to IDOC

    Hi Friends,
    It’s a File (sender) to IDOC (receiver) interface. Once the IDOC is posted correctly in SAP, is it possible to generate a confirmation message back to sender file? 
    I want to know if there is any way to inform the sender system that the transaction was successfully created.
    Thanks in advance.
    Regards,
    Meghna.
    Edited by: meghna swaraj on Mar 27, 2008 1:53 PM

    Hi Friends,
    It’s a FILE to IDOC interface. confirmation message back is needed to sender file, for that I followed the below link for Configuring the IDOC acknowledgment ALEAUD.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f6d2d790-0201-0010-9382-b50b499b3fbe
    As specified in point 7 and 8, used the transaction RBDSTATE & created the variant SAP_AUDIT_SEND for report RBDSTATE and scheduled a background job at receiver system.
    Here the problem is, acknowledgment for ALEAUD getting scheduled twice, as a result two IDOC’s ALEAUD is generated.Instead it should get scheduled only once.
    Can any one tell me why the job is getting scheduled twice.
    Thanks in advance.
    Regards,
    Meghna.

  • Nokia E52 soft terminates message info pressing "e...

    Hello!
    The problem is button placement - in Nokia. Button "3" (D,E,F) is placed too close below "end call" button, and I accidentally, pretty often, press "end call" button (which is placed above)
    It is really annoying then you have written a long message and accidentally erase is by pressing "end call".
    Is there a possibility to not automatically erase message information pressing "end call" button?

    should it remain there if you goto messege? Or in draft folder?

  • Showing error messages on click of Save button only

    Hi,
    Generally SAP web client GUI is showing the error message on pressing of Enter button (or) picking up any data field and stepping out of it. We want to show error messages for mandatory fields only when user clicks on Save. How can this be done in SAP web client GUI?
    Regards
    --Hari

    Hi Hari,
    If you want to raise an error message on save. Try this.
    method eh_onsave
    DATA: lr_msg_service    TYPE REF TO cl_bsp_wd_message_service.
      DATA: ls_msg_no TYPE symsgno.
    if ( condition failed)
      lr_msg_service = me->view_manager->get_message_service( ).
        lr_msg_service->add_message(
        iv_msg_type       =  'E'
        iv_msg_id         = 'Z_MSG_CLASS'
        iv_msg_number     = ls_msg_no ).
    exit the method once the error message is raised
    exit
    endif.
    end method.
    Note : specify the message class and message number in the add_message menthod.
    Hope this was helpful.
    Best Regards,
    Lakshminarayana

  • Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in

    Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed" (in german "Fehler bei der Anmeldung"). I hope have explained the issue on the right way with my bad english. Do you have a solution for it?? Best regards, Marcus Wenk

    yes, you are right. it is the adobe reader via exportPDF. but it should be the acrobat. it was written on the internetpage...

  • Issue with page processing - confirmation message & show /hide a button..

    Hello,
    I am working on a to do list application.
    I have events and for each event, I show list of tasks (grouped in reports based on the calculated task's status).
    In one region I have a drop down list of events and a Select Event button.
    For each task, I had to create a CLOSE option (initially I used a link, but the requester wanted a confirmation before closing the task).
    Now I have a checkbox for each task (generated dynamically with apex_item.checkbox(1,task_id)).
    Closing a task in my application means to set the end_date to sysdate.
    I followed the instructions from
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/check_box.htm#CEGEFFBD. I've created also a button and a process and updated the sql from "delete" to "update".
    The process is set: OnSubmit - After Computations and Validations; Run Process Once per page visit (default).
    The issue number 1 is that I see the confirmation message (that tasks have been closed) every time I reload the page (the same when I click Select_event button).. not only after I press on that Close_task button..
    For issue number 2, I have to mention that I've added a condition to show / hide the Close_task button, only if I have at least 1 task in the report.
    The issue number 2 is that I see the button only if I click 2 times on the Select_Event button.. The same is for hide.
    I feel like I am missing something very important about how to synchronize different events(buttons clicks), processes..
    help..?
    Thank you!
    Anca

    This forum is magic..
    As soon as write here, I find the answer!
    Issue 1: I fixed it by specifying this: When Button Pressed (Process After Submit When this Button is Pressed) and my button. I miseed this 1st time.
    Issue 2: I moved the button after the report.. and now it's working just fine!
    I did this about it for some time before asking the question here.. but I just had to write here and got the right answer ;)
    Have a nice day!
    Anca

  • Transaction Posting Confirmation Message and Action Listener behaviour

    Hi, I have a scenario that a user is Posting a Transaction and when he press the “Post” Button a, confirmation dialog box should popup asking “Do you really want to Post the record ?”. If the user press “Yes” the record is further process and If the user press “No” then the transaction should not proceed.
    I have implemented the main screen(PostTransaction.java) and the popup confirmation window(ConfirmationWindow.java)
    Question 1 ) Why the code is not stoping in the Post Button Action listener as in JOptionPane, then how do i know that the user has selected "Yes" or "No" ?
    Question 2) Do I have to write the code for posting of a Transaction(postTransaction() method) in the “ConfirmationWindow”? or it should be in “PostTransaction”.
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.application.Application;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.control.TextField;
    import javafx.scene.layout.GridPane;
    import javafx.stage.Stage;
    public class PostTransaction extends Application{
           public void start(final Stage stage) throws Exception {
                  Group root = new Group();
                  Scene scene = new Scene(root, 300,300);
                  stage.setScene(scene);
                  stage.setTitle("Transaction Post Screen");
                  GridPane gp = new GridPane();
                  Label lblName = new Label("Name");
                  Label lblAmount = new Label("Amount");
                  TextField txtName = new TextField();
                  TextField txtAmount = new TextField();
                  Button btnPost = new Button("Post Record");
                  gp.add(lblName, 1, 1);
                  gp.add(lblAmount, 1, 2);
                  gp.add(txtName, 2, 1);
                  gp.add(txtAmount, 2, 2);
                  gp.add(btnPost, 2, 3);
                  btnPost.setOnAction(new EventHandler<ActionEvent>() {
                        @Override
                        public void handle(ActionEvent arg0) {
                             //The code does not stop here as in JOptionPane, then how do i know that the user has selected "Yes" or "No" ??
                             boolean popupResult = ConfirmationWindow.confirmTranactionPosting(stage, "Please Confirm");
                             if(popupResult==true){
                                  //This line is printed before the user selects yes or no
                                  System.out.println("Proceeding with Tranaction Posting");
                                  //postTransaction();
                             if(popupResult==false){
                                  //This line is printed before the user selects yes or no
                                  System.out.println("Do not Proceed with Tranaction Posting");
                 root.getChildren().add(gp);
                stage.show();
                public static void main(String[] args) {
                  launch(args);
              private void postTransaction(){
                   //write the code for posting here
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.control.Label;
    import javafx.scene.layout.BorderPane;
    import javafx.scene.layout.HBox;
    import javafx.stage.Modality;
    import javafx.stage.Stage;
    import javafx.stage.StageStyle;
    public class ConfirmationWindow extends Stage {
         Stage owner;
         Stage stage;
         BorderPane root;
         static boolean postStatus = false;
      public ConfirmationWindow( Stage owner, String title){
        root = new BorderPane();
        stage = this;
        this.owner = owner;
        initModality( Modality.APPLICATION_MODAL );
        initOwner( owner );
        initStyle( StageStyle.UTILITY );
        setTitle( title );
        setContents();
      public void setContents(){
        Scene scene = new Scene(root,250,150);
        setScene(scene);
        Group groupInDialog = new Group();
        groupInDialog.getChildren().add( new Label("Do you really want to Post this record ?") );
        root.setCenter( groupInDialog );
        Button yes = new Button( "Yes" );
        yes.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent e) {
                   postStatus =true;
                   stage.close(); // Close the pop up. Transfer control to PostTransaction.java and execute the PostTransaction() method.
        Button no  = new Button( "No" );
        no.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent e) {
                   postStatus =false;
                   stage.close(); // Close the pop up only
        HBox buttonPane = new HBox();
        buttonPane.setSpacing(10);
        buttonPane.getChildren().addAll(yes,no);
        root.setBottom(buttonPane);
        stage.show();
      public static boolean confirmTranactionPosting(Stage owner, String title) {
           new ConfirmationWindow(owner, title);
           return postStatus;
    }

    The MII Message listener is a queue. But when I understand you correctly, you do not want to process the messages immediately after arriving in the Listener.
    Maybe the categorization of messages is an option for you (see [Sap Help: Processing Rule Editor - Category|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm]. You can enter a category for the control recipe messages. The messages will then be placed in the Listener queue. You can use the [Message Services|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] actions to read the categorized messages and process them as you need.
    In addition to Manoj, you may also use the [Queueing actions|http://help.sap.com/saphelp_mii121/helpdata/en/43/e80b59ad40719ae10000000a1553f6/frameset.htm] of MII, where you can queue xml contents.
    Hope this helps.
    Michael

  • Exporting to PDF - Selection Formula confirmation message

    Hi,
    We're using Crystal Reports 11 from within a Delphi 7 application which, on a timed schedule, loads data into a MS SQL server database and generates and prints or e-mails a report of the data loaded in PDF format. This process should be automatic and not require monitoring but we're now seeing the report generation being stalled by a confirmation message appearing when the report is generated. The message reads:
    Confirm
    Selection Formula for {Report Name} to Printer   // or To Export
    {Selection Formula Here}
    Continue?
    (RETRY=edit with Crystal, All=copy to clipboard)
    Buttons: Yes No Retry All
    Any help appreciated.
    Thanks,
    Garry

    I'm wondering if this could be easily fixed by going to the links panel and then use the "Copy Links To" and set up a new links folder for the job.
    That would copy all the links and then relink to that folder - right?
    Perhaps that's a quick way to get rid of this problem.
    It could be anything though - I've had weird, but not this problem, of files that are on a server can cause link problems.
    I don't know - it's a one of those have to sit down and look at the files to see what's going on situation - like Bob already said.

  • Add confirmation message

    Hi-
    I've created a simple form and after the user clicks the submit button, I would like to display a brief confirmation message (e.g., "Record submitted").
    I searched the discussion forums but didn't have any luck. I've attached the html and php code below. Thanks!
    ---HTML CODE--
    <body>
    <h3>Add a Record</h3>
    <form action="add_record.php" method="post" name="Add Record">
        <p>Title:
          <input name="book_title" type="text" value="" size="125" />
        </p>
        <p>Author: <input name="author" type="text" /></p>
        <p>Year: <input name="year" type="text" /></p>
        <p>Publisher: <input name="publisher" type="text" /></p>
        <p>Available as ebook?: <select name="ebook">
            <option value="Yes">Yes</option>
            <option value="No">No</option>
            </select></p>
        <p>Amazon Rank: <input name="amazon_rank" type="text" /></p>
      <p><input name="Submit" type="submit" value="Submit" /></p>
    </form>
    </body>
    --PHP CODE--
    <?php
    include("includes/connect_info.php");
    $connection = mysql_connect($hostname, $mysql_login, $mysql_password);
    $dbs = mysql_select_db($database, $connection);
    $book_title = mysql_real_escape_string($_POST["book_title"]);
    $author = mysql_real_escape_string($_POST["author"]);
    $year = mysql_real_escape_string($_POST["year"]);
    $publisher = mysql_real_escape_string($_POST["publisher"]);
    $ebook = mysql_real_escape_string($_POST["ebook"]);
    $amazon_rank = mysql_real_escape_string($_POST["amazon_rank"]);
    $insert=mysql_query("INSERT INTO mydatabase.mytable (book_title, author, year, publisher, ebook, amazon_rank) VALUES ('$book_title', '$author', '$year', '$publisher', '$ebook', '$amazon_rank')");
    mysql_close();
    ?>

    SuperSonic65 wrote:
    Where should I put the header function? I tried putting it right after
    <?php
    but it didn't work. Do I need to delete the exit; since there are functions that follow the header function? Thanks.
    -------PHP CODE BELOW----
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Update Record</title>
    </head>
    <body>
    <?php
    include("includes/connect_info.php");
    $connection= mysql_connect($hostname, $mysql_login , $mysql_password);
    $dbs = mysql_select_db($database, $connection);
    //Assign the data passed from website to a variable
    $book_id = mysql_real_escape_string($_POST["book_id"]);
    $year = mysql_real_escape_string($_POST["year"]);
    $insert=mysql_query("UPDATE mydatabase.mytable SET year='$year' WHERE book_id='$book_id';");
    mysql_close();
    ?>
    </body>
    </html>
    If that page is your PHP page, get rid of everything that comes before <?php and after ?>.  PHP pages do not need HTML in them.  In fact, if you run the header code on a page in that fashion you will typically generate the error saying that the header was already sent, because the HTML <head> was already processed so the PHP thinks its a duplicate. 

  • User confirmation message display

    Hi,
    When the user selects a menu item, I want to display a confirmation message and after the user confirms, I want to proceed forward else I want to close the application.
    Is it possible to display a message to user asking for his confirmation.
    Thanks in advance.
    Venu.

    I could able to achieve it by the display text itself. I am reading the response of the display text message and then according to the key press by the user I am proceeding. I am checking whether user has clicked USER_ABORT or BACKWARD_MOVE or TIME_OUT. Can you tell me whether this is supported by all the handsets??

  • Prob.. confirm message

    hey...
    its the updation query.In this page when i click the update button it updates the values in the row..and this query is working...
    I want to do that..when i click a update button it gives me a confirms message whether did u want to update the row and also displaying the particular gl_code no in that confirms message.when i click on yes it updates the row..otherwise it doesnot.
    after updation it shows message that this particular gl_code no is has been updated.
    <%
    String action = request.getParameter("action");
    if (action != null && action.equals("update")) {
    conn.setAutoCommit(false);
    PreparedStatement pstatement = conn.prepareStatement(
    "UPDATE gl_mast SET gl_descr = ?, db_amt = ?, " +
    "cr_amt = ?, gl_type = ? , gl_pct = ? WHERE gl_code=?");
    pstatement.setString(1, request.getParameter("gl_descr"));
    pstatement.setFloat(2,Float.parseFloat(request.getParameter("db_amt")));
    pstatement.setFloat(3,Float.parseFloat(request.getParameter("cr_amt")));
    pstatement.setString(4, request.getParameter("gl_type"));
    pstatement.setFloat(5,Float.parseFloat(request.getParameter("gl_pct")));
    pstatement.setInt(6,Integer.parseInt(request.getParameter("gl_code")));
    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    %>
    <%
    Statement statement = conn.createStatement();
    ResultSet rs = statement.executeQuery
    ("SELECT * FROM gl_mast ");
    %>
    <form action="gl_update.jsp" method="get">
    <input type="hidden" value="update" name="action">
    <tr>
    <td><input value="<%= rs.getInt("gl_code") %>" size="5" name="gl_code"></td>
    <td><input value="<%= rs.getString("gl_descr") %>" size="55" name="gl_descr"></td>
    <td><input value="<%= rs.getFloat("db_amt") %>" size="12" name="db_amt"></td>
    <td><input value="<%= rs.getFloat("cr_amt") %>" size="12" name="cr_amt"></td>
    <td><input value="<%= rs.getString("gl_type") %>" size="3" name="gl_type"></td>
    <td><input value="<%= rs.getFloat("gl_pct") %>"size="5" name="gl_pct"></td>
    <td><input type="submit" value="Update"></td>
    </tr>
    </form>

    int rowCount = pstatement.executeUpdate();
    conn.setAutoCommit(false);
    conn.setAutoCommit(true);
    Just a doubt... could you tell me why you are doing this?
    ***Annie***

  • TS3297 when I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please?

    When I press the iTunes button on my ipod touch I get the message 'cannot connect to iTunes store' .  My wifi is working fine, I can connect to safari & you tube, no parental setting in place, and time and date are correct. Can anyone help please? I have restored my ipod to factory settings and rest it.

    I also tried moving the date forward by a year and then moving it back to normal and it still doesn't work.  i can't find an automatic update of time zones on my itouch to turn this off.

  • Pop up message for confirmation in standard bsp on approve button

    Dear friends
               I am supposed to put one pop up confirmation message in 'hap_document' bsp application on approve button, this is MVC frame based application and used to show appraisal details. I have check with the event handlers, but is structured dynamically.  I have put a break point at various places. but from the portal when i m running the application it doesnt go into debugger..
    Please give me some ideas how to debug this application and how i will know the place where i need to do the coding for the pop-up confirmation message.. any help of yours will be greatly appreciated
    thanking you
    Regards
    Naeem

    Dear Naim Khan S Babi,
    Different controllers, views and BSP pages are availabe withing the application.
    You just keep the debug on the on the main methods like, DO_INIT, DO_REQUEST and DO_HANDLE_EVENT. So that you easily find where your application navigates.
    Hope this will be helpful.
    Regards,
    Gokul.N

  • Jdbc adapter error on confirmation message in message monitor (rwb)

    I have the scenario iDoc -> PI 7 - > jdbc (AS400 odbc driver).
    When I do INSERT statements, the data is stored in the Database and the RWB message monitoring shows status Successfull.
    However, for every insert, an other message shows up in the message monitoring with reversed Sender and Receiver (so it looks like a confirmation message is trying to find its way back to XI). This message first is is Status "Waiting", and after some time gets in Status "System Error".
    As I am not expecting any responses in my XI configuration (as I have no place to send them to), I want to stop these messages showing up in the Adapter Engine (as there will be many Error Status messages that are of no interest to me).
    How can I stop these messages, or what should I do in XI to process them (and dump them in my receiver determination). I have NO  BPM involved .

    Hi,
    For each open connection a entry is made j2ee stack.So when the it reaches to max and execption is thrown.
    In Jdbc adapter configuration -> advance mode -> Set -> Disconnect from the database after processing each message.
    Should solve the prob
    <b>Cheers,
    *RAJ*
    *REWARD POINTS IF FOUND USEFULL*</b>

  • Generate an error message that Adobe Reader 8 or later is required

    Afternoon all,
    I have created a form (in Acrobat 10 Pro) with a lot of scripts and we have determined that they do not all work as desired in Adobe Reader 7 and earlier.
    Is there a way to generate an error message if a user opens this form with Adobe 7 or earlier?
    We would like a message to pop up advising the user that Adobe 8 or later is required for this form.
    It does not have to lock them out or anything, we just want to advise them.
    Thanks much,
    Steve

    Thanks,
    This is how my bosses want this done. For one part, some of the functionality we are using just doesn't exist in Reader prior to version 8. For others, the users don't really have an option to go elsewhere.
    As for thescript, i am not sure how to apply it. Where do i access the initial page's open event?
    I do know how to enter document level scripts (this form has several) but what does "outside of a function definition" mean and how do i do that?
    Thanks everyone,
    steve

Maybe you are looking for

  • Errors when trying to set up testing server in CS3

    Hi, Ive tried to find the answer to this by googling, but cant sort it out. Ive been setting up php/apache/mysql in windows vista - dwcs3. Please bear in mind that I am very wet behind the ears with all this , at the moment. Ive been working out of D

  • Workflow for payment release doesn't block the FI Document by tnx MIRO

    Hi Gurus, we are implementing the Workflows for all the Payable Accounts, we don't have problem with txn FB60, the documents posted are automatically blocked but with txn MIRO it doesn't happen. In customizing I set the "RE" Class Document (Invoice V

  • Setting in / out points

    Hello all I have several PSD sequences of all the same 12 second duration, is there a way I can set my in and out points for them all at one time ? I want them all to have the same in and out point or, will I need to add them all individually ? I hav

  • Can FCPX "upconvert" & export DVD video at 960x540?

    My video needs are basic -- mostly editing short clips, but often they're imported from standard DVDs from the pre-HD era. But as an audio pro, I'm accustomed to very flexible and precise editing controls. Frustrated with iMovie, I'm considering purc

  • Developing and app

    Hi All, i'm not sure if this is the correct forum to ask this but any help or a point in the right direction would be great. Basically I want to know if an infinite runner game can be created in flash for IOS iPhones. If it can, can anyone point me i