Create an Undo button

I just want the slide to go back one step and not a whole page. Is it possible to create a back button that only goes back one action at a time? My thinking was this might be performed by an undo action using javascript but cannot find a suitable script.
Can anyone help or is this asking the impossible?

Something like this is possible in Captivate but it requires that you capture the frame number at given points and record this frame number in custom user variables. 
There is a system variable called cpInfoCurrentFrame that contains the actual number of the movie frame at a given point at runtime. But since Captivate is event-driven, it means that you can only capture this frame number when some specific event occurs.   For example, you can capture the frame number at the beginning of a slide using the On Enter Slide event. You can similarly use the ON Success or On Last Attempt actions of an interactive object (e.g. button, click box, TEB, or widget) to capture frame number.  You need to set up Advanced Actions that are triggered by these events to assign the value at that moment of the cpInfoCurrentFrame system variable as the value of a user variable.
Once you have various frame numbers stored in different user variables (you can only store one value in each variable) then you can use these as a way of jumping back along the timeline.  Having one level of undo is not that difficult because it only involves one single user variable to jump back one step.  However having more than one level might be tricky. Just because you jump backward a number of frames, this will not automatically make everything in your project revert to a previous condition.  If you are currently using variables and Advanced Actions to create sophisticated user interactivity, then it could be much more complex to manage your UNDO condition properly.

Similar Messages

  • An undo button

    Yesterday, I was asking about the drag and drop module, but
    couldnt find any answers....so after thinking about what I could do
    , I figured that it might be possible to create an undo button...
    Basically, when I use the drag and drop component, I need to
    have the ability to undo a step, just incase the object is dragged
    to the wrong target...could anyone help me out with this? Any help
    is appreciated...thank you.

    If I wasnt clear enough in what i typed, please let me
    know...anyones help is appreciated...

  • Creating an "Undo" method

    Our prof. gave us a photo editing program skeleton, mostly GUI, written in java which we had to implement a couple of features. That was a couple of days ago. I've been toying around with it trying to add some other things.
    One of the things I wanted to add was an undo command, such that when you click the Undo button, the image reverts back to whatever it was previously.
    When a button is clicked this code executes:
    protected void applyCommand ()
                 Pixmap p = myCanvas.getPixmap();//PixmapCanvas myCanvas, holds the canvas
                 if(!(myCommand.getName().equals("Undo")))//my additions
                      myCanvas.store(p);
                      System.out.println("Creating Backup");
                 }//end of my additions
                 myCommand.execute(p);
                    myCanvas.refresh();
            }Here is the store method:
    public void store(Pixmap p)
             oneBack = new Pixmap(p);
        }Here is where I'm stuck, in the undo command, I'm not quite sure how to access oneBack in PixmapCanvas. I'm sure there are ways to do it but I'm trying to keep this as elegant as possible, I don't want to change the structure of all of the other commands.
    public void execute(Pixmap target)
              target = new Pixmap("I need to get oneBack" );
    }

    Ok well here's something else I tried and it still doesn't work. I'll try and be more descriptive of my code.
    Main:
    // create GUI components
            PixmapCanvas canvas = new PixmapCanvas(frame);
            ButtonPanel commands = new ButtonPanel(canvas);
            // more commands
            commands.add(new Undo(canvas));ButtonPanel:
    public class ButtonPanel extends JPanel
        private PixmapCanvas myView;
        public ButtonPanel (PixmapCanvas view)
            myView = view;
        public void add (Command c)
            add(new CommandButton(c, myView));
        class CommandButton extends JButton
            private PixmapCanvas myCanvas;
            private Command myCommand;
            public CommandButton (Command command, PixmapCanvas canvas)
                super(command.getName());
                myCanvas = canvas;
                myCommand = command;
                // perform command when button is clicked
                addActionListener(new ActionListener()
                        public void actionPerformed (ActionEvent e)
                            applyCommand();
            protected void applyCommand ()
                Pixmap p = myCanvas.getPixmap();
                if(!(myCommand.getName().equals("Undo")))
                     myCanvas.store(p);//So every command should store the current pixmap
                myCommand.execute(p);
                myCanvas.refresh();
    }PixmapCanvas (important parts of it):
    public class PixmapCanvas extends JPanel
        private Pixmap myPixmap;
        public Pixmap oneBack;
        public PixmapCanvas (JFrame container, String pixName)
            setBorder(BorderFactory.createLoweredBevelBorder());
            myContainer = container;
            myPixmap = new Pixmap(pixName);
            refresh();
        public void store(Pixmap p)
             oneBack = new Pixmap(p);
        public void refresh ()
            if (! myPixmap.getSize().equals(getSize()))
                setSize(myPixmap.getSize());
                myContainer.setTitle(myPixmap.getName());
                myContainer.pack();
            repaint();
        public void paintComponent (Graphics pen)
            super.paintComponent(pen);
            myPixmap.paint(pen);
    }Undo:
    public class Undo extends Command
         PixmapCanvas ref;
         public Undo(PixmapCanvas c)
              super("Undo");
              ref = c;
         public void execute(Pixmap target)
              target = new Pixmap(ref.oneBack);
    }Edited by: JFactor2004 on Sep 20, 2007 7:26 PM

  • How to create a rollover button effect in Captivate 7?

    Hi,
    I recently upgraded from Captivate 6 to Captivate 7 and am curious to know how I can create a rollover state for a SmartShape button. Basically, let's say I have a SmartShape being used as a button. What I want is to have the button have a glow effect and a shadow effect each time the mouse is hovered over it. Is there an easier way than having two objects on the slide -- one as the normal state and one the mouse hoever image. What I'm thinking is that the mouse hovered state image will have it's 'Visible in Output' set as unchecked and I can use an Advanced Action to show the object on mouse hover. Perhaps I can have the mouse hovered state image as a rollover SmartShape too?
    Nonetheless, this looks like too much work. If I have 10 clickables on the page for which I want rollover effects, I would need to have 10 additional objects with their rollover states -- just seems like too much, but perhaps that's the Captivate way. Or I am I missing the obvious?
    Any help would be appreciated.
    Thanks,
    Sean

    Most people would say the easiest way to achieve what you are talking about would be to just create your own custom image button in a graphics editor and give the Over state image having the glow effect that you want.
    If you decide to go that route, this tutorial describes the process of creating an image button:
    http://www.infosemantics.com.au/adobe-captivate/create-custom-image-buttons
    Another possibility is that you can use the Infosemantics Event Handler widget to trigger an Apply Effect action and use the Glow filter as the effect. 
    However, this may require some tweaking since it's not that easy to time effects that are applied via an advanced action.

  • Difference b/w create and createInsert button

    hi,
    what is the difference b/w create and createInsert button in ADF data control.

    first go through
    https://forums.oracle.com/forums/ann.jspa?annID=56
    next look
    http://jjzheng.blogspot.in/2010/04/create-or-createinsert.html
    ADF Faces & BC: Difference between Create and CreateInsert.

  • How to create user defined button in alv report

    how to create user defined button in alv report
    thnks in advance.

    Hi,
    U can define it the the PF-STATUS ( Menu for ALV ).
    For that u have to define it in the EVENTCAT.
    form z_eventcat  using    p_i_eventcat type slis_t_event.
      data: i_event type slis_alv_event.
      call function 'REUSE_ALV_EVENTS_GET'
        exporting
          i_list_type     = 0
        importing
          et_events       = p_i_eventcat
        exceptions
          list_type_wrong = 1
          others          = 2.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      clear i_event.
      read table p_i_eventcat with key name = slis_ev_top_of_page into
      i_event.
      if sy-subrc = 0.
        move 'TOP_OF_PAGE' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      read table p_i_eventcat with key name = slis_ev_pf_status_set into i_event.
      if sy-subrc = 0.
        move 'SET_PF_STATUS' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
      clear i_event.
      read table p_i_eventcat into i_event with key name = slis_ev_user_command .
      if sy-subrc = 0.
        move 'USER_COMMAND' to i_event-form.
        append i_event to p_i_eventcat.
      endif.
    And in the DISPLAY
    call function 'REUSE_ALV_GRID_DISPLAY'
       exporting
         i_callback_program                = v_progname
         i_callback_pf_status_set          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         i_grid_title                      = v_gridtitle
         i_save                            = 'A'
         is_layout                         = i_layout
         it_fieldcat                       = i_fieldcat[]
         it_sort                           = i_sortinfo
         it_events                         = i_eventcat
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
        tables
          t_outtab                          = it_final
       exceptions
         program_error                     = 1
         others                            = 2
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    *MENU SETTINGS.
    form set_pf_status using rt_extab type slis_t_extab.
      set pf-status 'ALV_MENU'.
    endform.                    "SET_PF_STATUS
    endform.                    " Z_EVENTCAT
    Now double click on ALV MENU nad u can create a button in the application bar.
    Regards,
    Pritha.

  • How Can I Create a Print Button on a PDF Using Acrobat Pro That Will Also Work on iOS?

    I created a Print Button on a PDF document using Adobe Acrobat Pro on my Mac.  The Print button works perfectly on different browsers on my Mac and on Windows (running under Parallels Desktop) as well.
    When I open the document on my iPad the Print button doesn't even appear.  I am guessing that this is a Flash issue but it may be more related to the fact the the action for the button is to access the Print menu item, which doesn't exist under iOS.
    Is there any way to create a Print button using Acrobat Pro that will work on a Mac and Windows but also on iOS?

    In order to initiate printing by clicking a button, the button has to have either an "execute menu item" type action or use the "print" JavaScript method. As you guessed, the former won't work since there are no menu items to execute, and the latter can only work if the particular PDF viewer you're using supports it. I'm not aware of any that do on iOS.
    The button doesn't appear because you're probably opening it in the default PDF viewer, which doesn't support forms at all. If you were to open the form in Adobe Reader, you'd see the button but it wouldn't work.

  • How To Create On Submit Button For Master_detail Page ?

    I have adf page that is master And detail view.
    i want to have one submit button for master and detail block

    Duplicate of  How To Create On Submit Button For Master_detail Page ?
    Please don'r post your question multiple times.
    Timo

  • To disable the horizontal scrollbar and to create a next button to navigate

    To disable the horizontal scrollbar and to create a next button to navigate through the records. At present I create a JSF page and drag and drop my table view and then using the Tuning property I have limited the number of records to be shown. But I need to add a button and then code it to display the next few records. Can someone kindly suggest a suitable mechanism to get this accomplished.
    Edited by: 888970 on Oct 2, 2011 10:15 PM

    Hi Erp,
    At present these are the entries that I have in my JSPX page.
    I have a Table, Iterator and a Input List of Values. As per the scenario, I want a few rows to appear on the table for which I wanted to disable the horizontal scroll bar and then once I click on the list of values it must prompt me with the remaining page numbers.
    Earlier there are about 150 records in the table. I want to show them as 15 per page.
    For which I have added the Iterator and a LOV component code in my JSPX page.
    <af:iterator id="i1"
    value="#{bindings.NsEventDetailsView1.collectionModel}"
    var="row"
    binding="#{pageFlowScope.testPageBean.myIterator}"/>
    <af:inputListOfValues label="Label 1"
    popupTitle="Search and Result Dialog" id="ilov1"/>
    Then I created the bean class as per the example.
    Below is the bean class:
    import javax.faces.event.ValueChangeEvent;
    import oracle.adf.view.rich.context.AdfFacesContext;
    import org.apache.myfaces.trinidad.component.UIXIterator;
    import org.apache.myfaces.trinidad.event.AttributeChangeEvent;
    public class TestPagebean {
    public TestPagebean() {
    public void i1ov1_valueChangeListener(ValueChangeEvent valueChangeEvent) {
    // Add event code here...
    private UIXIterator myiter;
    public void setI1(UIXIterator myiter) {
    this.myiter=myiter;
    public UIXIterator getmyiter() {
    this.myiter=myiter;
    public UIXIterator setmyiter() {
    return myiter;
    UIXIterator valueIterator = getmyiter();
    if (!valueChangeEvent.getNewValue().equals(valueChangeEvent.getOldValue())) {
    int newPage =
    Integer.parseInt(valueChangeEvent.getNewValue().toString());
    int pageStart = (newPage) * valueIterator.getRows();
    valueIterator.setFirst(pageStart);
    AdfFacesContext.getCurrentInstance().addPartialTarget(valueIterator);
    But i am getting errors in the bean class.
    1. Block expecting }
    2. public UIXIterator getmyiter() {
    this.myiter=myiter;
    Return Statement missing
    3. Block expecting {
    4. Type or variable 'valueChangeEvent' not found
    5. Method 'getNewValue' not found
    6. Method 'getOldValue' not found
    7. Method 'toString' not found
    Can you suggest a possible solution?

  • How to create a radio button on OA Page using Personalization

    I am trying to create a radio button on OA Page using Personalization. The item style , I can see is Message Radio Group.
    How to create Message Radio Button and bring them under one group.
    Thanks

    You should use jdev to define a radiogroup and radio buttons under that, wrap that definition inside a stackLayout in jdev, use personalization to add a stackLayout and extend the region which you had created earlier in jdev.

  • Is there a way to create an export button on a pdf form that will send form info into ongoing excel spreadsheet?

    I'm trying to see if there is a way to create a submit button on my pdf form that will export the form data into a saved (ongoing) excel spreadsheet. The end result i'm hoping for would be a spreadsheet that lists all the information i receive from each form.
    Any help would be greatly appreciated.
    Thank you,

    Not really. But you can combine the data from multiple forms into a single (new) spreadsheet via Tools - Forms - More Form Options - Merge Data Files into Spreadsheet...

  • How to create a "next" button out of image

    Hi all.
    I'm new to Dreamweaver and have no idea what I'm doing!  I'm a designer and not familiar with code.
    I've managed to get this far: I've created a teamplate and am using it successfully on subsequent pages.  My snag is that I want to create a "next" button out of an image.
    One forum poster suggested taking page_1.html and page_2.html and inserting a link between them. I get this, but in order to do so, it seems I have to detach my individual pages from the template in order to directly edit them.  Can I then somehow reattach them to the template so that I can continue to make other changes on one page that will update throughout?
    Any suggestions to a VERY green newbie that does not include copying and pasting code?  Is there a way to do this in design mode?
    thanks
    B.

    UPDATE:
    Nancy and Jon - and all future searchers with this question, I have found the answers!!!
    Here goes:
    MAKING A SIMPLE NEXT/PREVIOUS BUTTON OUT OF AN IMAGE IN DREAMWEAVER FOR THE CODE-RETARED DESIGNER:
    - Create a template which includes buttons for NEXT/PREVIOUS. The buttons should be sliced from a Photoshop file, or created using Div tags in Dreamweaver (see Tutvid.com for these tutorials - very good). The buttons should also be in their own separate Divs.
    - Select the individual Divs containing the buttons (one at a time), not the images themselves.
    - Go to Insert>Template Objects>Editable Region.
    - Give one Editable region the name of NEXT and the other editable region the name of PREVIOUS.
    - Save template file.
    - Go to page_1.html and now those buttons are selectable.  Choose the NEXT button and go to the properties panel and grab the little pick whip icon which is right beside the Link box. Drag and hold the pick whip onto your files panel and select page_2.html.  Do the same for each page.  From page_2.html onward, you also do this for the PREVIOUS button, only you select the page that comes before it, not the one after it.
    Viola!
    I really hope this helps out all you code-challenged designers like me!  I've searched everywhere and lo and behold, it was as simple as this.
    Thanks to you, Nancy, for twigging me into selecting the Div and not the graphic itself.
    BellyBuckle.

  • How can I create a submit button that only saves?

    Our end users will save the completed form and later upload it to anotherg place.  I created a save button that works fine, but without a Submit button there is nothing to trigger the reminder to go back and answer required questions.  I don't want to lose that part.  Thanks in advance for any help you can offfer!

    Would something like this work for you?
    var OKToSave = true;
    if (tfSomething.isNull) {
              tfSomething.border.edge.color.value = "255,0,0";
              OKToSave = false;
    else tfSomething.border.edge.color.value = "255,255,255";
    if (!OKToSave) app.alert("Please fill in all required fields");
    else app.execMenuItem("SaveAs");

  • How can I create a "Next" button with Insert database action

    Hello,
         I want to create a "Next" button that will redirect to another page and at the same time to do an INSERT database action. I've searched on google but I didn't find nothing specific that could help me.
    Below are some screenshots:
    http://imagizer.imageshack.us/v2/800x600q90/22/2yqj.jpg
    http://imagizer.imageshack.us/v2/800x600q90/585/wbn6.jpg
         Thanks.

    DO NOT USE THIS CODE !!!!
    Declare 
      -- Added by ramani 20-feb-2013 
       Seq_Val_ Number; 
    begin 
        if  :P17_NWM_DOC_NO  is null  then 
           Select Nvl(count(NWM_DOC_NO),0) + 1  -- THIS IS VERY VERY WRONG !!! REPLACE WITH A SEQUENCE !!!!!!!!!!!!!!
            into Seq_Val_ 
            from  DMS_NEW_MASTER; 
           -- ref number 
            return  Seq_Val_ ; 
            --summa oru elsif irukku 
           end if;  
    end; 

  • Create a new button in Financial Planning of the bucket

    Dear experts,
    We need to create a new button in the bucket financial information in order to when a user click on it, a report is executed, Does anyone know the steps needed to create the button and be showed in the bucket financial information?
    Thanks,
    Sara

    Hi Amit,
    Thank you ver much for your help. I tried this option and it works. The problem is this button is already configured at item level and we have no idea where is configured . We would like to retrieve it to copy in the bucket.
    It is not configured in the launchpad and it is not configured in the webdynpro, if it is not there where can be configured/developed?
    Is there any list of all buttons of the system?
    Thanks again for your help,
    Sara

Maybe you are looking for