FormCalc Error

Hi,
I uses Adobe LiveCycle Designer 7.0(English Version) on Windows XP Professional(Japanese Version). Viewer is Adobe Reader 7.0.8(Japanese Version).
And I downloaded the sample form from here.
www.adobe.com/devnet/livecycle/articles/
lc_designer_db_lookup_tip.pdf
But, it occurs error at FormCalc Script. Error message is
"Accessors "$sourceSet.DataConnection.#command.query.commandType"
is unknown".
Please tell me why it doesn't work.
Akira

That's right -- I had forgotten about the gotcha with Reader (if that's what Akira has been using to test the form).
By the way, with Reader Extensions, is it possible to extend the form to enable data import just for connections to a database, WSDL or XML Data File (i.e. only one of them) or do you RE the form to allow any of them?
Stefan
Adobe Systems

Similar Messages

  • PCR SPEG not populating Form and giving FormCalc errors

    First of all we are running on Enterprise Portal 7.0, Adobe Document
    Services on SP10. We are running the ESS and MSS business packages with
    the latest Support Package 7. We are also using the Adobe LiveCycle
    Designer 7.1 Patch 3.
    We are experiencing a Script Error when we attempt to create a
    Personel Change Request through MSS. The Manager logs in, navigates to
    create Personel Change Request, selects and Employee and selects Change
    to Personel Group or Subgroup.
    The System displays our Form, except that there isn't any data populated
    and Adobe Reader displays a popup which reads:
    Script failed (language is formcalc; context is xfa[0].form[0].data
    [0].#subform[0].DE.DEContent[0].ISR_TextEdit_DisplayOnly[0)
    script=//Concatenate two charactertis for display: object text (object
    #)//concat
    ($record.<characteristic>.DATA.FIELD, "(",$record,<characteristic>.DATA.FIELD,")"
    Error: no expression encountered -- script result is undefined.
    The form itself simply displays a blank for with tags
    <Form Title>
    <CI Title>
    <Label> <Description>
    <DE Title>
    <DE Description>
    To get to this point, we ran the report RSCLCCOP and did a copy of the
    objects as described on Page 128 of the Business Package for Manager
    Self-Service Documentation.
    We then went into QISRSCENARIO set the notification to 56, and went to
    generate the form ISR_FORM_SPEG. We selected generate form from SAP
    Design, and then proceeded to click "Maintain in Logon Language" which
    happens to be english.
    I feel like I'm missing a step... any ideas?

    Hi Tim,
    The error - : no expression encountered -- script result is undefined, is simply because the script editor for the respective event doesnt conatain any active code.(all codes are commented).
    For , data not getting displayed, you may check out the bindings for each field and the corresdponding layout for the respective form.
    SFP transaction -> form name -> layout  - to see the layout.
    In layout, layout -> click on the respective adobe field -> object pallette -> binding.
    check proper binding has been provided for each field from the context (data view pallette).
    Do update, once you have solved your issue.
    Thanks andRegards,
    Anto

  • Odd FormCalc error on xfa.form.recalculate()

    Using FormCalc I'm getting an accessor unknown error using xfa.form.recalculate(1).
    Error: accessor 'xfa.form.recalculate("1")' is unknown.
    If I take it out of the statement I have it in it and slap it on a button it works.
    Statement it is in:
    var vIndex = $.parent.parent.index
    if (vIndex > 0) then
              Page02.subStep0203._subDiscArGr.removeInstance(vIndex)
              Page03.subStep04._subConduct.removeInstance(vIndex)
              Page03.subStep05A._subFile.removeInstance(vIndex)
              _subRespondent.removeInstance(vIndex)
              xfa.form.recalculate(1)
    endif
    I also get the error if I put the line outside the if statement.
    I'll probably just redo it in JavaScript but generally FormCalc is much easier/faster for this sort of thing. And I'm curious as to what's happening!

    Thanks for that article. The best part about that article is John Brinkman's comment on referencing the instance manager object in a calculation event instead of using both the calculation event and the indexChange event.
    Consider this, say you want a numbered list of rows that increments the number everytime you add a row. In the calculate event of a cell in the row you would put this.rawValue=this.parent.index+1;
    but of course if you delete the first row it doesn't recalculate and your left with a set of rows starting with 2. Well I've always put in the indexChange event of the row NumField.execCalclulate(); to refresh the field when a row was deleted. Well try this two liner in the calculate event of the field alone without any code in the indexChange event of the row:
    var i=_RepeatableRow.count; //it's only use is to trick the
    //calculate event mitigating the need for indexChange event code
    this.rawValue=this.parent.index+1;
    Here, I inserted a 'useless' line of code (var i=_RepeatableRow.count) for the sole purpose of tricking the calculate event into thinking it's referencing the instance manager object. When the objects count property changes from the deletion of a row, it fires the event. Cool.
    Kyle

  • FormCalc error-arithmetic overflow/underflow

    Does anyone know how to get rid of the arithmetic overflow/underflow error? I have a form with calculated fields that works, but I get this error every time I open it. I really don't want to send it out to customers like this. Any suggestions?

    Since it is occurring when the form is first openned I'd look for some calculations (particularly division) that are being done in form load/field initialization/field change events. You could add some "message box" display of field names, event name and variable values at the beginning of the events that have calculations to determine which one(s) are running at form load time and what the values are.
    My guess is that it is being triggered before one or more of the variables has a value in it. If that is the case, you will want to surround your calculation with a check to ensure that the variables are non-zero, non-null. You may even want to go as far as not running the calculation until after you know the form has been completely loaded and fields are initialized by establishing a variable that isn't set until the end of the form load process.

  • FormCalc error...will attach form.

    This form was generated using a template so the table was already there. I cant get it to calculate the amount column. Can someone please help me....I will attach the form if someone could fix it and send it back with explanation.......

    Send the form to [email protected] and I will have a look when I get a chance.
    Paul

  • Preventing Form Calc Runtime Error Message Dialog

    When there is an runtime error in a script written in JavaScript, Adobe Reader "swallows" the error (if it is not caught). I mean, it may write the error to the console, but the user isn't warned of the fact, through a message box.
    So, for the user, everything is well.
    For the programmer, because he can use a top level try/catch/finally statement, if he is interested in knowing of the fact, this behaviour is a good compromise.
    If there is a syntax error in a script written in JavaScript Adobe Reader also does not alert the user of the fact.
    If you write code in FormCalc the behaviour is the exact opposite.
    Syntax errors show up to the user. This may be admissible because, with thorough testing, it will happen in development-time.
    But runtime errors always show up to the user. A big dialog, as tall as your code, shows the code to the user, and, at the bottom, possibly already off the screen, the description of runtime error. This may be an ugly description, depending on what failed.
    As far as I know, there is no construct in the Form Calc language that allows catching errors, so you're stuck.
    To make things worse not every FormCalc function is available in JavaScript. Many useful functions only exist in FormCalc.
    I tried calling FormCalc scripts from JavaScript scripts, using the field.execEvent('...') and it works, appart from a lot of dificulties in passing parameters to, and returning results from, using fields' values as intermediaries of this interaction.
    Yet, a try/catch/finally block in the calling JavaScript script does not catch FormCalc errors...so we're back again to the same problem.
    All this, imho, is an absurd, and can only be understood as some market-like feature.
    Is there ANY undocumented way or dirty trick to prevent FormCalc error messages from displaying to the user?
    Or
    Is there ANY undocumented way or dirty trick to catch FormCalc error messages, in FormCalc code?

    Duarte:
    You cannot catch exceptions in FormCalc -- it doesn't have that language feature. If this is important to you, you need to stay with JavaScript. Of course there are certain functions that are available only in FormCalc. There is a way to get at those functions from JavaScript. See my blog post at:
    http://blogs.adobe.com/formfeed/2009/02/calling_formcalc_functions_fro.html
    John

  • Arithmetic Overflow/Underflow and Divide by Zero Errors

    We're having problems similar to those posted below (see links), especially "Help: Divide by Zero Errors" to which no one has addressed. <br /><br />Here's our situation: On our form, we have two columns that sum the rows above them, called<br /><br />"covertotal" and "multtotal"<br /><br />...for which we need a final calculation: multtotal/covertotal<br /><br />Under calcutions in FormCalc, we have generated the following formula for the box called "prevtotal" under the calculate command: <br /><br />(multtotal / covertotal)<br /><br />However, since this calculation runs when the document is opened, we get a divide by zero error. Do we need to create an initialize or calculate formula to correct for this zero? If so, what is the proper coding.<br /><br />Please spell this out, we're that stupid... <sigh><br /><br />Thanks!<br /><br />Matthew<br /><br />Previous posts with similar problems are linked below:<br /><br />Help: Divide by Zero Errors<br /><a href="/cgi-bin/webx?14@@.3bbd2077">Harry Kontos, "Help: Divide by Zero Errors" #, 6 Nov 2005 10:01 pm</a><br /><br />calculations overflow/underflow<br />http://www.adobeforums.com/cgi-bin/webx/.3bbeb7e0<br /><br />FormCalc error-arithmetic overflow/underflow<br />http://www.adobeforums.com/cgi-bin/webx/.3bbc15f3

    Your error message indicates your script is being executed as FormCalc, not JavaScript.
    If you're using FormCalc try using an If statment to test for zero/null.
    if (tr>0) then (ac/tr)*100 endif

  • Help needed with PCR Interactive Forms.

    Hello,
    We are trying to get a prototype system going to show HR some WebDynpro and Adobe Forms technology. I'm focusing on our PCR's right now. I have fixed one problem by configuring the ABAP WAS in the java visual admin http destinations. I now want to take our ISR's and map them to adobe forms in QISRSCENARIO. I am looking at the available forms and wish to configure.
    - Transfer an Employee out of my Org - ISR_FORM_SPTR - The inactive SPTR form displays the following "The creation of this form has not yet been completed. Therefore, you cannot use the form at this time. The finished form will be available with the next release.SAP AG "
    - Move an Employee to a Vacancy in My Org - ISR_FORM_???? - This may be some old custom development on our part because I'm seeing nothing close in ISR forms.
    - Change an Employee in Current Position - ISR_FORM_SPPD - Displays form after a popup shows soem formcalc errors.
    - Separate an Employee - ISR_FORM_SPSD - Displays form
    - Change Working Time of an Employee - ISR_FORM_SPWT - Displays form after a popup shows soem formcalc errors.
    This is just a prototype so I'm not lookign to mesh all out pcr customizations. I do have some questions though.
    I can't seem to find anything telling me what adobe forms are delivered for a particular version of SAP. We are on ECC5.0.
    Is a form marked inactive simply not delivered? If not how do I activate?
    Basically we'll want to be using adobe forms wherever delivered for ECC50. Any pointers to documentation on what's delivered vs. what I'm seeing in QISRSCENARION would be greatly appreciated as well as any general docs on working with, modifying forms.
    Thanks,
    Doug

    Where to start with scripting:
    http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    http://help.adobe.com/en_US/livecycle/es/FormCalc.pdf
    In first doc, check the last chapter for the most illustrative examples.
    You need to be able to get the value of the radio (var help = this.rawValue), use the condition (if (){} else {} )and set the value (this.rawValue = "").
    Otto

  • Getting Error in Adobe Form as Script failed (language is formcalc:context

    Hi Experts,
    While acessing Adobe forms from MSS ,
    After Selecting the Scenario
    After Edit Form
    Before the form is Displayed
    I am getting a POP-UP message stating the following Error.
    Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0]. PCR_PAGE1[0].PCRheader[0].EmployeeDataCI[0].EmployeeDataCIContent[0].EmployeeInfo[0])
    Script=concat($record.ENAME.DATA.FIELD,u201D(u201C,$record.PERNR.DATA.FIELD,u201D)u201D)
    Error: acessor u2018$record.ENAME.DATA.FIELDu2019is unknown.
    Script failed (language is formcalc;context is xfa[0].data[0].RequestSeparationEnhanced[0].PCR_PAGE1[0].PCR_DE[0].PCRDEContent[0].RequestSeparationEnhanceDDLOverlay[0])
    Script=concat($record.MGTXT.DATA.FIELD,u201D(u201C,$record.MASSG.DATA.FIELD,u201D)u201D)
    Error: acessor u2018$record.MGTXT.DATA.FIELDu2019is unknown.
    ENAME & MGTXT are the fields which has to be displayed by default when the form is shown.
    But when the Adobe form is displayed it comes without any Value for ENAME - Employee Name
    MGTXT - Reason for Action Text .
    Please provide me solution to over come this problem.
    Thanking you in advance,
    Suriya.

    This was fixed by commenting the script in the form since I don't require it.
    Suriya

  • Error in simple FormCalc Script

    Hi
    The following script in a checkbox change event returns the error below:
    Z_Lso_BookingData.#subform[0].Subform6.CheckBox1::change - (FormCalc, client) -
    if ( $.value == " 0" ) then
         Subform2.presence = "invisible"
    else
         Subform2.presence = "visible"
    endif
    Error: invalid property get operation; value doesn't have default property.
    Any suggestions what could be wrong? Thanks for responding.
    René Morel

    Hi,
    If I get your problem then you are trying to make the check box visible and invisible based on some parameter.am I right then I would like to suggest to follow the following code in the script editor:
    And if you want to make some text hidden/invisible based on some RFC parameter then try out this code:
    Else if you are comparing on the basis that if the parameter returned is null then this would work.
    In the script Editor try this script on the field in with the following
    Show: initialize
    Language: formcalc.
    Run at: Client
    If ( $.isNull ) then
    $.presence = "hidden"
    endif
    Or try out this  code
    Write this code on superior subform.
    If ( $.<FIELD>.isNull ) then
    $.presence = "hidden"
    endif
    Provided the subform should be in flowcontent.
    If you still see any problems let me know if you require any further help.
    Thanks,
    kris

  • Error in FormCalc Script of Adobe Interactive Forms

    Hi,
    We created certain <b>Custom I.S.R. Scenarios</b> and attached them to Workflows. So in these regards, we had already created the needed forms in Adobe Interactive Forms Transaction(SFP) and launched the Scenario successfully in Enterprise Portal.
    But we have a couple of requirements like during <b>Create</b> mode of the form, I should be able to modify certain contents of the form, and during the <b>Change</b> mode of the form, I should be able to modify certain other fields of the form. So I had opted for <i>FormCalc</i> Scripting in these regards.
    I used the following code...
    if($record.CONTROL_PARAM.ISR_MODE == "CHANGE")     
    then
         this.access = "readOnly"
    else
         this.access = ""
    endif
    Well, I used the same script in two of my forms. For one form, it's working very perfect. But for other form, it's giving the following error..
    Error : accessor '$record.CONTROL_PARAM.ISR_MODE' is unknown.
    I am very much mazed, why the same code behaves in 2 ways in two different forms.
    So can anyone help me in these regards?
    Regards,
    Raja Sekhar

    Hi,
    I solved the problem by applying alternate solution.
    I used Java Script instead of FormCalc Script.
    That cleared my errors.
    Regards,
    <b><i>Raja Sekhar</i></b>

  • Error message using formcalc

    I created my form, used the formcalc, previewed it, and got this message:
    Script failed (language is formcalc; context is xfa[0].form[0].#subform[0].tuitioncost[0])
    script=NumericField8
    Error: accessor 'NumericField8' is unknown
    However, when i "ok"ed it, the formula worked as needed. How can i stop this from popping up so that when others use it, they don't see it?
    The funny thing is - i don't even have a NumericField8 on my form. Wierd... any suggestions?

    Here is the corrected file..
    https://acrobat.com/#d=qEYLU6q6dOvKu-tPN*c*Iw
    There was word "NumericField8" typed in the Form Ready event of the "tuitioncost" field.. I just removed it and the error disappeared..
    Let me know if this helps..
    Thanks
    Srini

  • Error SQL Concat FormCalc

    hello
    I'm starting with FormCalc, and I have my first question.
    line "a" is correct when SelectField field was numeric. BUT I changed the field SelectField to text, and I wrote the line "b" and gives me error.
    You can help me, where I have the error.
    a)
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat("Select * from OfficeSupplies Where ID = ", Ltrim(Rtrim(SelectField.rawValue)) ,"")
    b)
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat("Select * from OfficeSupplies Where ID = ",SelectField.rawValue,"")
    Thank you very much

    hello
    I'm starting with FormCalc, and I have my first question.
    line "a" is correct when SelectField field was numeric. BUT I changed the field SelectField to text, and I wrote the line "b" and gives me error.
    You can help me, where I have the error.
    a)
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat("Select * from OfficeSupplies Where ID = ", Ltrim(Rtrim(SelectField.rawValue)) ,"")
    b)
    $sourceSet.DataConnection.#command.query.select.nodes.item(0).value = Concat("Select * from OfficeSupplies Where ID = ",SelectField.rawValue,"")
    Thank you very much

  • FormCalc Database error

    Decided to bite the bullet and switch the database queries to FormCalc.
    Now getting a group of odd errors.
    Livecycle 8.2.1
    Database SQL or Access (get the same error)
    xfa Version 2.5
    If i try to use Acrobat 8.0 and higher as the target, I get "Error Property: 'commandType" cannot be set because doing so would violate the document's permission settings.
    Ok, add the .clone (1)  to the Ref (xfa.sourceSet.PDataConnection) as recommended for the Javascript version.  So that error is solved.
    Then it gives me an error about the syntax of the closing parenthesis of open ().
    I am confused about gettig this to read.
    Thanks  in advance.
    Patrick

    Hi,
       Try this KBase 1398911 (See below)
    Symptom
    "A database error occurred.  The database error text is:  Error in MDDataSetBW.GetCellData.  See RFC trace file or SAP system log for more details. (WIS 10901)"
    This error occurs when the query contains a structure object and returns no data.
    If the query returns no data, it should show a "No data to fetch" message, not a database error.
    Cause
    This has been identified as a bug in SAP BW
    Resolution
    The issue can be resolved by installing SAP-Notes 1323323 and 1365245.
        Check out the 2 SAP Notes mentioned above, let me know if it doesn't help.
    Regards,
    Ken

  • "Script failed (language is formcalc...)" - "Error: Argument mismatch..."

    Hi there,
    I temporarily switched from JavaScript to FormCalc just to see what functions were available.  It didn't have what I was looking for, so I did not add any functions, I just browsed, then I switched back to JavaScript.  However, now when I view my PDF I get the following error messages which were not there before:
    Any help would be appreciated.
    Thank you.

    What do you do if you didnt create the form?  and also people in other places, offices, can open it with no errors, but everyone in this office is getting errors?

Maybe you are looking for

  • ITunes crashes when I try to burn a cd on an external dvd drive

    My internal DVD writer stopped working.  The cost of a new one was too high.  I just bought an Amazon Basics DVD writer.  It works fine in the Finder.  In iTunes, I can import songs from a CD that is in the drive but it crashes when I try to burn a C

  • Strange clicking noise from hard drive

    My drive just started making this noise in my MBP today. Never heard this before. My drive has always been very quiet. Now ever couple to few seconds I'm hearing this click-like noise. No performance issues yet but I work on computers for a living an

  • MacBook Pro dont wake up properly

    I have activated hot corner on my Macbook Pro 17" when I leave my desk for a short time I bring the mouse on hot corner and it goes to sleep. Some time when I move my mouse screen will be lightened and mouse will be visible but login screen wont come

  • Dual 27" ACDs with MacPro

    I am trying to set up 2 new 27" Apple Cinema Displays with an older MacPro. I have the default video card with 2 DVI-D Dual link outs ( female ). The ACDs have only the Apple Mini Display ( male ) for connection. For the life of me I can't find the p

  • Resource Status shows as provisioned even when task is rejected

    Hi, We have 5 tasks for resource provisioning. The last task gets rejected but still the Resource Status shows as Provisioned instead of Provisioning. In each and every task, I have mapped the response as below: C- Provisioned R-Provisioning Please l