Processing Page with cancel button.

Hi,
I have implement Processing Page but client wants to have cancel button to cancel the process.
Can anyone give suggestions how to implement this?
SC

My requirement is that i have a custom base page with submit button. When user clicks on submit button it would start long running process
And I should show a dialog page with clock saying process in progress message and a cancel button. User should be able to stop the process by clicking cancel button and back to base page. OAF gives the processing page that i want but without cancel button.
I try to add cancel button on the processing page programmatically but while it is processing and when i click on cancel button i cannot capture the event.
how to add cancel button on it and capture event? Is this correct approach?
Can any body could suggest the best approach and solution?
Thanks
SC

Similar Messages

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • How to redirect to home page on "Cancel" button click

    Hi,
    I have created a web part for office 365 developed using sandbox solution on Sharepoint foundation 2013.
    On "Cancel" button click i want to redirect user to another page(Home page) using C# only.
    i used some methods like 
    Context.Response.Redirect(SPContext.Current.Web.Url.ToString() + "/Home.aspx");
    but its not working. No methods which includes context or HttpContext is not working.
    Please, tell me how can i redirect user to site home page.

    Hi,
    you can try this
    var button
    = new Button();
    button.Attributes.Add("OnClick"
    , "javascript:{window.location='your
    page url';return
    false;}");
    this.Controls.Add(button);
    Hope it helps!
    Avni Bhatt

  • Error with "Open/Create/Replace File" function with cancel button

    I've attached a very simple VI that embodies what I want to do with my Open File function. I simply want to stop the rest of my program (theoretically encased in the Case Structure) from running if the user deigns not to specify a file location.
    However, if the Cancel button is clicked an error is produced before the rest of the program runs. If you ignore the error and continue, the "cancelled' variable is appropriately made true and the Case Structure runs properly. I simply want to remove the error message LabView gives me.
    Any ideas on why or how?
    Solved!
    Go to Solution.
    Attachments:
    Open file test.vi ‏34 KB

    The cancel button gives you error code 43 (if I remember correctly). After your file vi's, use the general error handler (GEH) to clear this error (and no other errors). Use
    [exception action]=Cancle Error on Match
    [exception code]=43
    type of dialog=no dialog
    Felix
    www.aescusoft.de
    My latest community nugget on producer/consumer design
    My current blog: A journey through uml

  • Problem with cancel button in UIX

    I have a ADF UIX page(J Dev 10g Ver 1012) in which I have used a submit button as a Cancel button in case the user does not want to submit the record. For the cancel button I have set the property "unvalidated=true" and redirected it to a rollback action. Problem is when I create a record and then click on the cancel button it gives an error "value is required" for all the fields which are mandatory (but does not give validation errors). If however I type something into the mandatory fields it works fine. Is there a way to use cancel without forcing the user to type something when he does not want to do so.

    Does that help?
    ADF UIX cancel/rollback button?
    Sascha

  • InputVerifer unable to exit with cancel button.

    Just playing with the verifier and notice that I am unable to "cancel" when I failed the validation. I understand that I can not conintue to next field, but if I failed but how come I can't cancel out of the form? I could exit if use the [x] on the upper right side. which uses the WindowAdapter.
    Any idea on how I can permit my cancel button to work under this situation also?
    Here is my sample code. The basic code I got it from http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/InputVerifier.html
    modified for my own test.
    package verifier;
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class VerifierTest extends JFrame {
        public VerifierTest() {
            JTextField tf1 = new JTextField ();
            getContentPane().add (tf1, BorderLayout.NORTH);
            tf1.setInputVerifier(new PassVerifier());
            JTextField tf2 = new JTextField ("next field");
            getContentPane().add (tf2, BorderLayout.CENTER);
              JButton buttonCancel = new JButton("cancel");
              buttonCancel.addActionListener(new CancelListener());
              getContentPane().add(buttonCancel,BorderLayout.SOUTH);     
            WindowListener l = new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                     System.out.println(" win closing");
                    dispose();
            addWindowListener(l);
        class PassVerifier extends InputVerifier {
            public boolean verify(JComponent input) {
                JTextField tf = (JTextField) input;
                  if(tf.getText().equals(""))
                    input.setInputVerifier(null);
                    JOptionPane.showMessageDialog(null,"Error, textfield empty");
                    input.setInputVerifier(this);
                    return false;
                  return true;
         protected class CancelListener implements ActionListener{
              public void actionPerformed(ActionEvent event) {
                   System.out.println(" cacnelListener Action");
                   dispose(); // Or System.exit(0) if you don't want to do
                   // something on close.
        public static void main(String[] args) {
            JFrame f = new VerifierTest();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    }

    thank you both. I should of use search forums with the key word. I was getting too much return with jtextfield inputverifier.
    oh well....

  • Progress bar with Cancel button

    Hi Gurus,
    How to implement the Progressing bar with Cancel btn using the ScriptUI?, is it possible in script UI ?
    Thanks in advance.
    Regards,
    Imagine

    what i said is that you need to hava a reference to your thread ine the class that handle the progressBar.
    and in your Thread class you create a method like setCanceled(boolean b)...
    public MyThread extends Thread{
       private boolean canceled = false;
       public void setCanceled(boolean b){
          canceled = b;
       public void run(){
          while(!canceled){
            //do your stuff

  • How to set window.status when returning to a page with back button/list?

    It is easy enough to set window.status to application-oriented information when loading a page: do it in a function which is the onload handler for the page's body element. But, when returning to this window from another window with the second window's back button, or selecting the first window from the second window's back list, window.status gets set to browser-oriented information, usually the string "Done". Is there any means by which I can set window.status to application-oriented information when returning to the window via another window's back button/list? What would be really great is if there is an event handler like this:
    window.onreturnviaback = onreturn_via_backhandler;
    Any ideas?

    How about:
    - (void)viewWillAppear:(BOOL)animated
    I use that a lot.

  • Error in Process execution with Radio Button List

    Hello All,
    In HCM Processes & Forms, we have a scenario of employee rating. To accomodate the same in the Interactive form have used 'ISR_RadioButtonList' that have corresponding binding with Form scenario fields.Upon selecting the corresponding radio button, we were able to retain the values and send it across the approval levels as defined in the workflow. These fields were to be used as place holders for the 'Radio Buttons' to retain the values(when sent from one approver to another as defined in the workflow) and not to save in the back end.
    The form was working fine all the time and since we have upgraded to SP20 the form is giving error as "The Entered Value Is Not on the List of Valid Values."
    Regards,
    Poornima

    Thanks for your answer.
    It's what I had done but I had saved the ID in a private member of the class and there is <b>two</b> different objects involved : one to render the component ("buildContent()" method) and one to manage the Event produced !
    Now, I put the ID in a static field.
    Regards.
    Mathieu

  • HTML Page With Icon Buttons

    Hi there,
    So I'm not too familiar with HTML pages but I think this
    might be advanced...at least for me. ;-) What I have is a html page
    that is set up with a table and inside the table is a background
    image. The table is aligned to center and that's pretty much set to
    go for the background. What I want to do now is add buttons onto
    this page but I can't figure out how to have the buttons stay in
    the same exact place of the background image when I change the size
    of my web page. I know how to do this in ImageReady by just slicing
    this thing left and right, but I wasn't sure if there's a way to do
    this in Dreamweaver to make this easy.
    This is what the page looks like as of right now:
    http://www.crawfordgroup.tv/4th/
    What I would like to do is not have the page load up in
    chunks since I had to slice everything in ImageReady. Any
    suggestions? I would really appreciate any advice. Thanks a lot!
    Brian

    Put the buttons into cells of the table. But (and this is a
    big one) - The
    table must be constructed using good table methods. This
    means it would
    have to be built so that if your content expands (i.e.,
    someone resizes
    their text in the browser), it doesn't expand those cells.
    You cannot,
    therefore, merge and split cells in this table containing the
    buttons.
    That means you have to understand HTML tables enough to be
    able to build
    that layout.
    A point I am subtly trying to make is that this alignment of
    foreground
    things with background things is usually not a good page
    layout approach.
    > I know how to do this in ImageReady by just slicing this
    > thing left and right,
    This is the way that most people enter the dreaded domain of
    "Table Hell".
    Do not use a graphics editor to write your HTML.
    Taking a Fireworks comp to a CSS-based layout in Dreamweaver
    http://www.adobe.com/devnet/fireworks/articles/web_standards_layouts_pt1.html
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "BriGuyHogie" <[email protected]> wrote in
    message
    news:[email protected]...
    > Hi there,
    >
    > So I'm not too familiar with HTML pages but I think this
    might be
    > advanced...at least for me. ;-) What I have is a html
    page that is set
    > up
    > with a table and inside the table is a background image.
    The table is
    > aligned
    > to center and that's pretty much set to go for the
    background. What I
    > want to
    > do now is add buttons onto this page but I can't figure
    out how to have
    > the
    > buttons stay in the same exact place of the background
    image when I change
    > the
    > size of my web page. I know how to do this in ImageReady
    by just slicing
    > this
    > thing left and right, but I wasn't sure if there's a way
    to do this in
    > Dreamweaver to make this easy.
    >
    > This is what the page looks like as of right now:
    >
    http://www.crawfordgroup.tv/4th/
    >
    > What I would like to do is not have the page load up in
    chunks since I had
    > to
    > slice everything in ImageReady. Any suggestions? I would
    really
    > appreciate
    > any advice. Thanks a lot!
    >
    > Brian
    >

  • Blank Page with button

    I need to create a blank page with a button. When the button is pressed a process is run.
    I created a blank page, can create a process, but does not allow creation of a button.
    Any ideas.
    Thanks

    Hi!
    I wonder if you have created a region on your blank page? Without a region you can't create a button. You may use a template for your region without title and border so your regions is invisible for the user.
    Hope that helps!
    Yours sincerely

  • [JS CS4] ScriptUI Cancel button inoperant during process

    Hi,
    I made a small interface for exporting PDF. I create two buttons, one for launching the export, one to stop it.
    The launch button calls the exportPDF() function. This function sets two the values of the progressbar.
    The problem is that once the export is launched, the cancel button is no more cliackable. I would like my users to have the opportunity to stop the export process.
    I saw this thread but can't succeed in applying it.
    http://forums.adobe.com/message/1909296#1909296
    TIA Loic
    The script is build like this :
    win = new Window(...)
    +button export
    +button cancel
    +progressbar
    button export onClick > exportPDF();
    function exportPDF()
           doc.export(...);
           progressbar.value=...;

    Hi steven and thanks a lot for input.
    I was starting feeling desperate to get a hint on that topic.
    I tried your lead but it didn't do it. (I can assume I misused it however)
    I create the window on clicking the green button. The cancel window appears fine but I am still unable to switch the button. It's frozen like any other interactrive elements.
    That's ok, I am giving up this cancel button issue. It would be nice to get it but that's ok.
    For the record :
    main win
    green button
    onClick > Make new Window with cancel button and own interactive function
                    exportPDF(...)
    I wasn't any longer as the canceling window appears but still without interactivity.
    Thanks a lot for trying to help me anyway.
    Loic

  • For "select-form" in the same page, add a cancel button in editing status

    Dear JHeadstart team
    For "select-form" in the same page, I still have a trouble.
    How can I customize the Tempalte File to make the editing page have cancel button to abandon the edit.
    If I want to learn the the JHS's Template costomizing (.vm file) and where can I find more reference documents about JHS's Template costomizing (excepting "Oracle JHeadstart 10g for ADF Developer's Guide").
    thanks!

    Can you be more precise on what you want:
    - should the cancel button be displayed when creating new row AND editing existing row?
    - when pressing the Cancel button, where do you want to go, to the select page?
    Steven Davelaar,
    JHeadstart Team.

  • How to make 'Cancel' button go back to page before

    Hello,
    In Oracle Sales module there a lot of pages e.g. Customer, Oppty and Lead Histories etc. Where button 'Cancel' is used. I need to create one on custom page.
    The custom page is called from update contact page and 'Cancel' button should return user back to 'update contact' page. I copied/pasted oracle code but then my 'Cancel' button returning me to Sales Dashboard page not update contact.
    My page's controller when 'Cancel' is clicked executes:
    processTargetURL(oapagecontext, null, null);
    Could you please tell me how can i get Cancel button work properly?
    thanks a lot

    Hi,
    I am not sure, but are you looking for passing information through destination URL. In the case of a 'button' (not Submitbutton), you can set the destination URL like "OA.jsp?OAFunc=<func_name>&Parameter1={@value}"
    Also if you use setForwardURL, then you can pass parameters in a Hashmap. See the syntax of Hashmap.
    public void setForwardURL(String url,
    String functionName,
    byte menuContextAction,
    String menuName,
    com.sun.java.util.collections.HashMap parameters, //note this
    boolean retainAM,
    String addBreadCrumb,
    byte messagingLevel)
    This way your requirement to send multiple parameters together can be addressed.
    Hope that helps.
    Thanks

  • Changing Navigation when cancel button is pressed

    Hello All,
    We are having custom responsibility for Offer and vacancy creation. New Menu of type(App Pref Menu Container) is created and the required functions and sub menus are attached to it. This was done earlier by someone else. Now when ever i start a transaction (i.e. create offer) and then cancel it, it goes to the custom home page of that responsibility. Now i want to change the navigation page when cancel button is pressed. I believe it was achieved through menu only. Can anyone suggest how?
    Thanks and regards,
    Pradeep

    If a user is halfway ....Look at it this way...Various wizard pages insert rows into various tables. Mark all of them (or some appropriate "master" record) with a "Pending" flag.
    Pressing Cancel is nothing special, just like closing your browser window, the Pending data would continue to hang around.
    You could set up background jobs that purge pending data older than N days or something if you like.
    What I was suggesting was that the "start wizard" button/process should first delete all these Pending rows before starting its real work.

Maybe you are looking for

  • HELPED NEED! AV Cable * Universal Dock

    I purchased the universal dock and av cable hoping to play my music from my ipod on my stero system. The cable has a line that fits into the steroeo nicely but then it has three lines; one is yellow, one red, and the last one is white. I put them all

  • Temporary internet files,cookies

    How do I clean those out?I got the 2.0 upgrade. Solved! Go to Solution.

  • HT201343 Macbook 2010 airplay mirroring

    I have a Macbook (white) mid 2010 running Mavericks OS. Does my device support Airplay? I've just purchased an Apple TV and I cannot find the airplay mirroring option in mi Macbook.

  • Report related qurey

    Hi experts, i have doveluped one report based on sales order details i have to extract producton order details. but the problem is i can get the output only so header and item details i cant get the production order details, i think i want to use con

  • What is the best practice to consume RMI Service

    hi , i have rmi solution client server i want to know which one is the best practice and more stable approach from one of the below. 1. initialize / consume the service once only maybe can do it in static block Example : static { //some object = Nami