[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

Similar Messages

  • 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

  • CANCEL button processing

    hi all,
           what is the code for cancel button meance without process of current screen leave to another transaction.
    thanx in advance.

    Define functional type = E for this 'CANCEL' button in gui status.
    In the PAI of the screen add MODULE EXIT_SCREEN at EXIT_COMMAND.
    Inside this module you should enter the following code:
    case sy-ucomm.
      when ''CANC'.
       If you want you can add a warning  here
         set screen 0. " This will take you back to the calling screen
         leave screen.
      when others.
    endcase.
    if you overwrote old values (from previous screen) in the current screen (that you are exiting) then make sure these changes are reverted. I am guessing this happends automatically, its been a while since I worked on screen ...
    Raj

  • Af:dialog model-restore / cancel-button processing best practice ?

    Using JDev 11.1.1.3; if I have an af:dialog running in an af:popup which contains auto-submit components (for cross-component enablement, validation etc.). My question is what are the preferred ways of discarding the model submitted changes made through popup processing if/when the af:dialog cancel button is pressed by user ? Figured that using a task flow for the content that is the popup could be an option, and using the task flow savepoint restore feature, but that looks more like database restore than model restore. I want to be able to restore the model content to the way it looked before the popup executed, without necessitating a submit to the database. How is this most commonly and best achieved ?
    Thanks,

    Taskflow savepoints are not database savepoints. Transactional BTF can be configured to issue automatic savepoints at TF entry and eventually to "rollback" to them at the TF exit. The internal implementation uses the ApplicationModule's passivation/activation mechanism to passivate the AM state at the TF entry and eventually to activate the AM state at the TF exit back to the passivated state at the entry. In this way it is simulated that you have not made any modifications in ADF BC, so your model layer will be restored to the state before TF entry. (Of course, you must not perform any DB commits durring the lifetime of this TF). I have used successfully this mechanism for the same goal you are asking about.
    Also there are savepoints managed by the ADF Controller, but I could be of little help here because I have never used them. I suspect that this mechanism could be what you need, so you may have a look here for more details:
    Adding Save Points to a Task Flow
    and in this thread:
    {thread:id=2128956}
    Dimitar

  • Stop a script process with a "Cancel" button

    Hi,
    I display a progress bar with a "Cancel" button while the  script is running. I can stop the script by pressing the "Esc" key but I  would like to stop the script process with the "Cancel" button. What  kind of command/event can I add to the button for doing this ?
    Thanks

    -> Update All your Firefox Plugins
    * https://www.mozilla.org/en-US/plugincheck/
    * '''When Downloading Plugins Update setup files, Remove Checkmark from Downloading other Optional Softwares with your Plugins (e.g. Toolbars, McAfee, Google Chrome, etc.)'''
    * Restart Firefox
    Check and tell if its working.

  • NO data change message during CANCEL button of ME52N

    Hi Gurus,
    When i do changes in ME52n then press save button i get error message. Then i press CANCEL button, instead of going to screen 0 it gives an information message ''No Data Change' which i dont want.
    Please give your suggestions.
    Regards,
    Milind

    has someone added an enhancement or exit coding?  Doesn't sound like standard SAP....sounds like error in someone's PF Status handling code.

  • Prevent second button press during long process

    How do I prevent a second (third, forth...) button presses during a repeat loop.
    on doLongProcess()
    --repeat loop
    end doLongProcess
    on clicked theObject
    if name of theObject is "btn_1" then
    -- I tried; set enabled of button named "btn_1 " to false, but got an error
    doLongProcess()
    end if
    end clicked

    WHY IS of window 1 SO IMPORTANT IN A [NON
    DOCUMENT] APPLICATION?!
    Non-document apps can still have multiple windows. And you could have buttons with the same name in more than one window so you need to let AS Studio know which button in which window.
    I generally give my windows an AppleScript name in Interface Builder and use the window name instead of the window number. It seems to make a little more sense to me.
    <pre>
    set enabled of button "Do It" of window "My Window" to false
    </pre>
    Steve

  • Drag drop and ProgressBar cancel button

    Hi,
    I have a class that extends CDragDropTargetFlavorHelper, during ProcessDragDropCommand I want to show a ProgressBar (the code that does this is actually in another, model only, plugin - might be significant), however, though the progress bar shows the cancel button doesn't.  Unless I delay the processing until after the drop is complete by scheduling the command - if I either process the command or schedule and process scheduled commands the cancel button doesn't show.
    Scheduling the command gives a bit of a delay to the user (even with highest priority) and also no ability to feedback 'drop failed'.  So I'd like to:
    - preferably get the cancel button to show without scheduling the command
    - know immediately when a drop has been completed and process scheduled commands.
    Thanks in advance
    Ian

    Thanks Ned,
    I have since been continuing to research this and it would seem that implementing the HitTest could be the way to go. If anyone has any experience or advice to support this I would be grateful.
    Regards
    Chris

  • Enhancement request: dependency check cancel button

    I like the cancel compile button in 9.0.3. It would be nice if you could also include cancel button for stopping during the dependency checking phase of a deploy.
    PS I know you can kill the admin phase from the process window it's the phase in between the end of compiling and the admin phase.

    I've filed enhancement 2579440 for tracking. Thank you for your feedback.

  • Delete From Table on Cancel Button.

    Hi,
    i am facing funny problem.
    i have created form with report page and i have implement send email option on Page so i am attach more document with email.if i attach document then it's going in DUMY_DOC_FILE table .
    i have create a process
    delete from DUMY_DOC_FILE .
    Process Point IS ON Submit -After Conmputation and Validation
    On Page No 6.if i press Cancel Button.This button is redirect on page No 4.My Code on Page no 6.
    page is redirect to 4 but doc don't delete from DUMY_DOC_FILE Table.
    How to delete Doc From Table If I press Cancel Button.
    Thanks
    Edited by: 805629 on Jan 13, 2011 5:25 AM
    Edited by: 805629 on Jan 13, 2011 11:49 PM
    Edited by: 805629 on Jan 14, 2011 12:43 AM

    <li>Change Cancel Button in page 6 so that it submits.
    <li>If u have conditions on that delete PLSQL process, make sure that it runs when CANCEL button is pressed also. If it is unconditional, let it be.
    <li>Add a branch for the Cancel button which redirect to page 4
    So effectivelly instead of *[CANCEL] -> [Redirect to page 4]* , it becomes *[CANCEL] -> [SUBMIT] -> [DELETE PROCESS] -> [Branch: redirect to page 4]*

  • Cancel button on form of type form on a table or view

    I am a newbie for apex. I am using 10g. I have created form on table emp(empno , name , salary ) . Form is of type Form on a Table or View.
    Cancel & Save(Apply changes) button are not working at all. so I copied process reset page and execute on condition save button click. But still cancel button is not working. applcation has some other forms of type Form with a Report and are working properly. I have wasted 2 days on this problem.

    Hi,
    You can do that. If you have the branch to in the same form what you have to do use clear cache for that page. Click on the edit page, click on the cancel button in the left button section. scroll down to bottom and type the page 32 in the Clear cache field. However it is better to have branch to the report page (different page from the form).
    Hope this will help.
    M Tajuddin
    http://tajuddin.whitepagesbd.com

  • How to disable the cancel button in the ProgressMonitor

    hi,
    I need to know, is there any way to disable/remove the (cancel)button in the ProgressMonitor?
    One more problem is,
    Once i click the cancel button, isCanceled() return true, how to make it false again so that the process continue....
    It is very urgently.....
    please help me out.
    Thanks in advance.
    Regards,
    Deepa Raghuraman

    I don't think that's a good solution, because Cancel button itself is not disabled, so user is tempted to click it and nothing happens.
    A better but dangerous solution is this:
    progressMonitor = new ProgressMonitor(ProgressMonitorDemo.this,
                                         "Running a Long Task",
                                         "", 0, 100);
    progressMonitor.setMillisToDecideToPopup(0);
    progressMonitor.setMillisToPopup(0);
    progressMonitor.setProgress(0);
    JDialog dialog = (JDialog)progressMonitor.getAccessibleContext().getAccessibleParent();
    JOptionPane pane = (JOptionPane)dialog.getContentPane().getComponent(0);
    pane.setOptions(new Object[]{});Refer to the same question here [http://stackoverflow.com/questions/512151/how-do-i-disable-the-cancel-button-when-using-javax-swing-progressmonitor] .

  • TextArea append information during process?

    I have a system that append information in one textarea, I would like that textarea shows the information being appended in the moment.
    To start the append, I click in a button. Then I click in the button, the information shows in the textarea when the process finished only and not during process.
    Below is one similar code with the problem.
    Thanks by help.
    import javax.swing.*;
    import java.awt.event.*;
    public class test extends JFrame implements ActionListener {
        public test() {
            cmdStartCapture.addActionListener(this);
            pnlGeral.setLayout(null);
            cmdStartCapture.setBounds(30,40, 200, 26);
            pnlGeral.add(cmdStartCapture); 
            scpDataCaptured.setBounds(50,200, 200, 300);
            scpDataCaptured.setViewportView(txaDataCaptured);
            pnlGeral.add(scpDataCaptured);
            pnlGeral.setBounds(0,0, 800, 700);
            pnlGeral.setLayout(null);
            getContentPane().add(pnlGeral);
            setBounds(10,10, 800, 700);
            setVisible(true);   
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitSystem();
           // IF I ENABLE THIS LINE TO THE PROCESS RUN WITH SYSTEM
          // INITIALIZATION, THE INFORMATION IS SHOW DURING PROCESS
           //cmdStartCapture.doClick();
        private void exitSystem() {
           setVisible(false);
            dispose();
            System.exit(0);
        public static void main(String[] args) {
            test system = new test();
        public void actionPerformed(ActionEvent event) {
            Object selobj = event.getSource();      
            if (selobj == cmdStartCapture) {
               // IF THE PROCESS RUN THROUGH BUTTON CLICK
              // THE TEXTAREA SHOW INFORMATION WHEN PROCESS
             //  FINISHED.
                cmdStartCapture() ;
        private void cmdStartCapture() {         
                int i = 0, cont=200000;           
                while (i<cont) {         
                    txaDataCaptured.append("\n test " + i );                 
                    i = i + 1;               
        private JPanel pnlGeral = new JPanel();
        private JButton cmdStartCapture = new JButton("Start");
        public static JTextArea txaDataCaptured = new JTextArea();
        private JScrollPane scpDataCaptured = new JScrollPane();
    }

    where is thread part ?
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    public class testThis extends JFrame implements ActionListener,Runnable {
        public testThis() {
            cmdStartCapture.addActionListener(this);
            pnlGeral.setLayout(null);
            cmdStartCapture.setBounds(30,40, 200, 26);
            pnlGeral.add(cmdStartCapture);
            scpDataCaptured.setBounds(50,200, 200, 300);
            scpDataCaptured.setViewportView(txaDataCaptured);
            pnlGeral.add(scpDataCaptured);
            pnlGeral.setBounds(0,0, 800, 700);
            pnlGeral.setLayout(null);
            getContentPane().add(pnlGeral);
            setBounds(10,10, 800, 700);
            setVisible(true);
            addWindowListener(new java.awt.event.WindowAdapter() {
                public void windowClosing(java.awt.event.WindowEvent evt) {
                    exitSystem();
           // IF I ENABLE THIS LINE TO THE PROCESS RUN WITH SYSTEM
          // INITIALIZATION, THE INFORMATION IS SHOW DURING PROCESS
           //cmdStartCapture.doClick();
        private void exitSystem() {
           setVisible(false);
            dispose();
            System.exit(0);
        public static void main(String[] args) {
            testThis system = new testThis();
        public void actionPerformed(ActionEvent event) {
            Object selobj = event.getSource();
            if (selobj == cmdStartCapture) {
               // IF THE PROCESS RUN THROUGH BUTTON CLICK
              // THE TEXTAREA SHOW INFORMATION WHEN PROCESS
             //  FINISHED.
        //        cmdStartCapture() ;
              new Thread(this).start();
        private void cmdStartCapture() {
    /*            int i = 0, cont=200000;
                while (i<cont) {
                    txaDataCaptured.append("\n test " + i );
                    i = i + 1;
        private JPanel pnlGeral = new JPanel();
        private JButton cmdStartCapture = new JButton("Start");
        public static JTextArea txaDataCaptured = new JTextArea();
        private JScrollPane scpDataCaptured = new JScrollPane();
            public void run()
                int i = 0, cont=200000;
                while (i<cont) {
                    txaDataCaptured.append("\n test " + i );
                    i = i + 1;
    Hope This helps

  • I was synching my iphone 4 and unplugged it. It's now stuck on a screen that has the chord and the music note that says itunes under it. I have tried to reboot and have even cancelled my last synching process. My phone is froze

    I was synching my iphone 4 and unplugged it. It's now stuck on a screen that has the chord and the music note that says itunes under it. I have tried to reboot and have even cancelled my last synching process. My phone is froze. I need help.

    You probably have to go through a restore of the phone.
    Plug the phone in and launch iTunes, then select your phone from the left side of the menu.
    There will be an option to restore the phone and click that button.
    That will erase and restore the phone.  After it's done, it will ask you to restore from a recent backup, and you can choose to go ahead and restore.
    You should be back up and running from there, but may have to do some minor tweeks to get yourself back up exactly as you left off.  Some things like your visual voicemail password and email passwords may have to be entered again, but you'll be in good shape.

  • Data inconsistency during processing of document

    Hello Team,.
    I am getting the above message while customization of the Cancellation Invoice.
    Data inconsistency during processing of document XXXXXXXXX
    I have defined the S1 Invoice type in the Billing document 'F2'. while cancelling the  Invoice getting an error, Data inconsistency during processing of document.
    Could you please help me in this & let me know the reason of error Message?
    Regards,
    Rahul More

    It could be due to various reasons.  Have a look at the following OSS notes:-
    Note 124422 - Number of canceltn. items difs. fr. billing doc.
    Note 189810 - VF11: Message VF056 after duplication cancellation
    Note 618973 - Message VF056 during cancellation of an invoice
    G. Lakshmipathi

Maybe you are looking for

  • Message Output - Dual Message Output - Phone SMS

    Hi All, Please help me and advice for this. Is there any way to configure Dual Message Output for a single Message Determination. Customer is asking to configure message output in Dual way. Through E-Mail and Phone Message. He is having some requirem

  • Running IMovie with Front Row

    Can IMovie, on a Macmini, be recording images and sound from a camera, such as a web cab, while at the say time Front Row? I record Karaoke performance for posting on the Internet. The songs with lyrics are shown on a screen.

  • Is there a app?

    Is there a app that I could use to coach my football team that I can plan the training session but also add a video demonstration for each activity/exercise. If you know what I mean.

  • Off Topic: Books about Regular Expression

    Hi Somebody can to indicate books about Regular Expression in Oracle ? Thanks

  • My shockwave flash 11.7 keeps crashing.

    My shockwave flash 11.7 keeps crashing. On the internet it says the fix is to go to version 10.3, but adobe blocks me from being able to download an earlier version, Can someone help me with this? Lisa