App.doc works more - stuck, please help

I'm pretty new to javascript inside Acrobat development. I had a set of scripts to the level of records who created the buttons to work. With the help of Acrobuttons, I set them up using the model type:

var oButton =

{cName: "testButton",}

cExec: DoCmdTest,.

cEnable: "event.rc = (checkValid()) «,»»

cMarked: "event.rc = false"

cTooltext: "try again!"

NPO:-1

{cLabel: "Try again"};

where the checkValid() function was defined above, something like this:

checkMyValid = {app.trustedFunction (function ()}

If (app.doc == null) {}

Console.println ('it always it is null');

Returns false;

}

other check here to see if the button should be enabled.

in which case they return true;

otherwise:

Returns false;

});

It was everything works fine, until yesterday. Suddenly, app.doc is null to everytime. And if I use app.activeDocs [0], same result.

Yet when I use the console with an open document, the app.doc and the app.activeDocuments [0] return my document.

If anyone has experienced this?

Thank you

Jack

Alternatively, you can test to see if a document is opened with:

cEnable: ' event.rc = (event.target! = null); »

Tags: Acrobat

Similar Questions

  • HP - 15 af008ax: my new laptop usb port for the left side does not, only 1 work on 3 Please help me

    My new laptop usb port for the left side does not, only 1 work on 3 Please help me

    Hello:

    Have you installed the drivers for W7 32 bit amd chipset?

    If this isn't the case, you must install them and reboot the PC to get the 3 for usb ports work.

    You want the first file on the Web page.

    http://support.AMD.com/en-us/download/chipset?OS=Windows%207%20-%2032

  • I probed to "Always allow", "allow once" or "Block" for an incoming program. I accidentally click "block" and my program worked more! Please explain how I can allow the program to work again?

    I was probed to always select "allow", "allow once" or "Block" for an incoming program. I accidentally click "block" and my program worked more! Please explain how I can allow the program to work again?

    How can I reverse the error?
    Concerning
    JollyJ

    Without doubt blocked by any firewall you have installed, that being the review of the cases of your firewall settings that relate to this program

  • Reports of ventilation are grayed out despite being member of more Adobe, please help

    Reports of ventilation are grayed out despite being member of more Adobe, please help.  Don't know how to access or why they are greyed out both in the project and authorizing sections.

    Yes that's correct. If the project has been drafted by a story only (free) account holder and then shared with you, you will not be able to access the functions of production. You need create the project to access these features. Unlike those with which share you your project must have Story more to access these features of production. Are they only (free) story, then it's a no-go. Sorry Ryan, I assumed that you were the author.

  • I bought the lightroom 6 worked fine, now it used to open when I try to open the Dungeon of circle of color on spining and wont start, I work with mac, please help me, tried to shut down and restart, nothing works

    I bought the lightroom 6 worked fine, now it used to open when I try to open the Dungeon of circle of color on spining and wont start, I work with mac, please help me, tried to shut down and restart, nothing works?

    Try to hold the alt/option key while you restart Lightroom. Make sure that the right catalog file is selected and click on the "integrity test" box to see if there is a problem with the catalog file that might be repaired.

  • My iPhone 4S has had problems with Wi - Fi and now I can't enable Wi - Fi more. Please help me solve this problem!

    My iPhone 4S began no not detecting WiFi signals. I have fixed that by removing the SIM card, but after awhile it was not detected at all and kept scanning. I tried to type the details of a Wi - Fi connection in the other section, but it didn't work. He says 'Could not find wireless networks'... I restarted because after removal of SIM card, which fixed the problem and now I can not turn on Wi - Fi. I need a Wi - Fi connection so please help me!

    A certified technician have a look...

    But it seems to me: I have seem similar symptoms before - as the WiFi radio gave up the ghost.

    I bet if you went to "Setting"-> "Général"-> "About" you won't see any address for the WiFi radio.

    If so, the radio has launched the bucket and as far as I know, it is part of the motherboard - there is therefore no route to the resurrection really... It is live with it that way, or get a replacement phone. I'm sorry.

  • I have a top of prolapse applemacbook it gives me a massage that I can not open a session or t because I did not leave mail, but I am unable to do this Please helpme, I'm not very good with computers of generation more old please help

    I have an Apple Mac Pro I tried to dump my old emails and. Then tried to downupdates and he said couldn't do this because of my mail was stop this massage send out mail but unable to do so and can disconnect it please help an old lady with very little experience with this system please help there.

    Click on the Apple in the top left of your screen. Click on force to leave, starting on the box that opens, click on mail to select.

    Then click force quit.

    You can now disconnect / reboot.

  • Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving the Manager does not work, can you please help me. Thank you

    Hi, after all stages of extraction of data from oracle to oracle during the execution of command "start extract ext1" his error giving this handler does not run both source and target, can you please help me. Thank you

    Hello

    The setting should be as below, and not only the port number should be...

    PORT 7809

    Kind regards

    Veera

  • I need to paste without Photoshop, change the size of stuck, please help!

    Hi all

    I am learning to use photoshop and could really use it little assistance! I need to cut and paste an image from a photoshop doc to another. What I can do very well, but when I do, it resizes the picture I stuck and makes it smaller. Since I work with scans that need to keep their exact dimensions, it's not good.

    Can someone please tell me what I am woring?

    -In addition, the part of the doc that I am cutting is a little larger than 8.5 x 11 letter size doc that I am pasting.

    Thank you very much for your comments!

    Anna

    To avoid confusion, make sure that your documents are with the same level of zoom. The zoom level is always displayed on the title bar of your document, after the name of the file and also down to the left of the document window where you can type the same zoom for both documents. There will be no surprises when you copy won't paste between the two.

  • SA30 USB do not work after reinstallation, please help!

    Hi, my SA30 USB does not work after reintalling, I don't have the original CD with the phone because it was a gift from my friend... I couldn't find the driver from the website, please could someone help me?

    I could use the USB mouse, but when I plug the external hard drive, he has no answers, I tried to get some new material, it could not detect it. Any information would be welcome, see you soon.

    When install you an OS other than the OEM OS recovery, you need to install the drivers and tools in a right order!

    This command is on the Tools & Utilities CD in a html file! When you follow these order all material must be detected!

    Also you can go to http://eu.computers.toshiba-europe.com and download the drivers

    Hans Bye

  • cannot play an online game because my video card does not support shader model. generally work started recently please help

    usually, I play a game called League of legends online and last night I tried to get into a game and got an error message that reads. DirectX error check and make sure that your video card supports shader 2.0 model and uses drivers from the manufacturer. I've played a few games yesterday but it was all of a sudden when it stopped to let me play. Help, please. Thank you

    Hi Casey,.

     
     
    1. do you use Internet Explorer to play games online?
    2. If so, what is the version of Internet Explorer installed on your computer?
    3. have you made changes to your computer recently?
    4 are you facing this problem only with shader model 2.0?
     
    If you use Internet Explorer to play games online, I suggest you to follow the steps and check if it helps.
     
     
    Method 1: Follow the link and check if that helps.
    The problems of games online using Internet Explorer
     
     
    Method 2: You can also check out the link and check if it helps.
    Run the DirectX Diagnostic tool
     
     
    Method 3: Update cheque and card video if this can help.
  • commitKey = 2 works do not (please help!)

    Okay, so I have a combo box (SName) and I have a textbox (Sender_Name). That's what I have to do. I need the combo if something is selected other that the other $ Sender_Name = the SName value. Otherwise, if the other is selected in the drop-down list then the textbox becomes visible and the value is the default value. But this is where I'm having a problem. I need this value to change if the user types the text in (which I work) but when you enter the drop-down list (SName) offshore the commitKey for entry doesn't seem to work. Tab, clicking off works fine but to enter is not. Any help is greatly appreciated. Thank you.

    This part of Javascript was put in the section onBlur (run javascript) of my drop-down list field (SName):

    var Name = this.getField('Sender_Name');
    var SN = this.getField('SName');
    if (((event.commitKey = 1) && (SN.value == "Other")&&(Name.value != Name.defaultValue)) || ((event.commitKey = 2) && (SN.value == "Other")&&(Name.value != Name.defaultValue)) || ((event.commitKey = 3) && (SN.value == "Other")&&(Name.value != Name.defaultValue))){
    Name.value = "Please Enter a Sender Name";
    } 
    

    This part of Javascript was put in my javascript format for my drop-down list field (SName):

    var Name = this.getField('Sender_Name');
    var SN = this.getField('SName');
    if (SN.value=="Other") {     
    Name.display = display.visible;
        }
    else{
    Name.value = SN.value;
    Name.display = display.noView;
    }
    

    This offer of Javascript was put in the onFocus (run javascript) to my textbox (Sender_Name) section:

    if(event.target.value=="Please Enter a Sender Name"){
    event.target.value ="";
    }
    

    This part of Javascript was put in my format my textbox (Sender_Name) section:

    function sname(){
    if (!event.willCommit) {
    var value = AFMergeChange(event);
    if(!value) return;
    if(!AFExactMatch(/^[a-zA-Z \ ]{0,38}/, value)) event.rc = false;
    }
    }
    

    and of course the typo in my textbox (Sender_Name) appeal:

    sname();
    

    Got it works the way I need it to be.

    function checkSenderName() {}
    If (! event.willCommit) return;

    var name = this.getField ('Sender_Name');

    If (event.value == 'Other') {}
    Name.Value = "Please enter a sender name ';
    Name.Display = display.visible;
    Name.setFocus ();
    } else {}
    Name.Value = event.value;
    Name.Display = display.noView;
    }
    }

  • Can not get a 2nd blockquote working in CSS - please help

    HI - hope someone can help.  I have a blockquote put in place.  the css is as follows:

    BLOCKQUOTE,

    q,

    {quote

    Background: url #ece5d0 (.. / images/quote.png) no-repeat;

    do-family: "Times New Roman", Times, serif;

    do-size: 18px;

    make-style: italic;

    Width: 804px;

    margin: 5px 0;

    padding: 10px 10px 10px 47px;

    quotes: none;

    line-height: 25px;

    border-radius: 10px;

    box-shadow: 5px 5px 5px #bababa;

    }

    Here is a picture to see what it looks like:

    block1.jpg

    So I need to make a quote from block on the site, but in a more limited area because the foregoing will be cut.  So I thought that I could just copy the code and make a new and edit:

    #blockquote2, q, quote {}

    Background: url #ece5d0 (.. / images/quote.png) no-repeat;

    do-family: "Times New Roman", Times, serif;

    do-size: 18px;

    make-style: italic;

    Width: 620px;

    margin: 5px 0;

    padding: 10px 10px 10px 47px;

    quotes: none;

    line-height: 25px;

    border-radius: 10px;

    box-shadow: 5px 5px 5px #bababa;

    }

    First I tried 'blockquote2' without a DIV as "< blockquote2 > and it does not work so I then did a DIV as above and it still does not work."  Here is the result of it (no citation style as above):

    block2.jpg

    As you will see the width (620) is important to fit into the column.    Here is the code that I put on the page to try to create the citation:

    < div id = "blockquote2" > < br / > < p align = "left" > NOAA mission touches the lives of all Americans, and we are proud of our role in the protection of people and property and to preserve and protect natural resources. I hope that you will explore NOAA and how our products and services can enrich your own life. < /p >

    < p align = "right" > < strong > Dr. Kathryn Sullivan, Director of the NOAA < facilities > < /p > < / div >

    But in any case, someone can tell me why this isn't working and offer a fix?  Any help is appreciated.  Thank you.

    What I would do is, rather than to create an id for the second kind of blockquote, use a class that does not change the width and other attributes you want to change basic blockquote element...

    Somewhere after your css blockquote current...

    {BLOCKQUOTE. ClassName}

    : attribute value;

    : attribute value;

    }

    Then in the html code, you will always use a standard blockquote, with a class element...

    content

    You can use an ID too, but the id can be used only once on a given page, if a class is better if there could be multiple uses.

  • Essbase App does not start. Please help me

    When I am trying to access Essbase Application (version 9.3) via Excel Adin, then it's getting below error.
    "Failed to load application 'App_Name' error number [4294967295].

    After that, I checked my app Essbase in the Regional service console and it stopped mode and tried to start and new show also error below.

    "Error 1200442 load application: [Fri Oct 16 22:45 2011] Local/App_Name / / / Error (1200442).
    Java Virtual Machine error. "

    I checked the "JVM.dll" & "$$ DM_App ' files exist.

    Can someone please suggest the clear solution to solve this problem

    Thanks in advance
    NOMINATE

    Just try different options, stop all applications, kill no matter what process of esssvr which are still ongoing, if this does not work, see if restarting essbase allows, if it isn't the essbase Server

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Help, logo created in CS4 weird copy in CS6! really stuck, Please help!

    I'm sorry to re post this, but im trying to get a new help for my problem. I created a logo in CS4 years, I need to work on it in CS6.

    You can see the problem here:

    http://www.bellwoodbnb.CA/1.html

    When I open:

    http://www.bellwoodbnb.CA/1.AI

    It opens correctly in CS6,

    When I copy and paste into a new file Ai CS6, it sticks like a faded version as shown here:

    http://www.bellwoodbnb.CA/2.AI

    We checked to make sure that all the settings that I can find are identical, we replace the CS6 with legacy PANTONE Pantone and it did nothing. We know it opens, copy and Pasty correctly in CS4 and CS5. But when the copy/paste or placement in CS6 it vanishes for some reason any.

    Any help would be appreciated.

    Thank you in advance!

    There is a redirect on the site who took part "1.ai". But you can put it back in and get downloading. I posted too soon.

    The reason things are different...

    Pantone color versions

    When you Open the previous file, you open the file with their existing Pantone CMYK color builds. When you Paste the file, you paste and get the new LABORATORY of Pantone built in CS6.

    Illustrator CS6 Pantone + libraries contain no color CMYK versions. The LAB builds are not as vibrant that builds the CMYK. PANTONE says it's "better to represent colors on screen. Although I'm not a fan of that.

    You can read more here:

    http://helpx.Adobe.com/Illustrator/KB/PANTONE-plus.html

    If you work for printing, the differnce in on-screen representation is not really something that is assumed for the material. Once all Pantone Pantone 297U press 297U. I find quite disconcerting visual difference and always go back to the previous books of color Pantone.

    Look at one of the other thread... I don't know what more you expect learn. Monika gave you sound advice.

Maybe you are looking for