Receiving a "missing ; before statement" error message

I cannot see what I'm missing on this one.  This is an Adobe form testing a checkbox (New) and if it has been checked it is required that at least one of the following checkboxes (A or B) is checked. If not, an error is to display on the form to the user.
This is code in Adobe LiveCycle Designer:
var BoxCount = xfa.resolveNode(''TopmostSubform.#subform[1].A'')A.rawValue  + xfa.resolveNode("TopmostSubform.#subform[1].B")B.rawValue
if (new.rawValue==1) {
  if (BoxCount == 0) {
    (app.alert ("You must select at least on Building for Access");
When running the debugger I get:
missing ; before statement
1: Console.Exec
undefined
Any help is appreciated!

Thank you Paul -
I now have:
var BoxCount = xfa.resolveNode("TopmostSubform.#subform[1].A").rawValue + xfa.resolveNode("TopmostSubfomr.#subform[1].B").rawValue
and get the following error:
xfa.resolveNode("TopmostSubform.#subform[1].A") has no properties
1:Console.Exec
What am I missing?
Thanks for your guidance!!

Similar Messages

  • Getting error message "missing ; before statement 24"

    Hello,
    I'm getting the error message "missing ; before statement 24" in the following script:
    //Create a variable to hold the document object
    var StartDate = (xfa.form.form1.page1.signature.StartDate.rawValue);
    var EndDate = (xfa.form.form1.page1.signature.EndDate.rawValue);
    var assocName = (xfa.form.form1.page1.signature.assocName.rawValue);
    var assocID = (xfa.form.form1.page1.subForm1.assocID.rawValue);
    var assocEmail = (xfa.form.form1.page1.subForm1.assocEmail.rawValue);
    var assocExt = (xfa.form.form1.page1.subForm1.assocExt.rawValue);
    var assocDept = (xfa.form.form1.page1.subForm1.assocDept.rawValue);
    var mgrName = (xfa.form.form1.page1.subForm1.mgrName.rawValue);
    var mgrEmail = (xfa.form.form1.page1.subForm1.mgrEmail.rawValue);
    var salariedHourly = (xfa.form.form1.page1.subForm1.salariedHourly.rawValue);
    var directReports = (xfa.form.form1.page1.subForm1.directReports.rawValue);
    var perfRating = (xfa.form.form1.page1.subForm1.perfRating.rawValue);
    var howLongWorking = (xfa.form.form1.page1.request.howLongWorking.rawValue);
    //SUBMIT DATE
    if (StartDate == "") Then
    xfa.host.messageBox( "Please enter a Submit Date" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.StartDate");
    //HIRE DATE
    elseif (EndDate == "") Then
    xfa.host.messageBox( "Please enter a Hire Date" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.EndDate");
    //NAME OF ASSOCIATE
    elseif (assocName == "") Then
    xfa.host.messageBox( "Please enter your Name" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocName");
    //ASSOCIATE ID
    elseif (assocID == "") Then
    xfa.host.messageBox( "Please enter your ID" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocID");
    //ASSOCIATE EMAIL
    elseif (assocEmail == "") Then
    xfa.host.messageBox( "Please enter your email address" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocEmail");
    //ASSOCIATE EXTENSION
    elseif (assocExt == "") Then
    xfa.host.messageBox( "Please enter your telephone extension" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocExt");
    //ASSOCIATE DEPARTMENT
    elseif (assocDept == "") Then
    xfa.host.messageBox( "Please enter your department" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.assocDept");
    //MANAGER NAME
    elseif (mgrName == "") Then
    xfa.host.messageBox( "Please enter your manager's name" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.mgrName");
    //MANAGER EMAIL
    elseif (mgrEmail == "") Then
    xfa.host.messageBox( "Please enter your manager's email address" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.mgrEmail");
    //SALARIED HOURLY
    elseif (salariedHourly == "") Then
    xfa.host.messageBox( "Please enter whether your are salaried or hourly" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.salariedHourly");
    //DIRECT REPORTS
    elseif (directReports == "") Then
    xfa.host.messageBox( "Please indicate whether you have any direct reports" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.directReports");
    //PERFORMANCE RATING
    elseif (perfRating == "") Then
    xfa.host.messageBox( "Please certify your last performance rating" );
    xfa.host.setFocus("xfa.form.form1.page1.subForm1.perfRating");
    //HOW LONG WORK
    elseif (howLongWorking == "") Then
    xfa.host.messageBox( "Please indicate how long you anticipate working this arrangement" );
    xfa.host.setFocus("xfa.form.form1.page1.questions.howLongWorking");
    else
    Button6.execEvent("click");
    page2.presence = "visible";
    EndIf
    I've been hunting for several hours and can't seem to find or correct the problem. Can anyone help?
    Thanks,
    MDawn

    I'm still having trouble. I tried to change the script to JavaScript. Now I'm getting "subForm1 not defined" error message. But it appears that subForm1 is set up properly.
    Any thoughts?
    Thanks,
    MDawn

  • Loading a js file gives this error: "missing ; before statement .. Line 1"

    After "Clearing Recent History" Cache
    The Error console shows:
    Error: missing ; before statement
    Source File: http://www.dmv-rom.ca/res2/res/js/modaldbox.js
    Line: 1, Column: 14
    Source Code:
    Date: Mon, 22 Aug 2011 20:05:41 GMT
    and points to the A in Aug
    The file content:
    * Modal Dialog Box
    * copyright 8th July 2006 by Stephen Chapman
    * http://javascript.about.com/
    * permission to use this Javascript on your web page is granted
    * provided that all of the code in this script (including these
    * comments) is used without any alteration
    function pageWidth() {return window.innerWidth != null? window.innerWidth: document.documentElement && document.documentElement.clientWidth ? document.documentElement.clientWidth:document.body != null? document.body.clientWidth:null;}function pageHeight() {return window.innerHeight != null? window.innerHeight: document.documentElement && document.documentElement.clientHeight ? document.documentElement.clientHeight:document.body != null? document.body.clientHeight:null;}function posLeft() {return typeof window.pageXOffset != 'undefined' ? window.pageXOffset:document.documentElement && document.documentElement.scrollLeft? document.documentElement.scrollLeft:document.body.scrollLeft? document.body.scrollLeft:0;}function posTop() {return typeof window.pageYOffset != 'undefined' ? window.pageYOffset:document.documentElement && document.documentElement.scrollTop? document.documentElement.scrollTop: document.body.scrollTop?document.body.scrollTop:0;}function $mdbox(x){return document.getElementById(x);}function scrollFix(){var obol=$mdbox('ol');obol.style.top=posTop()+'px';obol.style.left=posLeft()+'px'}function sizeFix(){var obol=$mdbox('ol');obol.style.height=pageHeight()+'px';obol.style.width=pageWidth()+'px';}function kp(e){ky=e?e.which:event.keyCode;if(ky==88||ky==120)hm();return false}function inf(h){tag=document.getElementsByTagName('select');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;tag=document.getElementsByTagName('iframe');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;tag=document.getElementsByTagName('object');for(i=tag.length-1;i>=0;i--)tag[i].style.visibility=h;}function sm(obl, wd, ht){var h='hidden';var b='block';var p='px';var obol=$mdbox('ol'); var obbxd = $mdbox('mbd');obbxd.innerHTML = $mdbox(obl).innerHTML;obol.style.height=pageHeight()+p;obol.style.width=pageWidth()+p;obol.style.top=posTop()+p;obol.style.left=posLeft()+p;obol.style.display=b;var tp=posTop()+((pageHeight()-ht)/2)-12;var lt=posLeft()+((pageWidth()-wd)/2)-12;var obbx=$mdbox('mbox');obbx.style.top=(tp<0?0:tp)+p;obbx.style.left=(lt<0?0:lt)+p;obbx.style.width=wd+p;obbx.style.height=ht+p;inf(h);obbx.style.display=b;return false;}function hm(){var v='visible';var n='none';$mdbox('ol').style.display=n;$mdbox('mbox').style.display=n;inf(v);document.onkeypress=''}function initmb(){var ab='absolute';var n='none';var obody=document.getElementsByTagName('body')[0];var frag=document.createDocumentFragment();var obol=document.createElement('div');obol.setAttribute('id','ol');obol.style.display=n;obol.style.position=ab;obol.style.top=0;obol.style.left=0;obol.style.zIndex=998;obol.style.width='100%';frag.appendChild(obol);var obbx=document.createElement('div');obbx.setAttribute('id','mbox');obbx.style.display=n;obbx.style.position=ab;obbx.style.zIndex=999;var obl=document.createElement('span');obbx.appendChild(obl);var obbxd=document.createElement('div');obbxd.setAttribute('id','mbd');obl.appendChild(obbxd);frag.insertBefore(obbx,obol.nextSibling);obody.insertBefore(frag,obody.firstChild);
    window.onscroll = scrollFix; window.onresize = sizeFix;}
    window.onload = initmb;
    So I am confused as Line 1 is a comment
    This same load error may occur on any of several javascript files that are loaded.
    Happens in FF 3.1.18 and 6.0

    Corrected file header
    * Modal Dialog Box
    * copyright 8th July 2006 by Stephen Chapman
    * http://javascript.about.com/
    * permission to use this Javascript on your web page is granted
    * provided that all of the code in this script (including these
    * comments) is used without any alteration
    **/

  • The following javascript error(s) occured: missing before statement

    dear sir
    would u help solve my problem, please???
    i can not operate my dreamweaver, because when i operate it always appears the statement as follow;
    the following javascript error(s) occured:
    set FSO
    missing before statement
    i have used your suggestions to delete file cache in my configuration folder but still not works and also recreate the folder but it's still not work
    please help????
    tx

    --- Pada Ming, 16/1/11, SnakEyez02 <[email protected]> menulis:
    Dari: SnakEyez02 <[email protected]>
    Judul: the following javascript error(s) occured: missing before statement
    Kepada: "bayhaki halmahera" <[email protected]>
    Tanggal: Minggu, 16 Januari, 2011, 12:42 AM
    Visit the following KB article for the complete details on all steps.  Deleting the preferences/configuration is only one possible step.
    http://kb2.adobe.com/cps/405/kb405604.html

  • Key not valid for use in specified state error message

    I did the update for my iPhone and also tried to update iTunes. I kept getting an error message of "key not valid for use in specified state" error message. I thought that if I uninstalled iTunes and re-installed it, that it would be fine. I'm still getting the message and now I don't have iTunes. When my phone updated, I couldn't download anything/backup my phone to iTunes. Please help. Thank you in advance.

    For "Key not valid for use in specified state" errors try moving the folder RSA from C:\Users\<User>\AppData\Roaming\Microsoft\Crypto\RSA to say C:\RSA (just in case there should be a need to restore it) then try installing again. This folder appears to act as a cache and should be rebuilt automatically as required.
    For further problems installing iTunes see Troubleshooting issues with iTunes for Windows updates.
    tt2

  • Missing MSVCR71.dll Error Message During Launch

    I just wanted to pass along an error message that I have found the solution to and have passed onto Adobe through the bug submission process.
    I have discovered a QuickTime Component that causes Adobe Encore CS5 to give an error message during launch.  The Error message states “The file MSVCR71.dll could not be found. Please reinstall Adobe Encore to resolve the problem” (Well, it is something really close to that.  I did not write down the error message before fixing the problem).  There is an “OK” button below the message to continue loading Adobe Encore.
    The error message is only displayed if all other CS5 programs are closed.  During my findings, I discovered that if you open Adobe Encore CS5 through Premiere Pro CS5 or After Effects CS5 by using Dynamic Link, the error message will not be displayed.
    The QuickTime Component that causes the error message is “XiphQT”, which is used to play Xiph formats in any QuickTime based application.  The Component can be located here: http://www.xiph.org/quicktime/
    When installing the latest version of the program “Juicer” from digital juice, the QuickTime Component is installed.  Juicer will run without the Component, but gives a message that it is missing.  I have removed the Component since I use Encore to a much greater extent.
    To remove the XiphQT Component from QuickTime, you must remove it manually because when QuickTime is uninstalled, the Component is left behind and will be a part of future installations of QuickTime.
    While the error message displayed during the launch of Adobe Encore CS5 is not detrimental, it can be frustrating, so I hope this may help others that receive the error message from above.  I should also note that I am using Windows 7 Home Premium.

    Greetings,
    My solution was attributable to my firewall (Microsoft Defender) blocking TCP connections to QuckTime.  Here's the steps that resolved my problems on CS5, Windows 7, 64 bit:
    Control Panel
    Windows Firewall
    Advanced Settings
    Outbound Rules
    New Rule...
    Program/Next
    This program path:  (use Windows Explorer to search)
    c:\Program Files (x86)\Adobe\Adobe Bridge CS5\msvcr71.dll
    Allow the connection
    (Leave checks Domain, Private, Public)/Next
    Name Description: (whatever you like - will display at top of Windows Firewall Advanced Security Outbound Rules)
    Good luck,  Michael

  • Cannot resolve "missing return statement error"

    Hi,
    I have a small code where the following message is received when I am trying to compile it:
    61: missing return statement
    ^
    1 error
    I cannot figure out what is the source of the error. I appreciate any help in advance. Thanks
    THE FULL CODE:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class BuildSquare extends JApplet
    implements ActionListener {
    JLabel number1Label, resultLabel;
    JTextField number1Field, resultField;
    public void init()
    Container container = getContentPane();
    container.setLayout( new FlowLayout() );
    number1Label = new JLabel("Enter an integer to represent the side of square" );
    container.add(number1Label);
    number1Field = new JTextField( 10 );
    container.add( number1Field );
    number1Field.addActionListener( this );
    resultLabel = new JLabel ("The final square is: ");
    container.add( resultLabel );
    resultField = new JTextField( 15);
    resultField.setEditable( false );
    container.add( resultField);
    public void actionPerformed( ActionEvent e )
         int a;
    String Result;
         a = Integer.parseInt(number1Field.getText());
         showStatus("Calculating...");
         Result = DisplaySquare( a );
         showStatus( "Done");
         resultField.setText( Result );
    public String DisplaySquare( int a )
    String output = "";
    for (int row = 1; row <= a; row ++) {
    for (int column = 1; column <= a; column++ ) {
    output += output + "* ";
    output += "\n";
    return output;
    }

      public String DisplaySquare( int a )
       String output = "";
        for (int row = 1; row <= a; row ++)
           for (int column = 1; column <= a; column++ )
               output += output + "* ";
            } // end of "for  clumn"  
            output += "\n";
            return output;
        }  //end of "for   row"
        //mising return...............
      }  //end of public String DisplaySquare
    } //end of public class BuildSquare

  • My emails from the last five years have disappeared and trying to receive new emails generates an error message

    My antivirus scan secured a FakeAlert threat. Now, all emails from the past five years are no longer visible in my Inbox and are not in the Deleted Items folder. Any time I try to receive a new email I receive the following message:
    "There was an error downloading the following message:
    From: <sender>
    Subject: <subject>
    This message may contain a virus or there is not enough disk space. Skip this message?"
    Enter No:
    "Unable to write the email to the mailbox. Make sure the file system allows you write privileges, and you have enough disk space to copy the mailbox."
    I have write privileges and 184 GB of free disk space. I recently deleted many emails and compacted my inbox. I cannot restore any files that the scan deleted because there are none visible.
    I have contacted my antivirus software providers and they concluded that the problem lies with my email software. Can you please help?

    REmove all emails from the Inbox to other folders.
    When it is empty do the next stage.
    If you are using a POP mail account and have some emails in the webmail view that are missing in Thunderbird, you could get everything currently on the server downloaded again.
    Make hidden files and folders visible:
    * http://kb.mozillazine.org/Show_hidden_files_and_folders
    In Thunderbird
    * Help > Troubleshooting Information
    * click on 'Show Folder' button
    * '''close Thunderbird now - this is important. '''
    * clickon 'Mail' folder
    * click on mail account name
    * Locate and delete these files: '''Inbox and Inbox.msf'''
    * locate and delete this file: '''popstate.dat'''
    * close the window - top right X
    * restart Thunderbird
    A new Inbox will be created.
    A new popstate.dat file will be created.
    It keeps a record of everything downloaded, as it is new and empty, TB will believe everything currently in server Inbox needs to be downloaded.
    This will get everything currently in server Inbox back in Thunderbird. As you already have some emails, you may get some duplicates, but only the once.
    I would not expect any emails are recoverable from the Inbox in Thunderbird because they may have been corrupted by either an unknown reason or by the antivirus program doing something with the file to make emails lose information, it is possible that when you compacted the file emails were lost. Compacting removes 'marked as deleted' emails, but if it didi not know where a marked as deleted email ended, good emails could have been removed due to the corruption.
    In future, compacting should be done on a regular basis, but never compact a file/folder that you think may be corrupted. Getting the error message saying the file may be corrupted was a good hint that somethig was wrong.
    Report back on results.

  • Receiving a false paper jam error message for a 6310 all in one printer

    I have an hp 6310 all in one printer.  It is showing a false paper jam error message with no paper in the printer.  I have tried all  of the fixes that have been suggested on the website as well as on you tube to no avail.  Nothing works, I have cleaned all of the parts that have been suggested to clean and reset the printer. I am still receiving the same paper jam message with no paper in the printer.  Does anyone have any suggestions to try to fix this printer. 

    Do you here any clicks or other sounds when the 6310 first starts up?
    I'm trying to fix false paper jam error on Sharp Fax/copier,F0-4450.
    When researching the problem, found suggestion that a bad solenoid could cause that error. 
    After completely disassembling the copier found that wasn't the problem.
    I here 2 clicks during start up that sounds like gear slipping a tooth, as if something is preventing a shaft from turning.
    Back to the drawing board.
       UPDATE!!! Took fuser out, turned gears with screwdriver til 81/2x11 paper went thru, lubricated ends of fuser roller with powdered graphite lube.
    3 page fax came thru.

  • "missing return statement" error code

    well... i feel like such a n00b... I can't seem to figure out what the problem is with my code, if someone could help me, that would be great. I get an error saying 'missing return statement'. I know that I have some things in here that I don't need but I will need them as I go on making this program.
    with this code:
    import java.io.*;
    import java.math.*;
    public class Tester
         public static int time = 0;
         public static void main(String[] args) throws IOException
              System.out.println("Welcome to the 2008 Java Games!!!");
              time=1000;
              delay(100);
              //Method Name: delay
              //Method Arguments: used to wait for a given time
              //Goal of Method: Delay for a given time
         public static int delay(int time)
              try {
                   Thread.sleep(time);
              catch(InterruptedException ex) {}
              time++;
    }

    What does the error say? "Missing return statement"? Then I'm going to venture a guess and say that you're missing a return statement. If you don't know what a return statement is, then you have some learning to do:
    http://java.sun.com/docs/books/tutorial/java/javaOO/returnvalue.html
    Read that, then look at your delay() method and how you call it. And notice that you've made delay() of type "int".
    Edit: Or just have someone else give you the answer :P
    Edited by: newark on Feb 27, 2008 3:20 PM

  • Why do I receive a "Page nor available" error message on my site after I add a link to a new page?

    At work, I have been adding a new page to an existing folder. This appears to be properly placed in my site folder on my desktop. I also have the new page linked and saved. However, after I link the page, save it, manually "put" the page onto the existing site, then refresh the page, when I go into the actual site and click on the link, it reads an error message that the site is temporarily unavailable.
    As a test, I used the same method to link to one of the existing links that already exist within the site, and it connected just fine.
    What am I doing wrong?

    Assuming the path to your links is correct, sounds like it could have been a server glitch.  Normally, if the page is not found, you receive a 404 error.  If the server is down or your internet connection times out, you'll get "site is temporarily unavailable."
    Nancy O.

  • Solaris Express 2/07 missing icons with error message...

    HI,
    I installed SE 2/07, when I try to log in remotely (using reflections or VNC) I get the following message, but some icons are missing are replaced for a generic one... weird... any help?
    Thanks!
    The message reads..
    "There was an error starting the GNOME Settings Daemon.
    Some things, such as themes, sounds, or background settings may not work correctly.
    The last error message was:
    Unable to determine the address of the message bus (try 'man dbus-launch' and 'man-daemon' for help).
    GNOME will still try to restart the settings Daemon next time you log in.
    Any idea hoe to fix this?

    Yep. The problem seems to be that you don't have dbus running.
    I did as the man page said and put this in my ~/.vnc/xstartup :
    dbus-launch gnome-session
    gnome-terminal geometry 80x24+10+10 title="My Desktop" &
    And everything works without error again.
    Cheers,
    James

  • IPhone 4S, the last two versions of IOS: I receive an text, reply, get error message instructing me to use valid 10 digit number. Only this person. I've deleted and re-entered her contact info - still cant send txt. What's up?

    Seems I entered question in subject field? Here's the question:
    iPhone 4S, the last two versions of IOS: I receive a text, in iMessage, reply, get error message instructing me to use valid 10 digit number. Only this person. I've deleted and re-entered her contact info - still cant send txt. What's up? ATT says they've never seen this. I have previously texted successfully with this person and she's changed nothing on her end.

    The fix for this problem is easy and is set out here: http://edctips.blogspot.com/2014/09/fixing-iphone-texting-problem.html

  • Missing msvcp100.dll error message

    the adobe reader always starts with a system error message about a missing "msvcp100.dll" file (needed for acroRd32.exe). I have to click the OK-Button and the reader starts in a normal way.
    I already tried to repair the installation, but it didn't help. I use Adobe Reader version 9.3.3 with windows 7 professional.
    Does anybody know how to solve this annoying problem?
    thank you
    mrbenanzo

    In order to fix the issue you may install the latest Microsoft Visual C++ 2010 Redistributable Package and check if it helps.
    You may install the latest Microsoft Visual C++ 2010 Redistributable Package according to the Windows 7 versions you are using.
    For 32bit: Microsoft Visual C++ 2010 Redistributable Package (x86)
    For 64bit: Microsoft Visual C++ 2010 Redistributable Package (x64)

  • We are receiving a "Secure Connection Failed" error message when using Firefox Version 37.01. What is the remedy?

    We have multiple websites that do not launch now as a result of the recent upgrade from Firefox version 36.04 to version 37.01. We received "Secure Connection Failed" error messages which indicate that the connection was interrupted while the page was loading, and that the page you are trying to view cannot be shown because the authenticity of the received data could not be verified. Please explain why this is happening, and if a fix will be issued soon by Mozilla, as everything was operating normally prior to the most recent Firefox upgrade. Alternatively, please identify browser settings that can/should be changed in order for Firefox to access these basic Internet sites (that are completely accessible using other browsers such as IE and Google Chrome). Thank you.

    ''rahuldecoded [[#answer-718441|said]]''
    <blockquote>
    https://support.mozilla.org/en-US/kb/secure-connection-failed-error-message
    </blockquote>
    FYI, I work with the original poster. I looked at the suggestions on that page but none were the issue. Then I found this thread:
    https://support.mozilla.org/en-US/questions/1056488
    And that appears to be the problem we and others are having.

Maybe you are looking for