For Loop Function is not doing what I am intending to do

In the following example, I am two loops. One upper loop and one inner loop. I have a counter named COPY NUMBER within upper loop. This counter is increasing everytime upper loop and inner loop executes. If the upper loop executes 2 times and inner loop executes 10 times. The counter value has to be 2. But in reality, I am getting the value 20.
-------------------------------------------CODE START-------------------------------------------
<?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,/ R5542565/Phase_1___Build_Work_File_S1/Detail_Line_1_Section_S2_Group/On_Payment_Terms_S3/Pages,1)?>
<?xdoxslt:set_variable($_XDOCTX, ‘copy_number’, xdoxslt:get_variable($_XDOCTX, ‘copy_number’) + 1)?>
OUTERLOOP START
COPY NUMBER: <?xdoxslt:get_variable($_XDOCTX,'copy_number')?>
<?for-each@section:/R5542565/Phase_1___Build_Work_File_S1/Detail_Line_1_Section_S2_Group/On_Payment_Terms_S3?>
INNER LOOP START
Title: <?Dynamic_Report_Heading_ID299?>
Invoice Number: <?Invoice_Number_ID27?>
<?if: xdoxslt:get_variable($_XDOCTX,'copy_number')=1?>ORIGINAL<?end if?>
<?if: xdoxslt:get_variable($_XDOCTX,'copy_number')=2?>DUPLICATE<?end if?>
INNER LOOP FINISH
<?end for-each?>
OUTERLOOP FINISH
<?end for-each?>
-------------------------------------------CODE END-------------------------------------------

First of all, are you aware that Spry is a dead technology and the code you're wrestling with is over 7 years old and will not work with mobile touchscreen devices (essential in today's web world)?
Even though it's included in older versions of Dreamweaver, Adobe formally abandoned Spry last year
http://blogs.adobe.com/dreamweaver/2012/08/update-on-adobe-spry-framework-availability.htm l'
Point being, few people will advise you to continue along this Spry path.
You're better off investing your energy in a modern up-to-date menu system.
Free ones try
http://forums.adobe.com/message/5070444
If funds will allow then try
http://www.projectseven.com/products/menusystems/pmm3/index.htm

Similar Messages

  • Best Buy Appliance Delivery Not Doing What They Said They Would Do. Order Cancelled.

    I recently purchased a refrigerator from bestbuy.com and chose the option to have it delivered on Tuesday the second of December (today). I received an order confirmation e-mail from best buy on the day of purchase (November 28) which stated the following (taken directly from the e-mail):
    The scheduled appointment date of your item(s) below is Tuesday, December 2, 2014
    We'll call you by 9PM the night before your appointment with an estimated arrival time window at the phone number(s) you provided at the time of purchase (with either live or pre-recorded calls).
    Thank you for shopping with us.
    Sincerely,
    Karalyn Sartor
    Vice President Customer Care
    Yesterday, on Monday the 1st of December, I got a knock on the door from the Best Buy delivery team. They had my refrigerator and were here to deliver it. I was not ready for them to deliver the refrigerator at that time, at all, as I was not expecting it. I asked the driver to please deliver it on the scheduled date. The change in scheduling happened without a postive notification.
    I checked afterward and saw that their was en e-mail sent during the evening of November 30 informing me that the refrigerator would be delivered on Monday the 1st. This e-mail was in my spam folder and I did not see it. I did not expect it either as I was under the impression that I would be called by phone prior to delivery (as stated in the original purchase confirmation e-mail). So some mistake/change in scheduling happened. Not a big deal to me.
    Thirty minutes ago I called the 1-888 number mentioned in the e-mail to inquire about what time I could expect my refrigerator to be delivered. I was told it was rescheduled for December 20th, which is not acceptable to me.
    I was told the earliest delivery date that they could honor would be for monday the 8th of December. That is unacceptable to me as well. I was advised I had no other options for delivery other than to receive it on the 8th of December, 6 days after the aggreed upon delivery date.
    In the end I cancelled the order. As a customer I do not like to be treated this way (to be told one thing at first (delivery date and that I would be called by phone), to have that one thing change, and to not be told in a *reasonable* manner that the one thing had changed.
    Best Buy customer service, If you would like to contact me you have my e-mail address. You also have my correct phone number for calling me, which your system verified when it looked up my order by phone. Until then, please consider me an unsatisfied customer that will look very closely at other buying options for all my future appliance and home electronics needs.
    Thank You.
    P.S. - The person I spoke to on the phone to inquire about and cancel my order was very courteous and professional.

    To Whom It May Concern,
    I posted earlier regarding a refrigerator delivery problem. http://forums.bestbuy.com/t5/Delivery-Installation/Best-Buy-Appliance-Delivery-Not-Doing-What-They-S...
    I've since read a few of the other posts and think I see some common issues that many others have been having:
    1. Not calling the customer. We (customers) expect someone will call us the day before a scheduled delivery date to confirm the item is being delivered and approximately what time to expect it. The confirmation e-mail you send even states that this will happen.
    2. Not notifying the customer regarding changes. We (customers) expect someone will notify us if delivery dates are changed. This is especially important if the delivery date has been moved forward, as in my case. My particular problem would have been avoided entirely if someone from Best Buy would have notified me that the refrigerator I ordered would arrive one day ahead of schedule. An e-mail is not a good enough notification when you move the shipping date forward. How do you even know I have read/received it and will be home?
    3. Not working with the customer. I've read a few forum posts where some mistake has happened, and now shipping is delayed by a signifcant amount of time (a week or more). If you (Best Buy) had some better way of working with whoever does your delivery for you, things would be better.
    In my example the original delivery date was for today (Dec 2nd). You decided to deliver a day early on the 1st without making sure I knew you were coming on a differnet day than scheduled. So I wasn't ready. At this point I believe you (Best Buy) should have tried to correct this by rescheduling the delivery so that it happened on the original delivery date, December 2nd. You could have also arranged to deliver it later that same day, I would have been ok with that and had time to make things ready. Instead the delivery got rescheduled for the 20th of December by the system, and your customer service could only move it up to December 8. In a situation like this I think it would be better if you worked more with the customer (pay a driver an hour or two of overtime to get the goods delivered on the day you said you would or delay someone else who placed their order after I placed mine). Instead I was given one and only option, delivery on December 8.
    In the end I took the other option, cancelling my order. You have lost my business on this sale and I now have a lower opinion of Best Buy as a company and a brand than I did before. This could have been avoided if you did any of the above three things.
    Thank you for your time.

  • Extract Pages- and the Split- not doing what I expect them to

    I have a document created in Illustrator (CS4) which has multiple artboards. I want it split into multiple documents, one art board—> one document with only that artwork. When I use the Extract PAges… and the Split… comands to generate multiple documents, I get the multiple docs (same number of docs created as pages in original doc).
    Only thing is every doc has all the artboards and all the artwork as the original doc. I could understand all the artwork being there but all the artboards also?? What's going on?
    Appreciate any pointers on this.
    Trying to write a JSX to run in AI but struggling so far. Thread for AI solution started here: AS) export single page PDFs from multi-artboards

    I don't expect mind reading but I'l settle for careful reading
    I tried to explain how pages and artboards are qualitatively different objects only to be told they are the same thing and that's all I needed to say.
    I tried to explain that opening the very same file in Illustrator showed a lot more objects than it did in Acrobat. You probably don't remember because you breezed over something that you didn't think you needed to know because you were, at each stage, a step ahead of me (slow down already!).
    From my second post:
    I can't remember if Splitting gave enumerate files or the one file but either way ALL the artwork was in the enumerate files if they got made [.…] I ended up saving as CS3 .ai files which gives a Save artboards to seperate files option and, unlike the artboard range option on Save As PDF, it actually works.
    From my third post
    An artboard is not a page as far as Acrobat and Illustrator apps are concerned. I was trying to highlight the distinctly different way the two apps handle them. I can watch a one page with just one shape document in Acrobat become a 20 artboard, 40+ objects layout in Illustrator. Same document interpreted as one Page in Acrobat and 23 artboards in AI.
    I was on this forum because even a manual Document Menu> Split… command is not doing what I expected with the AI generated 23pp PDF file. I expected the 23 individual 'artboards' and content to each make a separate file.
    Thom Parker wrote:
    I don't remember you mentioning that you re-imported the PDF files into Illustrator.  This is an important detail. You also posted to an Acrobat scripting forum and never said you were not interested in an Acrobat Script.  You also never explained the problem you were seeing.  You were never clear.
    Covered that but note Illustrator doesn't import PDF files. .ai .eps and .pdf are all native files for Illustrator and just open, sometimes with an additional dialogue to choose a page from multiple pages. It imports .dwg, .svg and that sort of thing relying on translator plugins. This is the fourth time I'm saying I should have posted in Acrobat Win or Mac not scripting, apologies I was scripting when I made OP and probably frustrated. You were more clear it's true, clearly ignoring what I was getting at in each post re artboard cf. page objects.
    You see, in a PDF file each page has it's own content stream, i.e., a stream of vector graphics operators.  Graphics can be drawn anywhere in the coordinate space, but the page view is clipped by a crop rectangle.  So graphics can exist in the stream, but never be visible to the user because they are outside the crop.  I get the impression that in Illustrator the Artboards all exist in a single coordinate space? And that the conversion to PDF places this entire coordinate space into a single content stream. Then each page would be a different crop of the same content stream.  If this is the case then I believe there are PDF optimization operations in Acrobat that would fix your problem by removing all content outside the crop. 
    Yeah I've hacked lots of PDF files in AI. They use more than one clipping rect per page from memory. Correct, the artboards are defined in a single co-ord space it would seem — artboards are discretely and independently located on the document canvas and can even overlap each other. Yes those operations might work, I never though of that, I came across an Illustrator based solution early on in this thread. There's no conversion going on in Acrobat though I think, the file stays native PDF from AI to Acrobat and back to AI. As I've noted it's the way Acrobat displays or parses the data that in effect hides all the 'off-page' objects but open the same file in AI and it's all still there. 
    You know, we can't read minds, you actually have to explain what it is you need.
    I didn't know it, but I needed to get a confirmation on the artboardRange property bug in Illustrator CS4 and/or a confirmation that artboards are not treated as page objects, and I ended up having to lecture you on something you may have no interest in, sorry if I've been a pain. This is part of bigger bug elsewhere that I've been trying to get resolved or around on and off for a month. Every turn another bug, it gets confusing and frustrating at times

  • The i tunes store is for a short time not available, what is going on. Iam waiting for my downloads

    The i tunes store is now for 3 days for a short time not available what can i do?

    Hi, Arimor1.
    I hate being the bearer of bad news but a quick search on Google indicates that the UK iTunes Store is not doing business with the self-governing Bailiwicks that comprise the Channel Islands.
    For what it's worth, one fellow says he's discovered a workaround .

  • Hi, I need help my computer is not starting up at all, nothing happening when I press the button on/off. The battery charger is working as using it for another laptop. Not sure what to do. Anyone have any idea? many thanks

    Hi, I need help my computer is not starting up at all, nothing happening when I press the button on/off. The battery charger is working as using it for another laptop. Not sure what to do. Anyone have any idea? many thanks

    You could try a SMC reset:
    http://support.apple.com/kb/HT3964
    If no change, do what Allan advises.
    Caio.

  • I downloaded the IOS7 and I recently started seeing that every tim I revived a message everyone would be able to see it, I tired looking for the I'm not sure what to call it in messages, where no one can read my messages unless I open my phone. Any help?

    I downloaded the IOS7 and I recently started seeing that every tim I revived a message everyone would be able to see it, I tired looking for the I'm not sure what to call it in messages, where no one can read my messages unless I open my phone. Any help? I really don't want anyone ready what I get from other people, its emrassing, when I get a text from someone and it's personal, and someone could go look at my phone while its charging and read the message. Please help!!!! How do I disable it, If I can.

    Hello KenyaJohn,
    You may benefit from disabling Show on Lock Screen for Messages and Mail in Settings -> Notification Center -> Mail/Messages.
    You can disable Show on Lock Screen for a particular app in Settings > Notification Center > <app name>.
    iOS: Understanding notifications
    http://support.apple.com/kb/HT3576
    Cheers,
    Allen

  • I have tried this many times.  Our iPOD is not doing what it is suppose to.  When we go under GAMES put everything in it comes up You are not conected to the internet.  Online functionality is not available.  Please someone help us.

    We can not get this thing working.  Done everything through the computer, got confirmation of everything and a sheet for payment on iTUNES for games.  When we go under the icon for games when were put Apple ID and the password it come's up,"YOU ARE NOT CONNECTED TO THE INTERNET.  ONLINE FUNCTIONALITY IS NOT AVAILABLE."  We have been trying for over a week to get this thing going.  Can someone please please help us.

    Forgive what may be a dumb question on my part, but have you confirmed that the iPod is indeed able to successully connect to the Internet by going to a web page in Safari or some such procedure?

  • Passing a variable's associated number between "for" loops & functions?

    Hi,
    I seem to be having a problem understanding how variable information can be passed between functions and arrays.
    I have variable "grab" set up as a Number.
    var grab:Number;
    My intent (I'll do my best to explain) is to have a number "attached" to grab when it is first mentioned in this function, itemClick.
    These should be all the relevant arrays:
    clickItemArray = [scene_Camp.wood, scene_Ax.ax]
    itemUsableArray = [wood2, ax2]
    sceneGuyArray = [scene_Camp.guy_Camp, scene_Ax.guy_Ax]
    function itemClick(event:MouseEvent) {
                    for (grab = 0; grab<clickItemArray.length; grab++) {
                            if(clickItemArray[grab].hitTestPoint(mouseX, mouseY, true)) {
                                    addEventListener(Event.ENTER_FRAME, itemRemoval);
                                    sceneGuyArray[grab].gotoAndPlay("guy_Notice");
                                    trace("guy_Notice");
    I would like to have the number established with grab (it would either be a 0 or 1, as clickItemArray,  sceneGuyArray, and itemUsableArray) be able to be passed into the next relevant function, itemRemoval. I was hoping to use variables so I could use the same function for whatever item was clicked upon. For example, if the clickItemArray item was 1 (the ax), then sceneGuyArray[grab] would = 1, and the right frame would play. That number 1 would be transferred to function itemRemoval, where it would constantly be listening for sceneGuyArray[1] also (where "1" would have been established through the initial "grab" in the first function), and react accordingly.
    function itemRemoval(event:Event) {
                    for (var grab2:uint = grab; grab2<sceneGuyArray.length; grab2++) {
                        if (sceneGuyArray[grab2].currentLabel == "guy_NoticeDone") {
                            //removeEventListener(Event.ENTER_FRAME, itemRemoval);
                            trace("cheese");
    I can't get the trace working, though. I'm sure I'm doing something wrong with "for" loops or the if statement.
    Naturally, help would be appreciated.

    I do have an unrelated question, if you happen to see this...
    Is there a way to "nest" for loops? (maybe there's a better term)
    For example, this is part of a function I have
    } else if (canClickBoo == false) {
                            //for the click array
                            for (var u:uint=0; u<clickToXArray.length; u++) {
                                //disable the mouse
                                clickToXArray[u].mouseEnabled = false;
                                clickToXArray[u].buttonMode = false;
                            for (var l:uint=0; l<clickFromXArray.length; l++) {
                                clickFromXArray[l].mouseEnabled = false;
                                clickFromXArray[l].buttonMode = false;
                            for (var o:uint=0; o<clickItemArray.length; o++) {
                                //enable items to be clicked
                                clickItemArray[o].mouseEnabled = false;
                                clickItemArray[o].buttonMode = false;
    Obviously each "for" loop does the same thing, set the items of each array "false" (make them unclickable if "canClickBoo" is false). In case each array has a different length, though, I can't just use a single "for" loop (afaik).
    I'm wondering if, based on what you see (naturally I can post more), I can simplify the code.

  • FN Key not doing what its suppose to

    Hi I just got a a GE62 apache and I am very happy with it ,apart from my FN key it does do not do what it is supposed to do it does other thing for an exsample if I press the FN +arrow left (volume) it changes size of the window I am in , again if I want to dim the keyboard lights I press the FN + Numpad + it opens the magnifier whats up???

    SORTED,
    i Did a bios update after the EC update and its all good now.

  • For loop in validation not working

    Hi,
    I am trying to put validation on a tabularform, such that column1 is not greaterthan column2 value.
    begin
    apex_application.debug('start check');
    for i in 1..3 loop
    apex_application.debug('i='||i);
    if apex_application.g_f05(i) < apex_application.g_f06(i)
    then
    return true;
    else
    return false;
    end if;
    end loop;
    end;could not figure out why the loop is not workinng. it is taking only 1st value i.e here "i" takes only value "1" then it checks the condition and later exists, doesnot check for the next row.
    any Idea..,!!!
    Help Me.
    Thanks,
    Little Foot

    Little Foot wrote:
    Hi,
    I am trying to put validation on a tabularform, such that column1 is not greaterthan column2 value.
    \begin
    apex_application.debug('start check');
    for i in 1..3 loop
    apex_application.debug('i='||i);
    if apex_application.g_f05(i) < apex_application.g_f06(i)
    then
    return true;
    else
    return false;
    end if;
    end loop;
    end;could not figure out why the loop is not workinng. it is taking only 1st value i.e here "i" takes only value "1" then it checks the condition and later exists, doesnot check for the next row.
    any Idea..,!!!
    Help Me.One way or another the code returns a value on the first iteration, which obviously always exits the loop at that point.
    (And it's \...\, not \...\)

  • For loop array index not from 0

    HI!
    I have an array that is wired into a For Loop. Inside the For Loop there is already a single Array content available as there is this autoindexing feature (?). I do want to change the Array from a certain position different from 0 onwards to the end e.g. change positions 4, 5 and 6 in a for loop executing 3 times. But the for loop and the autoindexing feature start at 0. Can I change this in an elegant way. At the moment I'm running thru the hole array and begin changing at a certain position.

    Yes, disable autoindexing on the tunnel and use "index array" inside the loop. Use [n]+4 as index and wire a "3" to the loop count in your particular example.
    If you want to keep the entire array and just replace a few elements with updated values, the array needs to be fed in via a shift register. Write the new elements at the desired position using "replace array subset" (see attached very simple example).
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ReplaceSomeArrayElements.gif ‏3 KB

  • New ipod not doing what the old one did

    I just received my new 6 Gen nano replacement in the recall. I think it's great of Apple to give me a brand-new ipod in exchange for an old one, but.....something isn't right. The first problem I found was that the new nano doesn't store tracks within playlists in the same order as in iTunes. I tried 'Copy to play order' both on the iTunes smart playlist and on the playlist after uploading it to nano, but the nano lists things bunched together in groups, with newer files first - no good for listening to eg radio dramas with multiple episodes that need to be listened to in order. Then I tried making a new smart playlist with the contents of the original smart playlist, but that copies onto nano in reverse order. So I tried reversing the order of the new playlist, but the order in nano doesn't change, which is weird.
    All I want is a playlist that lets me listen to stuff in the order I want to listen to it in, without having to stop what I'm doing at the end of each track to manually select the next one. Is that not possible with the 6 Gen nano? And if not Why On Earth Not? I would have thought it was a pretty basic function.
    Another problem is that play count seems to have disappeared. I set up my smart playlist to include only files with a play count of 0, so that when I connect the nano, things I have already listened to are updated and automatically removed from the playlist. Yet all the stuff I listened to yesterday is still marked as not having been played.
    I would have assumed that a newer model would be easier/more convenient to use than an older one, but this is definitely several steps backward - or is there something wrong with my new nano?

    OK, after lots of messing around I finally got a playlist to play in the right order.
    First, automatic sync doesn't work, it has to be manual which is a bind.
    The smart playlist I want to listen to has tracks selected by genre, plus 0 plays, arranged in order manually. No matter what I do, I can't get this playlist to behave as I want.
    I created another smart playlist selected by 'playlist is the other playlist'. I select 'copy to play order' on this playlist, manually upload it to the nano and select 'copy to play order' on it in nano too. The playlist has an exclamation mark next to it indicating that it is not linked to an existing playlist. Ignore.
    Sync the nano, and the playlist is in the correct order.
    Play count still seems to be a bit iffy, though. Stuff I know I've listened to stil shows up with 0 plays.
    Please Apple, make the software for the 6 Gen as user-friendly as it was for the 1st-gen. With that everything was automatic.

  • HT1414 my iphone 4 doesnt turn on, i tried everything and when im restoring my phone in the screen is only the apple logo and in my mac says waiting for iphone but is not doing anything . just waiting and waiting

    my iphone 4 doesnt wants to turn on. i tried every step i found to restart it.. and is not working..
    i restored it with my mac.. and after that the apple logo is in the screen and in my computer says "waiting for iphone"
    but is like that for hours and nothing happen. i really tried everything.. i have the most new version of itunes.. my comp is ok. everything is ok..
    i dont know what else to do.. some help?

    First, to get the tray open. You need to push harder.
    Secondly, Does it have a wall power plug? If the battery is dead, it's won't work. Try to charge it with the wall plug adopter and not through the computer. Some USBs don't put out power so, are you pluging it into a Powered USB?
    Try these and let us know.
    OH! If you got it wet, you may have ended it. Did you get it wet? You could try putting it in a bag of rice, and hope it works.

  • Cycle keystroke not doing what it's supposed to

    checked keystrokes and it says that cycle is "/" (like it was in 7) and when i press "/" i get the "go to position" box.
    am i doing something wrong? anyone else getting this?
    thanks

    Open key commands and check. L8 has assigned keys by default that you might want to change. Some can´t be changed which is a pitty. Also in the different windows keys can have different functions. You can try initalizing all commands and importing your old commands from your LP7 prefs (user/library/prefs/Logic/com.apple.logic.pro) - that´s what I did and it worked for most of the commands.

  • Using Dialogue box in adobe. Javascript && not doing what I want it to

    Ok, I have a dialoge box that pops open for staff and asks them what it is they are doing - Reducing Interest Rate, Changing payment frequency, Changing payment amount or suspending payment.  I have fields that show/hide based on those choices
    If they hit only 1 choice the form works like a charm.  If however they hit two choices it does not
    I see what the form is doing but I do not know how to fix
    For a small example I have (put very simply)
    Fields 1, 2, 3 and 4 - all hidden
    button 1 = false
    button 2 = false
    button 3 = false
    button 4 = false
    if button 1 = true
    unhide Fields 2, 3 and 4
    If button 2 = true
    unhide Fields 1, 3 and 4
    if button 3 = true
    unhide Fields 1, 2 and 4
    if button 2 && 3 are true then:
    unhide Fields 1 and 4
    but what it does is show button 2 = true so unhides fields 1, 3 and 4 and then says button 3 = true so unhides Fields 1, 2 and 4 - so it ends up all my fields unhide
    I am sure there is probably a quick fix but I am at a loss
    I will attempt to attach my full code shortly

    Header 1
    // did the value change when ticked - lets check  THIS IS THE CODE I HAVE
    Alteration.bChk2 = false;
    Alteration.bChk3 = false;
    Alteration.bChk4 = false;
    Alteration.bChk5 = false;
    if ("ok" == Alteration.DoDialog()) {
         if (Alteration.bChk2 && Alteration.bChk4) {
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
             getField("FormValuesLoan.paymentDay").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
             getField("suspended periodic payment").checkThisBox(0,true);
    if (Alteration.bChk2 && Alteration.bChk5) {
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
             getField("FormValues.paymentAmount").display = display.visible;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("Periodic Pay Frequency Area Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
             getField("change periodic payment frequency").checkThisBox(0,true);
    if (Alteration.bChk3 && Alteration.bChk5) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.rateType").display = display.visible;
             getField("FormValues.Loan.fixedRate").display = display.visible;
             getField("FormValues.Loan.variance_GT").display = display.visible;
             getField("Periodic Pay Frequency Area").display = display.noPrint;
             getField("Periodic Payment Area").display = display.noPrint;
             getField("change periodic payment frequency").checkThisBox(0,true);
             getField("reduced periodic payment amount").checkThisBox(0,true);
        if (Alteration.bChk2) {
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
             getField("FormValuesLoan.paymentDay").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
             getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
             getField("FormValues.paymentAmount").display = display.visible;
             getField("Interest Rate Area").display = display.noPrint;
             getField("reduced interest rate").checkThisBox(0,true);
    if (Alteration.bChk3) {
             getField("FormValues.rateType").display = display.visible;
             getField("FormValues.Loan.fixedRate").display = display.visible;
             getField("FormValues.Loan.variance_GT").display = display.visible;
             getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
             getField("FormValues.variance").display = display.visible;
             getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible;
             getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
            getField("FormValuesLoan.paymentDay").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
            getField("Periodic Payment Area").display = display.noPrint;
            getField("reduced periodic payment amount").checkThisBox(0,true);
    if (Alteration.bChk4) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
            getField("FormValues.variance").display = display.visible;
            getField("FormValues.Loan.paymentFrequency_Checkbox").display = display.visible; 
            getField("FormValues.Loan.periodicPaymentDatesDays_Weekly").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_BiWeekly").display = display.visible;
            getField("FormValuesLoan.paymentDay").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly1st").display = display.visible;
            getField("FormValues.Loan.periodicPaymentDatesDays_SemiMonthly2nd").display = display.visible;
            getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
            getField("FormValues.paymentAmount").display = display.visible;
            getField("FormValues.rateType").display = display.visible;
            getField("FormValues.Loan.fixedRate").display = display.visible;
            getField("FormValues.Loan.variance_GT").display = display.visible;
            getField("suspended periodic payment").checkThisBox(0,true);
            getField("Suspend Payment").display = display.noPrint;
    if (Alteration.bChk5) {
            getField("FormValues.Loan.compoundingPeriod_Checkbox").display = display.visible;
            getField("FormValues.variance").display = display.visible;
            getField("FormValues.Loan.interestOnly_Checkbox").display = display.visible;
            getField("FormValues.paymentAmount").display = display.visible;
            getField("FormValues.rateType").display = display.visible;
            getField("FormValues.Loan.fixedRate").display = display.visible;
            getField("FormValues.Loan.variance_GT").display = display.visible;
            getField("Periodic Pay Frequency Area").display = display.noPrint;
            getField("change periodic payment frequency").checkThisBox(0,true);
         console.println("Chk2:" + Alteration.bChk2);
         console.println("Chk3:" + Alteration.bChk3);
         console.println("Chk4:" + Alteration.bChk4);
        console.println("Chk5:" + Alteration.bChk5);
    So when I check button 2 and 5 is shows button 2 true and does button 2 work and shows button 5 true and does button 5 work. I want it only to do the condition under the && condition

Maybe you are looking for

  • Excel Output in Default in Number

    Hai All, 1. I am developing a matric report foe employee, to list down the element name and element value. Element_value in back end is a varchar2 field, When the report is created and in excel the output comes propely, but when I tried to get sum fu

  • Difference B/w abstract & interface

    Anyone tell me what is Difference B/w abstract & interface. because i m very confiuse. plz tell me

  • How do I connect my 20" iMac ...

    to my surround sound stereo system? What cords do I need to get the sound rather than just the speakers from the computer? Lame question yes I know! Sorry? Greg

  • Estrange lines appear in the windows when scrolling, or on a popup Win

    Hi everybody. I'm a extremely happy new user on Arch, but i have a little problem that its very annoying. The thing is that I have FGLRX installed on my laptop, which runs on a ATI Radeon Xpress 1100 (Mobility 200M). I install the Catalyst driver wit

  • Reports Printing Slow

    Hi, I have a Forms5.0 and Reports3.0 and Developer/2000 Reports server3.0 in a Client-Server Articture. My Question is: when I print a report(1 page), the reports server taking too much time to print and it is sitting for the long time9 sometime 12 h