Making a button visible upon closing a document

Kind of a weird question, but is there a way to make a button visible upon closing a document? Here's my situation. I want users to click a link which will open a PDF. I then want the users to take a quiz based off of the information in the PDF. Is there a way to have the users click the link to open the PDF, then a button to start a quiz becomes visible when the users close the PDF? I have a feeling it's probably not possible, but I figured I'd check. Thanks.

I was actually able to find a bit of a workaround. I created an advanced action to open the PDF and show the button (it was hidden to begin with) once I click the hyperlink. It's not exactly what I wanted to do, but I think it'll suffice until I figure out a way to show the button upon closing the PDF. I'll look into the java scripting, even though I'm not really a coder. Thanks!

Similar Messages

  • How do I activate "Save As" upon closing a document

    I've created several forms that I placed on a shared network drive & intranet for people to use.  After the user fills out the form, they can then print it using the print button on the form.  When they close out of the form, a box opens and asks them if they "want to save the changes before closing - yes, no, cancel".  If they select "yes", their changes save in the current form so when the next user opens the form, it's populated with the previous users information.  What I need to happen is when the user selects "yes" to save the form, a "save as" box opens so they have to save it in another place.  Can someone point me in the right direction?

    Hi,
    I think the best solution for this problem is to reset the form before saving the form and all you need to do is add a script line which is
    xfa.host.resetData("FORMNAME");

  • Problem making buttons visible

    Hi there, I have a poker game that all worked fine until I was told to restructure it in a MVC style. I never had this problem before I changed it but I'm having issues with making my buttons visible when it's the players turn. At first I setVisible to false which works fine, then I call my method to display them from my model and they display fine, so seemings as all is good to here I think it's the next bit that's causing my issue, I have actionListeners attached that when fired setsVisible on all the buttons to false again (which works) but the next time I call my method to make certain buttons visible they don't appear. I've tested that the method is being called with the correct parameter passed and it is. Now I must apologise because my knowledge of swing is very poor but I have searched and read alot and tried several approaches with no joy, I will definitly be studying up more on it in the future but time is against me at the mo. The only thing that seems to half work is if I use this.paint(g) the buttons display as I want them but my program crashes cos to be honest I don't know what g should be. Is this the right approach or is there a more simple way I can update my GUI to display my buttons?

    Works for me but you could try to add a revalidate(); repaint(); on the buttons parent.
    import java.awt.BorderLayout;
    import java.awt.EventQueue;
    import java.awt.event.ActionEvent;
    import javax.swing.AbstractAction;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    public class TestVisible {
        public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable() {
                public void run() {
                    final JButton button = new JButton("I do nothing");
                    final JFrame frame = new JFrame("Test");
                    frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                    frame.getContentPane().add(button);
                    frame.getContentPane().add(new JButton(new AbstractAction("Toggle") {
                        @Override
                        public void actionPerformed(ActionEvent e) {
                            button.setVisible(!button.isVisible());
    //                        frame.getRootPane().revalidate();
    //                        frame.getRootPane().repaint();
                    }), BorderLayout.PAGE_START);
                    frame.pack();
                    frame.setLocationRelativeTo(null);
                    frame.setVisible(true);
    }

  • I want make my button visible or invisible on click of button

    Hi All
    I want make my button visible or invisible on click of button.
    Regards
    Kirankumar M

    HI Kiran,
    Your Question:
    onclick button should be visible and on second click it should become invisible.
    Answer:
    In your View
    1.Add Two button using Apply Template--actionButton
      So two buttons will get added to the view
    2.Create an attribute in View Context say buttonset of type com.sap.ide.webdynpro.uielementdefinitions.Visibility
    Bind the visible property of second button to buttonset attribute
    This attribute is  to set visibility
    Also create a booloean attribute bool in the View context
    3.In DoInit method
    wdContext.currentContextElement().setBool(true);
    So that both buttons are visible in View initially
    4.In First button event handler onActionButton()
    call second button eventhandler onActionButton_0()
    public void onActionButton(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
        //@@begin onActionButton(ServerEvent)
           onActionButton_0(wdEvent);
        //@@end
    Here onActionButton_0() is like one method which is actually making second button visible or invisible based on boolean value bool=true /bool=false
    5. Write the following code in onActionButton_0() to perform the actual action
        if(wdContext.currentContextElement().getBool()==true){
                wdContext.currentContextElement().setButtonset(WDVisibility.NONE);
                wdContext.currentContextElement().setBool(false);
    else{
           wdContext.currentContextElement().setButtonset(WDVisibility.VISIBLE);
                      wdContext.currentContextElement().setBool(true);
    6.Now build and deploy ans run your application.
    It works..
    Nice Question..
    I was excited trying this...
    Hope it helps You
    Regards,
    Archana
    Edited by: Archana CTS on Mar 19, 2009 2:08 PM

  • Error upon closing or upload to Printer Cs6

    Hi All,
    I am getting an error upon closing my created business card.:
    "The font AlienEncounters could not be embedded in the PDF document because of licensing restrictions. Stroked text will not be visible."
    For one there is no Stroke to the text. Another is the fact even when saving out as a PDF high quality print PDF same thing.
    I am over at an online print shop and am getting the same error upon upload. IT will not accept the file....?
    Alien Encounters is the stock font that comes with Cs6 why am I getting this? I am not sure about saving as a PNG if I lose any rez?
    Thanks for direction on this
    SF

    Jacob,
    Thanks for stopping in... I am unclear on step 2
    Also when trying to select all my text boxes it is not doing to well. It could be my way of layout??
    I have two AI files within one document, the created logo in AI and then another AI file for a business card. The Alien Encounters Font does not have licensing bits as it states
    when closing the saved file. I assume that is the problem.
    Do you know if I will lose any res if (the artboard this file was created on)  is actual size of 2x3.5 biz card and if I save it out as a PNG with 350ppi that should stay good enough for print? When I send it over to the printers and than they upload it to a 2x3.5 card stock to print it on... I know keeping it vector art thru and thru is best but it looks like I may need this work around
    Thanks again
    SF

  • MBP (13-inch, early 2011) goes into hibernation instead of safe sleep upon closing the lid (only when using battery power)

    MBP details
    13-inch MacBook Pro, early 2011 (model identifier: MacBookPro8,1)
    Running Yosemite, OS X 10.10.1 (however, problem started while using Mavericks)
    2.5 GHz Intel Core i5
    4 GB memory
    Symptoms
    * the MBP goes into hibernation instead of sleep upon closing the lid on battery power (i.e.,  when AC adapter is NOT connected)
      -- problem does not occur when AC adapter is connected
    * putting the computer to sleep by other means does not induce the problem; these other means include:
      -- [i] option+command+Power,
      -- [ii] Apple Icon --> Sleep,
      -- [iii] in Terminal: pmset sleepnow
    * the battery is NOT getting drained at all; if I close the lid on 87%, the battery is still at about 87% when I get the MBP back up and running
    To be as clear as possible:
    (1) MBP is on and in use  (power source: battery); battery is at X%
    (2) the lid is then closed
    (3) the battery indicator light glows bright for about 10 seconds, then shuts off, and with it so does the MBP (all fans and sounds cease)
    (4) opening the lid and pressing any key on the keyboard does nothing (the computer is not sleeping)
    (5) to turn the MBP back on, I must hit the power button once; this brings up  and the gray screen and loading bar indicative of returning from hibernation
    (6) log in; battery is still at X%
    Attempted Solutions / Fixes
    There are Apple Discussions addressing similar MBP issues, many of which at least have work-arounds, if not full-blown solutions. However, I have tried many of the proposed work-arounds and solutions; nothing has solved my problem. Such attempted solutions include:
      * made sure EFI/SMC firmware was up to date
      * updated all software
      * logged in as a different user
      * booted in Safe Mode
      * reset the PRAM
      * repaired disk permissions using Disk Utility
      * repaired additional disk permissions in recovery mode (a la this chron.com advice)
      * ran the Apple Hardware Test multiple times (short test while plugged in, short test on battery, extended test while plugged in, extended test on battery)
      * booted from an external known-good OS on USB drive
      * reseated the RAM
      * used MemTest to test the RAM's health (it was good)
      * tested my battery's health with the app Battery Health (it is healthy!)
      * booted my computer with one stick of the MBP's original RAM at a time (figured "why not?")
      * booted my computer using other sticks of RAM
      * checked my power management settings using PMSET in the terminal (e.g., pmset -g); tried various hibernation modes (e.g., sudo pmset -a hibernationmode X, where X=0,1,3, etc)
      * searched/grepped through my power management logs and Console messages to look for googleable items (e.g., pmset -g log | grep WORD, where WORD=failure, sleep, etc);  still have not found help online
      * brought the MBP to a Mac Genius
    -- he ran some further tests, but found nothing;
    -- he re-installed my OS as a hopeful-hail-mary-just-maybe-last-ditch effort; the problem persisted!
    -- we both agreed that we had ruled out a software cause
    -- he offered me to leave my MBP to get fixed for a flat fee of $300.00 (which after a couple weeks of trying to figure this out is starting to sound more and more reasonable)
    Given that it is likely not a software issue, what hardware might it be? By booting from an OS on an external drive, I think I've ruled out a bad hard drive or hard drive cable. Also, given that inducing sleep in any way other than closing the MBP's lid does not cause the problem, it seems there might be a wire (or something) in the hinge section of the MBP that gets moved when the lid is closed possibly causing some kind of short circuit...or something.
    If someone with more experience interpreting Console messages, for example, can help, I'd be happy to provide some logs, or any additional information.
    Thank you for your time and consideration.

    Ok, this is a crazy-simple, quasi-embarrassing fix, but I'll post it anyway just in case anyone is having a similar problem (for example, this guy: Changes to pmset being ignored).
    Some time around late last August / early September (2014) this issue began happening for me (specifically, issue = closing lid while on battery power induces hibernation / shut down instead of sleep --- independent of hibernation mode). Maybe it was when I upgraded to Yosemite (not sure what the exact date of that was). As detailed in my original post, I frantically tried everything I could think of... At that time, however, I had quite a few presentations and posters to create and present at meetings and conferences, so I held off fixing it for a couple of months and returned to it this past week, where I tried a few more things listed above, but again to no avail...
    This morning, I simply tried fudging around with all my power management settings again (via pmset in Terminal). The simplicity of the fix surprised me. But now that I understand it, I know it is likely the same fix for other threads I've read, such as the one above:
                                        (TLDR in bold)
    (1) Take note of your power management settings (Terminal:  pmset -g custom)
    (2) Is the "standby" flag set to 0? If so, set it to 1. Wa-la! Done.
    This fix is crazy and embarrassing b/c I was so close to it for so long. I tried changing my hibernation modes multiple times (sudo pmset -a hibernatemode X, where X=0,1,3,25,etc). I read about manipulating other PMSET settings that helped other people with newer MBPs, like "autopoweroff" and "autopoweroffdelay" --- settings that I do not have on the MBP early 2011 (check your settings: pmset -g cap). And most amazingly of all, I even messed with the "standbydelay" setting, trying to make it so long that my computer should never go into hibernation... Yet, from what I can tell by looking over my notes, I never simply set "standby" from 0 to 1.
    There are interesting questions that arise due to this fix. For example, why did this problem persist on clean installs of OS Yosemite? Is "standby" being set to 0 the Yosemite default? I'm not sure. If it is, then Kappy was right: this was normal behavior... It just wasn't always the normal behavior...at least not for my MBP. Normal behavior (hibernatemode 3) used to be (and now is again) that the MBP goes into safe sleep, and then only after an allotted amount of time will it go into full-blown hibernation.
    NOTE: the "standby" and "standbydelay" PMSET settings are not available in some earlier MBP models (e.g., my brother has a 2010 and does not have these settings); so if you're having a similar problem with an earlier model, this fix might not be of any help to you.

  • AE CC 2014 Error upon closing project "...layer named '10' is missing or does not exist...

    Upon closing (or quitting) an After Effects CC 2014 project I'd been working on for several days I'm presented with the following error message dialog boxes 39 times:
    In this comp I've masked the same piece of video into 38 triangles to create a transition effect.  I named those layers "1" to "39" for organization.  There are another 39 layers (the flip side of those triangles that come into view when I rotate the main triangles), and the masks of those layers are pick-whipped to the corresponding primary 39 layers.
    Despite this error message, nothing is visibly wrong in the project.  The video that's the source of those layers is NOT missing.  I can see it.  It's a 1920x1080 Apple Pro Res 422 Quicktime, sitting in the same folder as a bunch of other clips.  If it WAS missing wouldn't I see the color bars placeholder?  t tried reimporting the clip and option-dragging it back into those layers, but I get the same message.
    Upon opening the project I get this message, 39 times:
    Again, the software is apparently confused, thinking that something is missing when it's not.
    So is this very complex project corrupted now?  That would be a drag.  At least it still seems to work, I just have to hit "OK" on these dialogs 78 times to open and close the project.  I was expecting more for $50/month.
    Thanks.
    Shawn Marshall
    Marshall Arts Motion Graphics

    We found what the culprits were, but I don't know why they'd cause these error messages.
    To recap, I have a piece of HD video that I've duplicated 39 times with a different triangular mask on each layer to re-create the whole frame (moving the anchor points of each layer as needed).  The idea is that I then rotate those layers in 3D somewhat randomly, revealing a different video clip on the back side.  To create the "B-side" video for the back sides I duplicated the original 39 faceted layers and parented each to its corresponding "A-side" piece.   I created some opacity expressions to make the A-sides disappear halfway through their rotation with the B-sides appearing at the same point.
    My plan was to vary the mask shapes on the A-sides to create variations on the transitions, so I enabled an expression on the masks and pick-whipped the mask shapes on the B-sides to their A-side counterparts.  That seems to be the problem.  Here's the expression (applied to layer 26B):
    thisComp.layer("26").mask("Mask 1").maskPath
    I repeated this for all 39 B-side layers.  Then I duplicated that comp and inserted new video into the transition.  At some point some part of the software decided some layers were missing or something, creating the above error messages.  The comps still worked as designed; it was just error messages that I had to repeatedly dismiss.  Once I deleted all of these mask expressions the error messages stopped.
    Before deleting those expressions we tried renaming the layers (1-39) so they were unique within each comp (Train1, Rail1, etc) but that didn't work.
    Feels like a bug.
    Shawn Marshall
    Marshall Arts Motion Graphics

  • I opened up my photoshop (circa 2004) and got a message that it has expired (or somthing to that efffect). This CS2. It have the hardcopy. Upon closing it and reopening it I got a message that there was "serious error" and I needed to reinstall. Upon rein

    I opened up my photoshop (circa 2004) and got a message that it has expired (or somthing to that efffect). This is CS2. I have the hardcopy. Upon closing it and reopening it I got a message that there was "serious error" and I needed to reinstall. Upon reinstalling with my hard copy I got the same error message. Any thoughts? Are all former versions of the creative suite disabled to promote use of "the cloud version"?

    This Adobe document should help to explain the situation for CS2:
    Error: Activation Server Unavailable | CS2, Acrobat 7, Audition 3

  • [svn:osmf:] 14521: ChromeLibrary: moving live and recording buttons to the left hand side of the control bar , and making the button backdrops a little bigger.

    Revision: 14521
    Revision: 14521
    Author:   [email protected]
    Date:     2010-03-02 12:47:27 -0800 (Tue, 02 Mar 2010)
    Log Message:
    ChromeLibrary: moving live and recording buttons to the left hand side of the control bar, and making the button backdrops a little bigger.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/assets/control bar.ai
        osmf/trunk/libs/ChromeLibrary/assets/images/eject_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/fullScreenEnter_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/fullScreenLeave_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/pause_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/play_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityManual_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityManual_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_up.png
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/ControlBar.as

    Revision: 14521
    Revision: 14521
    Author:   [email protected]
    Date:     2010-03-02 12:47:27 -0800 (Tue, 02 Mar 2010)
    Log Message:
    ChromeLibrary: moving live and recording buttons to the left hand side of the control bar, and making the button backdrops a little bigger.
    Modified Paths:
        osmf/trunk/libs/ChromeLibrary/assets/control bar.ai
        osmf/trunk/libs/ChromeLibrary/assets/images/eject_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/fullScreenEnter_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/fullScreenLeave_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/live_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/minus_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/pause_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/play_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/plus_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityAuto_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityManual_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/qualityManual_up.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_disabled.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_down.png
        osmf/trunk/libs/ChromeLibrary/assets/images/record_up.png
        osmf/trunk/libs/ChromeLibrary/src/org/osmf/chrome/controlbar/ControlBar.as

  • After closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    after closing large documents (drawings) the window closes but the process runs still in the background. I open the next document, the same procedure and after dowing this several times the RAM is full the system becoms very slow. what can i do???

    You can always shut it down manually via the Task Manager
    (CtrlShiftEsc)...
    On Mon, Sep 1, 2014 at 3:05 PM, frank koethen <[email protected]>

  • How do I get the export value of a combox upon opening a document?

    I can't find a way to access the currently selected export value from a combobox upon opening a PDF document (without a keystroke event), so I'm using a very ugly trick (I have a function with a switch statement that returns a value that matches the export value, based on the current combo face value.
    Isn't there a way to retrieve the export value of a combo box upon opening a document?
    Thanks!
    Fred

    The following code segment is for the change event of a comboBox.
    Whenever a selection is made I want to populate a Form Field with the face value of the comboBox.
    This isn't working - and I can't determine why -
    it appears that I am not dereferencing the text properly - but this is my best effort based on my knowledge.
    Can anyone help with this ?
    Thanks
    var 
    combo1 = topmostSubform.Page1.DropDownList1.Text;
    var Deflt = 1;
    switch
    (combo1){
    case 
    "Education":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Demographics":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Licenses":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Certifications":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    case 
    "Business Information":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break; 
    case
    "Disclosure Questions":
    CurrentValue1.rawValue
    = topmostSubform.Page1.DropDownList1.Text;
    break 
    default:
    Deflt = 0;}

  • I just upgraded to Firefox 8 from 3.6 and now my websites don't stay logged in upon closing, how can I change that?

    The window popped up about clearing settings or whatever upon closing the browser and I said yes and don't ask again without realizing what I was doing. I completely uninstalled Firefox since then but it hasn't fixed.

    The window popped up about clearing settings or whatever upon closing the browser and I said yes and don't ask again without realizing what I was doing. I completely uninstalled Firefox since then but it hasn't fixed.

  • How to reverse the closing period document.

    Hi
    The entry can be reverse Only in current period
    You are trying the reverse the entrie in close period which is not possible .. how to reverse the closing period document.
    Thank you

    Use t code FB02. Enter required parameters and press enter. From the menu slect Extras - Document header. This will take you to next screen. In this screen from the menu select GoTo Document Header. Change the reversal date and save.
    Then reverse the document using normal process. The document will get reversed on the new date entered.
    Hope this helps. If useful, please reward points.
    Regards
    Rakesh Pawaskar

  • Making a button rollover change a movie clip's frame

    Hi again everyone,
    I knew how to do this in AS2 but now I am having problems
    with making a button on the stage goto a frame in a movie clip on
    the stage.
    I've attached a sample of my code below, hopefully you'll see
    the error and be able to point it out to me?
    I have a movie clip on the stage that has different
    information in different frames. I want to make it so that when
    someone rolls over the button, the movie clip fades in and goes to
    the correct frame to display the information.
    With this setup the way it is below, I keep getting "Warning:
    3590: void used where a Boolean value was expected. The expression
    will be type coerced to Boolean.
    I know where the problem is happening, "function
    XXX(event:MouseEvent):void {navigateToURL(XXXweb)}"
    How can I write this differently and eliminate this problem?
    Thanks,
    Jeremiah

    I'll give that a shot, thanks!
    A follow up question to that one, is there a way to make it
    so that I can have one rolled over function applied to several
    buttons / frames in the movie clip? This movie clip has 50+ frames
    in it and if I could reduce my coding, it would make life a lot
    easier.
    Thanks,
    Jeremiah

  • Button visible

    Hello,
    How can i make a button visible if a shared variable is true and not visible if that same varable is false...?? is this possible??

    Romain_H wrote:
    I would like to do the same but the problem is i have to run the vi each time.
    If you want to switch visibility with a FP control while the VI is in edit mode, you can make an xcontrol consisting of a button and a switch for its visibility.
    Typically, you should design your VI such that it always runs during use. It can be in a wait state when it's not supposed to do anything.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for