Getting javascript error while opening offline adobe forms sent via email.

ERROR: script failed(language is formcalc,context is xfa[0].form[0].data[0].FORM[0].
              script = BODY.instanceManager.addInstance(1);
              Error:accessor "BODY.instanceManager.addInstance(1)" is unknown.
I have written the code in Javascript and run at client.
Below is my sample code:
var nlength = ROW.BODY.nodes.length;
var nrow = 0;
for(var nCount=0;nCount<nlength;nCount++)
{nrow = nrow + 1;}
if (nrow == 7)
xfa.host.messageBox("Maximum allowable rows is 7","Warning",3);
else
{ROW.BODY.instanceManager.addInstance(1);
xfa.form.recalculate(1);
xfa.host.messageBox("Row added");}
Rows are getting added.
I am not getting the problem,Pls help me.

Hello all,
            Thanks for your replies.
I have made Show -> click and Language -> Javascript and Run at -> Client  for the button 'ADD'(this button inserts line) and in the blank space i have written the code as stated above.
Then,i have activated the form.
As per the Submit button it is working fine...
I am new to adobe forms and i have done a self-training for this..
Maybe I am doing something  wrong...
Pls help.
Thanks and regards,
Raka.

Similar Messages

  • Error while opening the ADOBE FORM via mail

    Hi to all,
    I have created a program to attached ADOBE FORM to mail.
    When I execute the program, it sends ADOBE FORM to my mail ID successfully.
    But when I open my mail and try to open attached ADOBE FORM, it gives error
    ADOBE READER COULD NOT OPEN u2018PDF FORM (1). PDFu2019 because it is either not a supported file type or because the file has been damaged ( for example, it was sent as an email attached and wasnu2019t correctly decoded).
    Please can any tell me, what the problem is and what the solution is for that?
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 1, 2011 2:22 PM

    Thanks for reply,
    below is the code.
    data:
      l_fm_name         TYPE rs38l_fnam,
       l_formname   TYPE fpname VALUE 'ZTESTF1' ,
      fp_docparams      TYPE sfpdocparams,
      FP_FORMOUTPUT     TYPE FPFORMOUTPUT,
      fp_outputparams   TYPE sfpoutputparams.
    data:  I_ATT_CONTENT_HEX  type SOLIX_TAB.
    START-OF-SELECTION.
    data: st  TYPE  ZTABFM11.
    data: it type table of sflight.
    data: wa like LINE OF it.
    data: wa_st like LINE OF ST.
      fp_docparams-langu   =      'E'.
      fp_docparams-country =      'US'.
      fp_docparams-fillable =      'X'.
      fp_outputparams-nodialog = 'X'.
      fp_outputparams-preview =   'X'.
      fp_outputparams-device   =  'LP01'.
      fp_outputparams-getpdf  =   'X' .
      fp_outputparams-dest   =    'LP01'.
      fp_outputparams-reqimm  =   'X'.
      fp_outputparams-reqdel  =   'X' .
      fp_outputparams-xfpoutdev = 'LP01'.
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = l_formname
        IMPORTING
          e_funcname = l_fm_name.
      E_INTERFACE_TYPE           =
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4
          OTHERS          = 5.
    select * from sflight into TABLE it.
      loop at it into wa.
        wa_st-CARRID = wa-CARRID.
        wa_st-CONNID = wa-CONNID.
        wa_st-FLDATE = wa-FLDATE .
        wa_st-PLANETYPE   = wa-PLANETYPE.
        append wa_st to st.
        endloop.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = fp_docparams
              st               = st
        IMPORTING
          /1BCDWB/FORMOUTPUT = FP_FORMOUTPUT
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3
          OTHERS             = 4
       CALL FUNCTION 'FP_JOB_CLOSE'
      IMPORTING
        E_RESULT             = result
       EXCEPTIONS
         usage_error          = 1
         system_error         = 2
         internal_error       = 3
         OTHERS               = 4
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER                = FP_FORMOUTPUT-PDF
      APPEND_TO_TABLE       = ' '
    IMPORTING
      OUTPUT_LENGTH         =
        TABLES
          BINARY_TAB            = I_ATT_CONTENT_HEX  .
    CLASS cl_bcs DEFINITION LOAD.
      DATA:
      lo_send_request TYPE REF TO cl_bcs VALUE IS INITIAL.
      lo_send_request = cl_bcs=>create_persistent( ).
    Message body and subject
      DATA:
      lt_message_body TYPE bcsy_text VALUE IS INITIAL,
      lo_document TYPE REF TO cl_document_bcs VALUE IS INITIAL.
      APPEND 'Dear,' TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Fill the details.'
      TO lt_message_body.
      append ' ' to lt_message_body.
      APPEND 'Thank You,' TO lt_message_body.
      lo_document = cl_document_bcs=>create_document(
      i_type = 'RAW'
      i_text = lt_message_body
      i_subject = 'flight details' ).
      DATA: lx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL.
      TRY.
          lo_document->add_attachment(
          EXPORTING
          i_attachment_type = 'PDF'
          i_attachment_subject = 'flight details'
    I_ATTACHMENT_SIZE =
    I_ATTACHMENT_LANGUAGE = SPACE
    I_ATT_CONTENT_TEXT =
    I_ATTACHMENT_HEADER =
          I_ATT_CONTENT_HEX  = I_ATT_CONTENT_HEX  ).
        CATCH cx_document_bcs INTO lx_document_bcs.
      ENDTRY.
    Add attachment
    Pass the document to send request
      lo_send_request->set_document( lo_document ).
    Create sender
      DATA:
      lo_sender TYPE REF TO if_sender_bcs VALUE IS INITIAL,
      l_send type ADR6-SMTP_ADDR value 'mail id '.
    lo_sender = cl_cam_address_bcs=>create_internet_address( l_send ).
      lo_sender = cl_sapuser_bcs=>create( sy-uname ).
    Set sender
      lo_send_request->set_sender(
      EXPORTING
      i_sender = lo_sender ).
    Create recipient
      DATA:
      lo_recipient TYPE REF TO if_recipient_bcs VALUE IS INITIAL.
    lo_recipient = cl_sapuser_bcs=>create( sy-uname ).
      lo_recipient = cl_cam_address_bcs=>create_internet_address( l_send ).
    Set recipient
      lo_send_request->add_recipient(
      EXPORTING
      i_recipient = lo_recipient
      i_express = 'X' ).
    lo_send_request->add_recipient(
    EXPORTING
    i_recipient = lo_recipient
    i_express = 'X' ).
    Send email
      DATA: lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
      lo_send_request->send(
      EXPORTING
      i_with_error_screen = 'X'
      RECEIVING
      result = lv_sent_to_all ).
      COMMIT WORK.
      message 'Form sucessfuly send to person' type 'I'.
    plesase can any one, provide the soultion.
    i shall be thankful toy you for this.
    regards
    pavneet rana

  • JavaScript Error While Opening DW CS4

    After a recent Adobe update, I now recieve the below JavaScript error while opening Dreamweaver.  Note I am not opening up any files, just the application itself, which leaves me a bit perplexed with what to do.
    While executing onLoad in_onOpen.htm, the following Java Script error(s) occurred:
    in file "_onOpen";
    onOpen is not defined
    Any suggestions would be appreciated.  I did a quick search in the forum and couldn't find anything directly applicable.

    Actually, the solution is posted several times a week if not more.
    Troubleshooting JavaScript errors in Dreamweaver
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19105#dat
    Try #4 or #12 first.

  • Getting below error while opening query in bex  3.5x

    Dear Guru's
    I am getting below error while opening query in bex  3.5x
    The following object were not found when accesing the server .
    Press repair to correct the problem (included parts of query deleted) press cancel to undo the last action.
    Regards
    Karan

    Hi,
    1) When a query administrator with the sufficient authorization (sap_all or the * authorization for the field in the authorization object) is creating the query in query designer including the 'attributes' which are not visible with the 'normal' authorizations, the query will not list the columns in the output when it is executed by the normal user.
    2) so create an authorization object for each of these attributes with * (full authorization)
    Regards,
    Marasa.

  • Getting Error While Opening the Oracle Form 6i in 10g

    Hi All ,
    FRM-10102: Cannot attach PL/SQL library XXX. This library attachment will be lost if the module is saved.
    I am getting above error message while opening Oracle 6i Form in 10g.
    I get the following Alert message when I try to attach the library to my form -
    Attached library name
    S:\.........xxx.pll contains non-portable directory specification. Remove path? Yes/No?
    If I select 'No', the Form compiles and runs without any error.
    But if I select 'Yes', I get the following error message:
    FRM-40039: Cannot attach library xxx while opening form.
    All files (fmb, fmx, pll, plx) are on the same path. I detached and then re-attached the library but this didn't work for me?
    Help Appreciated.
    Thanks & Regards,
    Ram.

    use the shiped batch program frmplsqlconv.bat to convert all your forms/librarys from Forms 6i to 10g.
    you can call it in wizard mode from the start menu (e.g. OracleDeveloperSuite <OraHome> => Forms Developer => Forms Migration Assistant (GUI Mode) and follow the instructions step by step
    or you can call it by batch to convert all your forms/librarys. The batch file is found in
    <ORA10g_HOME>BIN\frmplsqlconv.bat
    =>
    frmplsqlconv.bat <formname>

  • Error in opening the adobe form to create a PCR

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

    Hi,
    I m getting an error while i open the adobe form to create a PCR as follows.
    Script failed. accessor '$record.ENAME.DATA.FIELD' is unknown.
    Please help.
    <b>Points are sure.</b>

  • Error while opening a standard form in apps11i

    while opening a po form POXPOEPO thru form builder, error is showing that some objects are unable to load.
    how to rectify that can someone help it out

    Have a look at this Re: URGENT: Forms 6i error

  • Getting correlation error while opening document library in SharePoint 2010

    Hi,
    I installed SQL Server 2008 R2 SP1 and SharePoint 2010 on Windows Server 2008 R2. Everything went fine for first days. Now I am getting error while opening any of the document libraries. However lists are opening fine.
    Error:
    An unexpected error has occured.
    Troubleshoot issues with Microsoft SharePoint Foundation
    Correlation ID: fa54267f-4436-8298-c7698977728c
    I checked the logs, I showing some error with the line http://Microsoft.Office.Server.UserProfiles/GetProfileProperties
    Please let me know if you have any idea about this error or let me know if you need further inputs from me. Thanks.

    Hi Tarique,
    Whether you have granted the user proper permissions on this site. You should make sure the user has permissions on the site.
    In addition, there are some reasons for the log-in issue, please take a look at:
    http://sharepointsolutions.blogspot.com/2008/06/how-do-i-make-our-sharepoint-site-stop.html
    http://sharepointsolutions.blogspot.com/2008/06/how-do-i-make-our-sharepoint-site-stop_17.html
    http://dinesql.blogspot.com/2011/01/cannot-login-to-sharepoint-2010-site.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error :-The requested resource does not exist while opening the adobe form

    hello Experts,
    We are in Portal implementation face with ECC6 EHP4 and Portal EHP1
    We have developed adobe  form using HCM forms and processes and done the required configuration in SPRO
    When we are trying to open the form from ESS we are getting below error
    404 not found
    The requested resource does not exist.
    Please look into this issue and let us know any thing we are missing
    Sincerely
    Paresh

    is ADS working correctly?
    1.  Use transaction SA38 to execute the program FP_TEST_00.
           Detailed information about this test program and about how you
           should then proceed is given in the Adobe Document Services
           Configuration Guide in the Help Portal under:
           http://help.sap.com/saphelp_nw2004s/helpdata/en/37/504b8cbc2848a4
           94facfdc09a359b1/frameset.htm -> Adobe Document Services
           Configuration Guide -> Configuring the Web Service -> Securing
           Access to the Web Service ->Configuration Check -> Configuration
           Check for PDF-Based Forms in ABAP
           -  If the FP_TEST_00 form is displayed in the print preview, the
              ADS configuration is correct.
              -> If you use scenarios with an interactive PDF, proceed with
              point 5. Otherwise, proceed with the test under point 6.
           -  If the system displays an error message instead of a form, the
              configuration of ADS is incorrect.
              -> Carry out the additional tests from point 2 onwards.
    2.  Use transaction SA38 to execute the program FP_PDF_TEST_00.
        This enables you to check the RFC connection to ADS  (see the
        reference to the documentation given above).
           -  If the system displays the version number of ADS, the
              configuration of the RFC connection is correct.
    read the note 944221
    Please paste the whole error? Is any dump in ST22

  • Error while submitting offline Interactive forms to GP

    Hello experts,
      I get the following exception when i press the 'submit' button of the interactive form. The required configuration is correct and the URL generated is also correct.
    "Error while processing document via ADS
    com.sap.caf.eu.gp.base.exception.EngineException: Error while processing document via ADS
    at com.sap.caf.eu.gp.model.iforms.adapter.pdf.AdobePDFAdapter.processPDF(AdobePDFAdapter.java:825)
    Any help would be apreciated.
    regards,
    Anup

    Hi Hanoz,
    As you said, I have created an online application with 2 input fields. Name and CostCenter. I am saving the blank pdf on my desktop. In another project i have 2 views. Upload and Form View. In Upload View, using a FileUpload, i am able to fetch the pdf from desktop and on action of submit, it goes to Form view. The Form is opening with the Data which i entered Offline. Thatz because i gave (Interactive Form Mode - "UsePDF". If i give UpdateDatainPDF, it is showing a blank pdf. Hence i used "USEPDF". After that i have a Submit button to which an "ONACTIONsubmit" is mapped to Interactive Form PDF submit property. 
    OnactionSubmit()
    wdComponentAPI.getMessageManager().reportSuccess("hai");
    String name = wdContext.currentTravelDataElement().getEmployeeName();
    String costcenter = wdContext.currentTravelDataElement().getCostCenter();
    wdThis.wdGetAPI().getComponent().getMessageManager().reportSuccess("Form submitted: Name="+ name+ " costcenter="+ costcenter +"");
    PDF
    Name - Form
    CostCenter - 1000
    Initially if i click Submit, Output Comes as ......
    hai
    Form submitted: Name=null costcenter=null
    If i enter some space inside the name field like name - "Form " or even "Forma".....
    the output  comes as
    hai
    Form submitted: Name=Form costcenter=1000 (though i have used interactive form mode=usepdf).
    or
    hai
    Form submitted: Name=Forma costcenter=1000    (though i have used interactive form mode=usepdf).
    If i enter some value inside the form field, how it is able to take the correct value on action submit. I tried many blogs. But i am not able to fetch the values unless i change the field values inside the form? What else can i do? how did your project work? Can you please help in resolving this issue?
    Thanx and Regards,
    Divya

  • Error while opening the custom forms-''function not available to this respo

    Error: Function not available to this responsibility , change responsibility or contact ur system administrator
    Hiiiii,
    While accessing the custom forms in release 12i we are facing the popup error and the form is not getting opened up: "Function Not available to this responsibility. Change Responsibilities or Contact your System Administrator"...
    I check the custom top path in $APPL_TOP/admin/adovars.env... its fine there..
    but the $Apache_top is not there...
    can u plz tell me the solution....
    Thanks
    Meenakshi Verma

    user609981 ,
    If ur referring to forms, u need to search in appropriate forum, as this forum is only for OAF queries, and if its realted to OAF page, check the the function of oa page is attached to the specific responsibilty .
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Error while calling a adobe form?

    Hi All,
    in my webdynpro component , i am calling adobe form.but  i am getting error as mentioned below.
    Error when processing your  request .......
    Webdynpro Exception:The ADS call has failed.you can find information about the
    cause in the error.pdf on the application server.
    why this error coming? even when i  execute a standard application also i am getting this.why?
    Regards,
    lakshmi.

    Abhi
    I too got the same error:
    WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.
    I refered the link provided by you for testing the ADS configuration and it displayed a 2 page report.
    Is that mean that there is a problem in my form?
    Regards
    Vijai

  • Getting javascript error while selecting the Recipients in OBIEE delivers.

    Hi All,
    I am working on OBIEE from quite a long time, but recently I came across a error while selecting the Recipients in Recipients list of OBIEE delivers.
    Making it more comprehensive, when I try to create an ibot , after entering all necessary information when I select Recipients in Recipients list and click on ok. I get a JavaScript error "null" is null or an object. The surprising thing is when i select cancel it works as ok.
    Any help will be highly appreciated
    Thanks,
    Jyoti
    Message was edited by:
    user616430

    I think you dont have a field named /BIC/XXXXXX in the table from which you are trying to fetch the data. Chech the spelling of the field name and table name.

  • Getting some error while opening our plugin in InDesign CC Debugger

    Hi,
    We are loading XML file using our plugin. After opening Indesign documents (Created using the same XML), we have refreshed the tree(using our plugin option). We are getting the below mentioned asserts,
    1. Direct model change to database without transaction. Either process a command or call a utility or facade interface that does what you want, or implement your own cmd if none exist.  Generally, DON'T just call IDataBase::BeginTransaction()/EndTransaction.
    2. Comparing translated string to non-translated string!(Strings are '\\New Technology\37_NATURE2.jpg' and '\'
    Please help us to fix this issue.
    Thanks,
    Vimala L

    Hi,
    2) Comparing translated string to non-translated string, most likely comparing 2 PMStrings, one of them has settranslatable as kFalse.
    Thanks for your reply..Already we have set the settranslatable as kFalse. But getting this error.
    bool16 SampleTVWidgetMgr::ApplyNodeIDToWidget(
      const NodeID& node, IControlView* widget, int32 message) const
      CTreeViewWidgetMgr::ApplyNodeIDToWidget(node, widget);
      do
      // If this node doesn't have any children, don't show expander Widget
      InterfacePtr<IPanelControlData>
      panelControlData(widget, UseDefaultIID());
      ASSERT(panelControlData);
      if(panelControlData==nil) {
      break;
      // Set expander widget to hidden state if this node has no kids
      IControlView* expanderWidget = panelControlData->FindWidget(kTreeNodeExpanderWidgetID);
      ASSERT(expanderWidget);
      if(expanderWidget == nil) {
      break;
      InterfacePtr<const ITreeViewHierarchyAdapter>
      adapter(this, UseDefaultIID());
      ASSERT(adapter);
      if(adapter == nil) {
      break;
      if (expanderWidget) {
      if (adapter->GetNumChildren(node) <= 0) {
      expanderWidget->HideView();
      else {
      expanderWidget->ShowView();
      IControlView* iconView =
      panelControlData->FindWidget(kSampleIconWidgetId);
      ASSERT(iconView);
      if (iconView == nil) {
      break;
      TreeNodePtr<SampleFileNodeID> nodeID(node);
      ASSERT(nodeID);
      if(nodeID == nil) {
      break;
      PMString nodePath =  nodeID->GetPath();
      this->setIconForContent(iconView, nodePath);
      IControlView* displayStringView =
      panelControlData->FindWidget( kSampleNodeNameWidgetID );
      ASSERT(displayStringView);
      if(displayStringView == nil) {
      break;
      InterfacePtr<ITextControlData>
      textControlData( displayStringView, UseDefaultIID() );
      ASSERT(textControlData);
      if(textControlData== nil) {
      break;
      PMString stringToDisplay(SampleUtils::TruncatePath(nodePath));
      if(stringToDisplay.empty()) {
      stringToDisplay="Empty?";
      stringToDisplay.SetTranslatable( kFalse );
      textControlData->SetString(stringToDisplay);
      // Adjust indenting- this may be temporary
      this->indent( node, widget, displayStringView );
      } while(kFalse);
      return kTrue;
    Thanks,
    Vimala L

  • Error while opening supplier/customer forms and payment manager templates

    we are having 11.1.0.7 database and 12.1.1 E-business suite with 10.1.2.3 forms
    user is getting
    Error Page
    You have encountered an unexpected error. Please contact the System Administrator for assistance.
    while accessing supplier/customer forms and payment manager templates and this gets resolved after bouncing the application. the current instance is a staging one and this will be replicated to production so please help or suggest any solution or work around
    thanks
    pankaj

    There should be a link on the error page for further details about the error. Can you post the contents of that error link page ?
    Pl also check the Apache logs for any errors - see MOS Doc 419839.1 (How to enable Apache, OC4J and OPMN logging in Oracle Applications R12) for name and location of the Apache log files.
    HTH
    Srini

Maybe you are looking for