bb c LiveCycle Designer ES Scripting Errors

bb c LiveCycle Designer ES Scripting Errors
bc
LiveCycle® Designer ES Scripting Errors
Adobe® LiveCycle® Designer ES
July 2008
Version 8.2
© 2008 Adobe Systems Incorporated. All rights reserved.
Adobe® LiveCycle® Designer ES (8.2) Scripting Errors for Microsoft® Windows®
Edition 1.0, July 2008
If this guide is distributed with software that includes an end user agreement, this guide, as well as the software described in it, is furnished
under license and may be used or copied only in accordance with the terms of such license. Except as permitted by any such license, no part
of this guide may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, recording,
or otherwise, without the prior written permission of Adobe Systems Incorporated. Please note that the content in this guide is protected
under copyright law even if it is not distributed with software that includes an end user license agreement.
The content of this guide is furnished for informational use only, is subject to change without notice, and should not be construed as a
commitment by Adobe Systems Incorporated. Adobe Systems Incorporated assumes no responsibility or liability for any errors or
inaccuracies that may appear in the informational content contained in this guide.
Please remember that existing artwork or images that you may want to include in your project may be protected under copyright law. The
unauthorized incorporation of such material into your new work could be a violation of the rights of the copyright owner. Please be sure to
obtain any permission required from the copyright owner.
Any references to company names, company logos and user names in sample material or sample forms included in this documentation
and/or software are for demonstration purposes only and are not intended to refer to any actual organization or persons.
Adobe, the Adobe logo, Acrobat, LiveCycle, PostScript, and Reader are either registered trademarks or trademarks of Adobe Systems
Incorporated in the United States and/or other countries.
Microsoft and Windows are either trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
SVG is a trademark of the World Wide Web Consortium; marks of the W3C are registered and held by its host institutions MIT, INRIA and Keio.
All other trademarks are the property of their respective owners.
This product contains either BSAFE and/or TIPEM software by RSA Security, Inc.
This product includes software developed by the Apache Software Foundation (http://www.apache.org/).
This product includes software developed by the IronSmith Project (http://www.ironsmith.org/).
This product includes software developed by the OpenSymphony Group (http://www.opensymphony.com/).
This product includes software developed by the Indiana University Extreme! Lab (http://www.extreme.indiana.edu/).
This product includes copyrighted software developed by E. Wray Johnson for use and distribution by the Object Data Management Group
(http://www.odmg.org/).
Portions © Eastman Kodak Company, 199- and used under license. All rights reserved. Kodak is a registered trademark and Photo CD is a
trademark of Eastman Kodak Company.
Powered by Celequest. Copyright 2005-2008 Adobe Systems Incorporated. All rights reserved. Contains technology distributed under license
from Celequest Corporation. Copyright 2005 Celequest Corporation. All rights reserved.
Single sign-on, extending Active Directory to Adobe LiveCycle ES provided by Quest Software “www.quest.comlidentity-management” in a
subsequent minor release that is not a bug fix (i.e., version 1.1 to 1.2 but not 1.1.1 to 1.1.2) of the Licensee Product that incorporates the
Licensed Product.
The Spelling portion of this product is based on Proximity Linguistic Technology.
©Copyright 1989, 2004 All Rights Reserved Proximity Technology A Division of Franklin Electronic Publishers, Inc. Burlington, New Jersey
USA.
© Copyright 1990 Merriam-Webster Inc. © Copyright 1990 All Rights Reserved Proximity Technology A Division of Franklin Electronic
Publishers, Inc. Burlington, New Jersey USA.
© Copyright 2003 Franklin Electronic Publishers Inc. © Copyright 2003 All Rights Reserved Proximity Technology A Division of Franklin
Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 2004 Franklin Electronic Publishers, Inc. © Copyright 2004 All Rights Reserved Proximity Technology A Division of Franklin
Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 1991 Dr.Lluis de Yzaguirre I Maura © Copyright 1991 All Rights Reserved Proximity Technology A Division of Franklin Electronic
Publishers, Inc. Burlington, New Jersey USA.
© Copyright 1990 Munksgaard International Publishers Ltd. © Copyright 1990 All Rights Reserved Proximity Technology A Division of Franklin
Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 1995 Van Dale Lexicografie bv © Copyright 1996 All Rights Reserved Proximity Technology A Division of Franklin Electronic
Publishers, Inc. Burlington, New Jersey USA.
© Copyright 1990 IDE a.s. © Copyright 1990 All Rights Reserved Proximity Technology A Division of Franklin Electronic Publishers, Inc.
Burlington, New Jersey USA.
© Copyright 2004 Franklin Electronics Publishers, Inc. © Copyright 2004 All Rights Reserved Proximity Technology A Division of Franklin
Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 1992 Hachette/Franklin Electronic Publishers, Inc. © Copyright 2004 All Rights Reserved Proximity Technology A Division of
Franklin Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 2004 Bertelsmann Lexikon Verlag © Copyright 2004 All Rights Reserved Proximity Technology A Division of Franklin Electronic
Publishers, Inc. Burlington, New Jersey USA.
© Copyright 2004 MorphoLogic Inc. © Copyright 2004 All Rights Reserved Proximity Technology A Division of Franklin Electronic Publishers,
Inc. Burlington, New Jersey USA.
© Copyright 1990 Williams Collins Sons & Co. Ltd. © Copyright 1990 All Rights Reserved Proximity Technology A Division of Franklin Electronic
Publishers, Inc. Burlington, New Jersey USA. © Copyright 1993-95 Russicon Company Ltd.
© Copyright 1995 All Rights Reserved Proximity Technology A Division of Franklin Electronic Publishers, Inc. Burlington, New Jersey USA.
© Copyright 2004 IDE a.s. © Copyright 2004 All Rights Reserved Proximity Technology A Division of Franklin Electronic Publishers, Inc.
Burlington, New Jersey USA.
Adobe Systems Incorporated, 345 Park Avenue, San Jose, California 95110, USA.
Notice to U.S. Government End Users. The Software and Documentation are "Commercial Items," as that term is defined at 48 C.F.R. ß2.101,
consisting of "Commercial Computer Software" and "Commercial Computer Software Documentation," as such terms are used in 48 C.F.R.
ß12.212 or 48 C.F.R. ß227.7202, as applicable. Consistent with 48 C.F.R. ß12.212 or 48 C.F.R. ßß227.7202-1 through 227.7202-4, as applicable,
the Commercial Computer Software and Commercial Computer Software Documentation are being licensed to U.S. Government end users
(a) only as Commercial Items and (b) with only those rights as are granted to all other end users pursuant to the terms and conditions herein.
Unpublished-rights reserved under the copyright laws of the United States. Adobe Systems Incorporated, 345 Park Avenue, San Jose, CA
95110-2704, USA. For U.S. Government End Users, Adobe agrees to comply with all applicable equal opportunity laws including, if
appropriate, the provisions of Executive Order 11246, as amended, Section 402 of the Vietnam Era Veterans Readjustment Assistance Act of
1974 (38 USC 4212), and Section 503 of the Rehabilitation Act of 1973, as amended, and the regulations at 41 CFR Parts 60-1 through 60-60,
60-250, and 60-741. The affirmative action clause and regulations contained in the preceding sentence shall be incorporated by reference.
Contents
About This Document.................................................................................................................. 5
Who should read this document? ............................................................................................................................................ 5
Purpose and scope ........................................................................................................................................................................ 5
Additional information................................................................................................................................................................. 5
1
JavaScript Scripting Errors.......................................................................................................... 7
2
FormCalc Scripting Errors ......................................................................................................... 13
4
About This Document
Welcome to Adobe® LiveCycle® Designer ES 8.2 Scripting Errors guide.
Who should read this document?
This guide is intended for form authors and form developers who are using calculations and scripts in their
LiveCycle Designer ES forms, and would like more information about the scripting error messages that are
displayed on the Warning tab in the Report palette.
Purpose and scope
The purpose of this guide is to provide a list of JavaScript™ and FormCalc error messages along with the
following information:
●
Code number
●
Error type
●
Error text
●
Error description and some examples
This guide supplements the error code information available in the LiveCycle Designer ES Help.
Additional information
In addition to this guide, Adobe has a wide variety of resources dedicated to scripting in
LiveCycle Designer ES.
Documentation
Description and location
Help for LiveCycle Designer ES
Provides detailed information about using the product,
including information on using calculations and scripts, and
additional information on error messages.
See LiveCycle Designer ES Help.
Scripting basics
Provides an overview of how you can use scripting to develop
and enhance forms that are created in LiveCycle Designer ES.
See Adobe LiveCycle Designer ES Scripting Basics.
Scripting reference material
Describes the objects, properties, and methods that are
available for scripting in the LiveCycle Designer ES environment.
See Adobe LiveCycle Designer ES Scripting Reference.
5
Adobe LiveCycle Designer ES
About This Document
Scripting Errors
Additional information
Documentation
Description and location
FormCalc reference material
The FormCalc scripting language and its functions.
See FormCalc Reference.
Scripting samples
You can experiment with the sample forms and apply the
techniques to your own work. Go to the Adobe LiveCycle ES
Developer Center to get the latest sample forms.
6
1
JavaScript Scripting Errors
This section lists the JavaScript scripting errors displayed in LiveCycle Designer ES on the Warning tab in
the Report palette.
Code
Error type
Error text
Error description
7001
Error
%1
A placeholder for any unexpected or unknown error.
%1 can potentially contain any text.
7002
ReferenceError
Error %1 is
undefined
An unqualified variable lookup failed.
7003
ReferenceError
Cannot assign
value
An assignment attempts to access a constant such as
a number, string, or XML.
7004
SyntaxError
Unterminated
string constant
The closing quotation character (")was omitted at
the end of a string constant.
Example:
var sName = "Name;
To correct this error, locate the affected line and add
the missing quotation character(").
7005
SyntaxError
Unterminated
comment
The closing comment characters (*/)were omitted
at the end of a comment string.
Example:
/* The old fashioned comment style is
still useful
var i = 0;
To correct this error, locate the affected line and add
the missing closing characters. In this example, add
*/ after the word useful.
Note that when using the single-line comment
characters (//), there is no need to terminate the
comment string with matching closing characters.
7006
SyntaxError
Bad digit in
number
Contains a character that is not a number or a valid
separator (a period or a space).
Examples:
123u8
123,8
7007
SyntaxError
Language feature
%1 is not
supported
Currently, only property getter and setter methods
are unsupported, as defined in Mozilla SpiderMonkey.
Getter and setter methods are not part of the
JavaScript standard. This error also occurs when
compiling JavaScript without XML support and
attempting to use XML.
7
Adobe LiveCycle Designer ES
JavaScript Scripting Errors
Scripting Errors
8
Code
Error type
Error text
Error description
7008
SyntaxError
Syntax error
A generic (catch-all) syntax error.
7009
SyntaxError
Illegal use of
reserved word
'%1'
A keyword was used out of context.
Example:
var for = 56;
The word for is a reserved word and cannot be used
as a variable name.
To correct this error, change the keyword to a
non-reserved word.
7010
SyntaxError
Break or Continue
outside a loop
The keywords break and continue are meant to be
used inside a for loop or a while loop. The keyword
break is also valid inside a switch statement. Using
these keywords outside these structures is not
permitted.
Examples:
Correct:
for (i = 0; i < 20; i++)
{
if (a == i)
break;
}
Incorrect:
var sName = "Nicole";
break;
var sAnimal = "cat”;
To correct this error, remove the line with the break
statement.
7011
SyntaxError
Label not found
JavaScript does not support goto, but it supports
labels for continue and break statements.
Example:
outer: for (I = 0; I < 100; i++)
{
inner: while (condition)
{
if (bad)
break outer;
}
}
To correct this error, ensure that any label used in a
program is defined, and ensure that spelling is
consistent when referring to labels.
Adobe LiveCycle Designer ES
JavaScript Scripting Errors
Scripting Errors
9
Code
Error type
Error text
Error description
7013
SyntaxError
Too many closing
braces
The program contains an unmatched closing brace.
Example:
if (sSoftware == “Designer”)
{
// Heh.
sDesc = “Form Design Software”;
}}
To correct this error, remove the extra closing brace.
7014
SyntaxError
No matching
closing brace
found
A closing brace is missing somewhere in the program.
Example:
The closing brace of the for loop is missing in this
program:
if (sSoftware == “Designer”)
{
for (i = 0; i < 7; i++)
{
nCount = nVer + 1;
}
Despite the indentation that indicates that the for
loop is missing a closing brace, the error line usually
indicates that the if statement is missing a brace.
Generally, with a missing brace error, the outermost
statement is the one that is reported to be missing the
closing brace.
7015
SyntaxError
Try without
catch/finally
The try statement cannot be used unless it is paired
with the catch/finally statement.
To correct this error, remove the try statement or add
a catch/finally statement.
7016
SyntaxError
Catch/finally
without try
The catch/finally statement cannot be used
unless it is paired with the try statement.
To correct this error, remove the catch/finally
statement or add a try statement.
7017
TypeError
Variable expected
A variable name is expected.
Examples:
function f(1) {}
try {} catch ("hi") {}
var 5;
The characters in bold are where a variable name is
expected rather than a constant or a number.
7018
TypeError
Variable or value
expected, but
found %1
Rarely displayed. Replaced with ERR_NoValue.
Adobe LiveCycle Designer ES
JavaScript Scripting Errors
Scripting Errors
10
Code
Error type
Error text
Error description
7019
TypeError
Bad argument %1
A function argument cannot be converted to a
suitable data type. For example, a function is
expecting a number and a string is passed in instead.
7020
TypeError
Bad argument list
There is a problem with the function's argument list,
and the arguments cannot be used.
7021
TypeError
%1 is not an
object
An invalid object is being used to perform an
operation. An object is needed for an operation, but
the data cannot be converted to an object.
Example:
var obj = null;
obj.toString();
Calling a method on obj fails, because obj is null and
not an object.
7022
ReferenceError
%1 does not have
a constructor
Host objects that cannot be created, such as the
Application object, have a dummy constructor
function so that the prototype object can be
accessed. An example is Application.prototype where
an attempt was made to use this function as a
constructor.
7023
ReferenceError
%1 does not have
a value
The conversion of an object to a primitive value failed.
Example:
o={toString:function(){return
this}};
o+"test";
7024
ReferenceError
%1 is not a
function
Something is invoked as a function, and it does not
exist.
Example:
var f = "No function";
f();
7025
SyntaxError
Expected: %1
Parser expected a certain symbol but did not locate it.
The missing symbol is often a single character, but can
be more than one character.
Example:
<xml>{javascript]</xml> // expected: }
The parser was expecting the closing symbol } after
the word javascript to match the opening symbol.
Adobe LiveCycle Designer ES
JavaScript Scripting Errors
Scripting Errors
11
Code
Error type
Error text
Error description
7026
Error
%1 cannot work
with this class
Methods were moved from one class to another. Only
the String and Array methods are generic enough
to work with different classes.
Example:
s = new String ('test');
s.getTime = Date.prototype.getTime;
s.getTime();
7030
SyntaxError
Illegal 'return'
outside a function
body
Using the keyword return outside a function
definition is not permitted.
To correct this error, remove the return statement.
7037
SyntaxError
Conversion error
A conversion from one character encoding to another
fails. This is not a JavaScript error. It occurs, for
example, when trying to read a malformed Shift-JIS
file.
7038
SyntaxError
Partial multibyte
This error occurs during the conversion from one
character encoding to another. This is not a JavaScript
error. It occurs, for example, when the last byte of a
UTF-8 file is missing when the file is read.
7039
SyntaxError
More than one
switch default
The switch statement has a special label, default,
which is the code that runs if no other case in the
switch is chosen. There can be only one default
label per switch statement.
Example:
switch (nVersion)
{
case 1:
// ...
break;
case 2:
// ...
break;
default:
// ...
break;
default:
// ...
break;
};
To correct this error, delete all but one of the
default labels.
7040
TypeError
%1 redeclared
A constant cannot be declared more than once. Note
that a variable can be declared more than once.
Example:
const a = 5;
const a = 6;
Adobe LiveCycle Designer ES
JavaScript Scripting Errors
Scripting Errors
12
Code
Error type
Error text
Error description
7041
RangeError
%1 is out of range
An argument, index, or value exceeds the allowable
numeric range.
Example:
Number (5).toFixed (111); // 100 is max
7042
SyntaxError
Catch after
unconditional
catch
JavaScript supports multiple catch clauses, but the
last catch clause must be unconditional.
Example:
try {}
catch (e if e instanceof String) {}
catch (e if e > 5) {}
catch (e) {}
catch (e if typeof e == "object") {}
To correct this error, either move the illegal
conditional catch clause before the unconditional
catch clause, or delete it.
2
FormCalc Scripting Errors
This section lists the FormCalc scripting errors displayed in LiveCycle Designer ES on the Warning tab in
the Report palette.
Code
Error Type
Error Text
Error Description
7008
SyntaxError
Syntax error near token
‘%1’ on line %2, column
%3.
A generic (catch-all) FormCalc error.
Generally, %1 contains the token (word)
nearest to the error. The token may have
nothing to do with the error, other than
proximity to the problem.
Example:
var b = abc(1)
if (b ne 1) then
//comment
The error in this example is that the endif
token is missing from the script. The last
correct token is then. Comments do not
count as tokens.
To correct this error, add an endif
statement to the end of the script.
7100
SyntaxError
Function '%1'on line %2,
column %3 is built in.
A user-defined function used the same
name as a built-in function.
Line and column numbers provide
information to locate where on a line the
error appears.
Example:
func sum()
do
x = 1
endfunc
7101
SyntaxError
Function '%1'on line %2,
column %3 is unknown.
A script attempted to invoke a function
that has not been defined.
Example:
read()
13
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement