Could somebody see what is wrong that does not come to my eyes?

Hello,
I can't see what is wrong with this code:
I have eleminated excessive codes to make it easier to read... When this code is run I can see the first 3 dialog of app.alert but nothing after than... I can see p is not equal to nP... or at least I should have fallen one time into the do While loop? shouldn't I?  The red app.alert is not displayed why?
var inch = 72;
try
{   nP = this.numPages;
    var p = 0;
    var x = 0.5;
    app.alert ('p='+ p);
    app.alert ('nP='+ nP);
    app.alert ('this.numPages='+ nP);
    do
       switch (nP)
          case 1:
               {app.alert ('case 1 nP = '+ nP);
               Add2LastPage();
               p += 1;
               break;}
          case nP > 1:
               {app.alert ('case nP > 1 = '+ nP);
               switch (p)
                   case 0:
                        x += 0.3;
                        p += 1;
                        break;}
                   default:
                        x += 0.3;
                        x += 0.3;
                        x += 0.3;
                        p += 1;
                        break;}
    while (p != nP);
    Add2LastPage();
catch (e)
app.alert(e);

Why not use a for loop to go thorugh your pages?
You can use the switch within the for loop.
Some comments within your code will show others what you are trying to accomplish.

Similar Messages

  • TS1702 The keyboard layout is critically wrong, that does not allow quick writing. Users reach the numbers with two step keyboard hits (forward and back). It is really vital to have number 0-9 keys in the default keyboard window. Develop these changes ple

    I want to open a discussion about keyboard layout on iPAD´s, including the best one iPAD4. How one can design such sofisticated technical item for diverse work/activity, includes mainly for note writings and meetings, but the writing procedure is so slow becuase of the keyboard layout. It is really crucial to solve this problem in order to avoid developing additional keyboard from third-party developers. This function has to be integrated, namely: TO HAVE A COMPLETE SEETING OF LETTERS AND NUMBERS IN THE DEFAULT KEYBOARD LAYOUT, FOR EFFICIENT WRITINGS.
    WHAT YOU THINK ???

    This is an iPad user to user forum. Apple doesn't read or respond. You can make a suggestion.
    Send feedback to Apple.
    http://www.apple.com/feedback/ipad.html
    I bought a case with a bluetooth connected keyboard. Much easier to use than the on-screen keyboard if you do a lot of typing. You can use many/most computer wireless keyboards with the iPad.
     Cheers, Tom

  • Binding a JSF table to a list of data that does not come from a database

    Retrieving data from a database I can just use the jDev wizard to "Create EJB from table" and bind the EJB to a JSF table through a NamedQuery.
    However, in this instance I am retrieving a list of data from an existing API or a WebService.
    Does anyone have a good example of how best to do this?

    Hi There,
    I have make change as you suggested in your post.
    But I am getting error that "org.apache.jasper.el.JspPropertyNotFoundException - /presale.jspx(86,56) '#{saveData._nameList}' Property '_nameList' not found on type dbtransaction.SaveData"
    Where list is nameList which simply fetch data from Database and send it to the table
    Here is my jspx code.
    <tr:table var="row" value="#{saveData._nameList}">
                                  <tr:column>
                                       <f:facet name="header">
                                            <tr:outputText value="Name" />
                                       </f:facet>                              
                                  </tr:column>
                             </tr:table>
    I have just create one ArrayList object in Backing bean i.e. nameList and put getter setter functions for it.
    Please help me out for this issue.
    Thank You,
    Navnath

  • When I set up my mail I could send emails now a day later I can not send them but can still receive them ... I can't see what is wrong .. Any answers .

    When I set up my mail I could send emails now a day later I can not send them but can still receive them ... I can't see what is wrong .. Any answers .

    It's not a good idea to use a network disk for both Time Machine backups and other things.  By design Time Machine will eventually consume all the space on its output disk, which will then cause problem for your other files.  I'd store those other files on an external disk connected to the Time Capsule.  The problem with that is that Time Machine will only back up files that are local to your Mac.  That means that you'll only have one copy of the files on or attached to your Time Capsule.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • In my macbook pro sees in the screen very wide a vertical black bar and it does not let see what this underneath that bar

    in my macbook pro sees in the screen very wide a vertical black bar and it does not let see what this underneath that bar

    Take it in for service. Your screen probably needs to be replaced.

  • Back in the days of leopard, the dashboard widgets would come to the foreground but you could still see what you were working on.  Now I've updated to mountain lion and the work is no longer visible when I activate dashboard.  Can I change that back?

    back in the days of leopard, the dashboard widgets would come to the foreground but you could still see what you were working on.  Now I've updated to mountain lion and the work is no longer visible when I activate dashboard.  Can I change that back? 

    Go to system preferences, mission control, and unselect "Show Dashboard as a Space".  While you're there, you may want to make dashboard set to a hot corner "Hot Corners" button at the bottom.

  • I told my wireless network to forget two airport expresses so that I could rename them.  Now the network does not see them even when plugged in about 10 feet away from the airport extreme base station.  Does "forget" mean forever?  How to reset?

    I told my wireless network to forget two airport expresses 1 1st gen, 1 2nd gen so that I could rename them.  Now the network does not see them even when plugged in about 10 feet away from the airport extreme base station.  The network does recognize a totally new 2nd gen express.  Does "forget" mean forever?  How to reset?

    The network does recognize a totally new 2nd gen express.
    Then, it sounds like you have already reset the 2nd Gen Express, and now you need to set it up again, like you did the first time. Only, this time, assign the device name that you want to the AirPort Express.
    Do NOT use the name that Apple suggests.....which will be something goofy like........Sueswimsf's Red Apple AirPort Express
    Assign a simple name.....something like     2ndGenExpress

  • I NEED DESPERATE HELP! ADWARE THAT DOES NOT GO AWAY NO MATTER WHAT I TRY

    So I was downloading something to my computer and, of course, I got stuck with that Only Search thing and no matter what I try it DOES NOT GO AWAY. I tried turning off my extensions, I tried switching networks, I tried resetting safari. Deleting my history. Every. Single. Thing.
    And nothing works.
    Pleas please PLEASE someone help me with getting rid of this I HATE having an adware.

    There is no need to download anything to solve this problem.
    You may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not work anymore. Why not, and is there a way to do both with the most current version?

    With previous editions of iTunes for Windows, I could play a CD at the same time as it was being imported. That does not seem to work anymore. Why not, and is there a way to do both with the most current version? I am running a Surface Pro 2 with Windows 8.1 and the most recent vesion of iTunes, which, in all other respects, works well. I just can't listen to an album for the 1/2 to 1 hour that it takes to import it into my library.

    Two JVM's ? I thought that J2EE worked within a single JVM and run everything in containers. Can you see the two processes?

  • There is a website that does not download, but it is not the site since it downloads ok on my iphone and ipad.  Does anyone know what this might be?

    There is a specific website that does not download, but it is not the site since it can be viewed on my iphone and imac.  Does somebody know what to do?

    And what website would that be ?
    Might be good to provide the link, so that we can check it out.
    Stefan

  • ITunes randomly stops playing purchases that have previously viewed on the same hardware. It has an error message about HD. How can this issue be resolved?  What information is available besides the "learn more" option that does not deal with the problem?

    iTunes randomly stops playing purchases that have previously viewed on the same hardware. It has an error message about HD. How can this issue be resolved?  What information is available besides the "learn more" option that does not deal with the problem?
    Many people have the same problem. However, there is little or nothing readily available to users. This problem has existed for two or more years. Does anyone have anything to offer about this disturbing problem?

    Thanks for the suggestion kcell. I've tried both versions
    9.0.115 and 9.0.124 and both fail with the policy permission error.
    I also tried with and without your crossdomain.xml file but
    with the same result. It looks like this file is intended for URL
    policy, instead of socket policy. Recently Adobe separated the two.
    When I run with the files installed on my dev PC, it does
    work, which makes sense because the flash player isn't loaded from
    an unknown domain.
    I did get one step closer. If a crossdomain.xml in the server
    root exists and the socketpolicy file is loaded from the app folder
    then the first two warnings disappear. The logs now show:
    OK: Root-level SWF loaded:
    https://192.168.2.5/trunk/myapp.swf
    OK: Policy file accepted: https://192.168.2.5/crossdomain.xml
    OK: Policy file accepted:
    https://192.168.2.5/trunk/socketpolicy.xml
    Warning: Timeout on xmlsocket://192.168.2.5:843 (at 3
    seconds) while waiting for socket policy file. This should not
    cause any problems, but see
    http://www.adobe.com/go/strict_policy_files
    for an explanation.
    Warning: [strict] Ignoring policy file with incorrect syntax:
    xmlsocket://192.168.2.5:993
    Error: Request for resource at xmlsocket://192.168.2.5:993 by
    requestor from https://192.168.2.5/trunk/myapp.swf is denied due to
    lack of policy file permissions.
    Which basically says, everything is okay, but you stay out
    anyway.
    PS: I found the XML schema files here:
    http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security_02.html
    and the socket policy schema:
    http://www.adobe.com/xml/schemas/PolicyFileSocket.xsd.
    UPDATE: When serving up the policy file on port 843 using the
    example perl script then the socket connection seems to be accepted
    and the connect succeeds. After that flex hangs trying to logon to
    the IMAP server.

  • Install maverik on my MacBook Pro, I had no problem. Two days later I was shut down suddenly and reboot with a closed padlock and asking me for a password that does not match any of mine. What I can do?

    Install maverik on my MacBook Pro, I had no problem. Two days later I was shut down suddenly and reboot with a closed padlock and asking me for a password that does not match any of mine. What  can I do?

    Try booting to the Recovery drive, running Disk Utility and Repair disk and Repair Permissions.
    1. Reboot and immediately hold down command and R (two keys).
    2. When you see the screen shown on this page, select Disk Utility and continue.
    3. When DU is running, select the hard drove on the left, First Aid and Repair Disk.
    4. After Repair Disk, click Repair Permissions.
    Quit DU and restart.

  • The timekeeping system we use does not like HTML 5 so what is the latest version of Firefox that does not use HTML 5?

    We have been told by our timekeeping system provider that the latest versions of FireFox, Chrome and IE are not compatible with their websites at this time. I was told that it was because of the use of HTML 5 by the more recent versions of these web browsers. I need to download the most recent version of FireFox that does not use HTML 5. Can anyone tell me which version this would be?

    It isn't "Timesheet Next Generation", is it? We had a thread on that here: [https://support.mozilla.org/questions/961306 Websites using php and mysql stopped sorting drop down lists properly starting last week. Did something change?]
    Unfortunately, HTML5 is a large specification with a lot of parts that has been implemented in pieces over the course of several years. It would be really helpful if your vendor could indicate what EXACTLY is not compatible and then it could be researched. Otherwise, you'd have to use trial and error. Either way, you would end up with an older browser that isn't safe to run on the internet. It could be time to consider other vendors...

  • Is there a way I can use my teacher iPad to see what the children are doing on their iPad

    Our school is contemplating on using iPad's for education, but are concerned about some safety issues. As far as I'm aware I know iOS 7 allows a lot of native restrictions. However is there a way that I as a teacher can remotely see what a child is doing on their iPad and do this for multiple iPad's?
    Thank you in advance for your help

    Hi Haroon1234,
    Unfortunately no. The closest thing I've found is an app linked to the MDM where teachers can view what app is active on each of their classroom iPads (i.e. they can't see the screen itself, but can see that Edmodo is the active app on one device, Notability is the active app on another device, etc)
    ~Joe

  • Receiving emails about a newly set up itunes account that does not belong to me (although has my name). The address used in connection with it seems to be in California and the person likes Justin Bieber - what's going on here?

    Hi. I am receiving emails about a newly set up itunes account that does not belong to me (although has my name). The address used in connection with it seems to be in California and the person likes Justin Bieber (as I now have a receipt for that purchase). It states that it is billed to store credit. (a) I don't want to receive this person's information and (b) I certainly don't want to somehow be charged for it (although it appears, thus far, that I have not been). What's going on?

    i didn't read a lot of your 2nd paragraph, but it seems like the password is the issue, right?
    do a true clean install
    reboot your machine and hold down command+option+r, you should see a spinning globe - if you don't see the globe or anything that reads internet recovery, shut down and try again
    at menu, chose disk utility and once there, find your HD on the left side, select the physical name and erase it as mac journaled
    exit disk utlity
    at menu, choose install OSX
    this time, when it asks for a password just hit continue, it will let you complete without a password
    you should be able to get into your laptop, now figure out what password you'll be able to use with your kb issue

Maybe you are looking for

  • Mail Receiver Adapter - Error

    Hi All, I am creating a scenario in my test environment Http -- > XI ---> Mail. The http client sending messages to XI successfully. I want to send messages to my gmail account. For that in the receiver communication channel the following items are c

  • Date Function not working properly

    Dear Gurus, I have a plan app and the pertinent essbase cube, I need to retrieve the no. of days for the curr month/year combination. On version 11.1.1.3 I used something like : @TODATE("dd-mm-yyyy",@CONCATENATE("01-01-",@NAME(@ALIAS(@CURRMBR("year")

  • Key Fig Non Cumulative

    I have 0GIDATE as KF and want to know which option of Non Cumulative to choose between non *** value with non *** value change or noncum value with in-and out flow? I did go through the forum but could not get an appropriate one for a data kf. Basica

  • Currency conversion -company code

    Dear experts, Can any one explain how currency conversion will be done for company code. i.e. Euro conversion for European countries. Regards babu.

  • Re-installing Adobe Acrobat X Pro 10.0

    User has become new PC. Want to re-install Adobe Acrobat X Pro 10.0 but have omly the upgrade box with cd, not the fulle version 7, 8 or 9 anymore which I need.