Add Subform dynamically,in Interactive form in WebDynpro

HI,
I an using NW2004s SP9  and have an Interactive form designed by Adobe Designer 7.1 from within the NetWeaver Developer Studio, with the following hierarchy of elements:
-form1(root)
--Button
--tmpForm (subform - Repeat subform for each data entry )
---ST (Text)
The Webdynpro application displays the Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
On click of button, the following javascript is executed on client side:
var df = _tmpForm.addInstance(1);
df.ST.rawValue = "HI"  ;
xfa.host.messageBox( "Instances" +  tmpForm.all.length ) ;
On clicking the button, i get the number of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0, and open it using Adobe Acrobat PRO 8.0, it works fine.
My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
Or, is there something that i am missing?
Please guide.
Thanks.
Regards,
Siddhartha

HI Dezpo,
Thanks a lot for replying.
I had checked the updated <b>SAP Note 834573</b> -Interactive Forms based on Adobe software: Acrobat/Reader version, which states that:
For SAP Interactive Forms by Adobe, you require the following:
Adobe Acrobat as of Version 7.0.9
Adobe Reader as of Version 7.0.9
<b>Important:</b>
Note that you can only have limited use of Reader 8.0 for forms that, at runtime, are integrated in a WebDynpro application through the xACF technology (Active Components Framework). In this runtime environment, Reader 8.0 currently only supports static interactive forms. If you are using <b>dynamic interactive PDF forms</b>, we recommend that you use <b>Reader 7.0.9.</b> In the application, you can use parameters, or you can call methods, to determine whether you want to create a static or dynamic PDF form.
I tried with the reader versions - 7.0.7,  7.0.9 and 8.01, but it doesn't work for either of them.
Regards,
Siddhartha Jain

Similar Messages

  • Dropdown List in Adobe Interactive Form Using Webdynpro ABAP

    Hi Pals,
    In my scenarion I need to list the Rating Code in the Dropdown list box of the Interactive Form.
    Form Created by using SFP transaction
    Not XML Schema interface
    Passing the values to the Form by using the default function module that which created automatically while creating the Form
    Am binding the Field and also binding for the list Item. Even though the values are not listing.
    $record.sap-vhlist.<Field name>\.DATA\.FIELD.item[*]
    I have followed the above format , but no use ...
    Field Name : rating_code
    $record.sap-vhlist.RATING_CODE\.DATA\.FIELD.item[*]
    Field Name : value
    $record.sap-vhlist.VALUE\.DATA\.FIELD.item[*]
    but it is not working for me, will appreciate if some one really help me to fix this.!!!!
    Thanks & Regards
    Andy.

    For the form buttons to work on-line in your WebDynpro app, you need to change the PDF form to be Dynamic:
         if(firstTime){
              // We need to set the PDF to be Dynamic, for the form JavaScript code to work
              IWDPDFDocumentInteractiveFormContext pdfContext =
              WDPDFDocumentFactory
              .getDocumentHandler(wdThis.wdGetAPI(), "InteractiveForm")
              .getDocumentContext();
              pdfContext.setDynamic(true);
    In this code segment, "InteractiveForm" is the UI id.
    I was able to get that far, but I although I add subforms dynamically via javascript, the mapped WebDynpro context node doesn't pick up any new elements.
    ie:  if I start with two WD context elements (0..n) cardinality, then add a third via the form JavaScipt button, I see changes only in the two context elements when I submit.  A third context element isn't created or populated.

  • Add Subform dynamically,on click of Button, in Interactive form generated by Adobe Document Services

    HI,
    I have an XDP file designed by Adobe Designer 7.1 with the following hierarchy of elements:
    -form1(root)
    --Button
    --tmpForm (subform - Repeat subform for each data entry )
    ---ST (Text)
    Now, this XDP file generates an Interactive PDF form with Reader Rights enabled by the Adobe Document Services.
    On click of button, the following javascript is executed on client side:
    var df = _tmpForm.addInstance(1);
    df.ST.rawValue = "HI" ;
    xfa.host.messageBox( "Instances" + tmpForm.all.length ) ;
    On clicking the button, i get the length of the instances of the subform and the size increases on each click, but no element is added "visibly" to the pdf.
    But when i try to do the same by saving the XDP file as Dynamic PDF form for Acrobat 8.0,and open it using Adobe Acrobat PRO 8.0, it works fine.
    My question is,I s it not possible to add subforms dynamically in PDF's generated by Adobe Document Services with Reader Rights enabled?
    Or, is there something that i am missing?
    Please guide.
    Thanks.
    Regards,
    Siddhartha

    Hi,
    you can't change the behavior of the save button in the browser nor in Reader/Acrobat.
    You can add a custom button within your form which calls a custom script from a folder level script using the browserForDoc method.
    The browseForDoc methos is the only one whcih can change the name in the saveAs dialog.
    Here's an example., you can run from Acrobat console.
    You need to combine it with the solution from the other thread to make it work with your form.
    http://forums.adobe.com/message/2266799#2266799%232266799
    var oRetn = app.browseForDoc({
        bSave: true,
        cFilenameInit: "MyForm.pdf",
        cFSInit: "",
    if (typeof oRetn !== "undefined") {
        this.saveAs({
            cFS: oRetn.cFS,
            cPath: oRetn.cPath,
            bPromptToOverwrite: false

  • Use of pdfSource in Interactive Forms in webdynpro

    hi,
    please let me know the use of "<b>pdfSource</b>" property while designing the Interactive form in webdynpro. i tried with and without creating the pdfSource property in my application and still there were no errors while deploying it.
    Thanks
    Regards
    Poojith M V

    Hello Poojith M V,
    Let me answer your query in a little bit more details. The statement first: An interactive form can be rendered with or without a pdfSource attribute.
    But there are significant differences in the way they work and the application is designed. When you have the pdfSource bound to a context attribute of type binary, you do a PDF interchange between the browser and the server. The whole point is that you will always have the latest PDF document (binary) available in that context attribute on the server and you can make use of this binary PDF to do anything your apllication requires (saving it onto the file system, storing it into the database, performing some other operations on the server, email it etc etc etc).
    Now, the other side of it, when you do not have the pdfSource bound to a context attribute, only XML exchange happens in between the browser and the server. Well, that means you only have the latest XML data available on the server at any point in time and since you have not bound the pdfSource, you do not have the binary PDF available to you through the context. There are ways you can get it but not through the context and not the latest one. It would still contain the initial data it had in the first request response cycle as you have not updated the PDF after that.
    Now, the question is, which one to use ? It completly depends on your application requirements. There are certain functionalities which are not possible without having the latest PDF binary in hand. For example, you want to apply a digital signature on the document, you want to add an attachment on the document etc. But, then in most  of the scenarios, the application would just need to exchange data between the client and the server (and vice versa) and do not worry about the binary PDF. That is the ideal case when you need not bind the pdfSource. It will be faster as well.
    Hope that clarifies your doubt to certain extent. Go ahead and start with you interactive form application.
    Best Regards,
    Krish

  • Unable to test Adobe interactive form from webdynpro

    This is the out put i get when i test run the report 'FP_TEST_IA_01'.As suggested in SAP NOTE : 999998
    ADS: com.adobe.ProcessingException: Could not retrieve a password for credential: ReaderRights(200.101).
    Actually i was trying my first Adobe interactive form with webdynpro and when i tested it i got this message.
    The following error text was processed in the system NED : WebDynpro Exception: The ADS call has failed. You can find information about the cause in the error.pdf on the application server
    Does Adobe interactive form requires Java stack to be active??
    Or is it only a configuration issue in ADS???
    What all should i take care in order to successfully run an adobe interactive form???
    Regards,
    Venkar Raghavan

    Dear Abhishake,
    Thanks for your reply.
    I had gone through the link you had mentioned detailly.what i understand that is ZCI needs to be installed thats comming with Support pack SAP NetWeaver SPS 10 .
    Will this also take care of ADS configuration.Where can i find a guide to ADS configuration and ZCI installation.
    When i ran a report check FP_CHK_REPORT below is the output i got.can you please throw more light on this.
    ISR      Prepare ISR templates for ZCI migration             ISR-001   Prepare ISR templates for ZCI migration
    ZCI      SAPForms API to Zero-client template migration ZCI-002   Update enumerated DDL XFO bindItems node reference
    ZCI      SAPForms API to Zero-client template migration ZCI-003   Copy enumerated DDL XFO form:ready non-Adobe scripts to the layout::ready ev
    ZCI      SAPForms API to Zero-client template migration ZCI-004   Add an XFO name to each of the embedded P1 Enumerated DDL XFO event handlers
    ZCI      SAPForms API to Zero-client template migration ZCI-001   SAPForm API to Zero-Client template migrator
    Regards,
    Venkat

  • How to create interactive forms using Webdynpro for ABAP

    Hi All,
             I have worked on Webdynpro for ABAP, and now I want to start creating adobe interactive forms using Webdynpro for ABAP. Please provide me with basic examples to start.
    Also Please provide me introduction as how interactive forms are related to ISR senarios.
    Thanks in Advance.
    Phani

    Hi Varun!,
    Can you please send me also the above said step by step tutorial on [email protected]
    and can you please also guide me any configurations to be done on Sneak Preview SP12 before developing the interactive forms.
    Thank you in advance.
    regards
    Ravi

  • Interactive Forms by WebDynpro for ABAP

    Hello,
    I'd like to create Adobe Interactive Forms by "WebDynpro for ABAP".
    Our business requirements are
    - to download offline PDF forms.
    - to upload PDF forms and display Forms online.
    Please let me know how to do this and the document or blogs.
    Best regards,
    Koji

    Hi,
    Downloading a form is as simple as when u enduser opens a form online, he just saves a copy of it, fills it up and uploading is just the next step.
    If u want to upload an offline PDF form:
    Here's the link that'll give a fair idea about this:
    /people/shruti.rathour/blog/2008/02/07/uploading-sap-interactive-form-on-the-abap-webdynpro-view
    If still not clear ask me..
    It's just that u've created a view in webdynpro ABAP and uploading an offline form from that.
    regards
    Amita

  • Using Interactive forms in Webdynpro Abap

    Hi all,
    I need to learn using Interactive forms in Webdynpro Abap. Can any please tell me from where to start with and what are the things that needs to be installed extra in the client system.
    Also please tell me where i can get the tutorials on it..
    Thanks,

    Hi,
    try this.
    You can download the Adobe LiveCycle Designer installer from SAP Service
    Marketplace:                                                                               
    http://service.sap.com/installations                                                                               
    Entry by Application Group                                              
    -> SAP NetWeaver                                                        
    -> SAP NETWEAVER                                                        
    -> SAP NETWEAVER 2004S                                                  
    -> Installation and Upgrade                                             
    -> <Choose any OS and DB combination.>                                  
    -> Adobe LiveCycle Designer 7.1                                                                               
    Download this file and extract it to your local hard drive.             
    Regards, Heidi
    PS: See <a href="https://service.sap.com/sap/support/notes/962763">note 962763</a>
    Message was edited by:
            Heidi von Geisau

  • How to add table in SAP Non interactive forms in webdynpro java

    Hi Experts,
    I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
    This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
    Please suggest.
    Thanks,
    Rajani
    Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AM

    Rajani,
    Take a look at below links, it will help you.
    [Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
    [Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
    [How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
    [How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
    Chintan

  • Hiding fields and subforms on interactive form for WebDynpro ABAP

    Hi All:
    I'm new to using interactive forms and I am creating a new form for material request.  I need to hide selected fields based on the value of other fields.  I also need to hide subforms the same way.
    I have added the formcalc script to hide the field which apperas to work.  But is I remove the field value, the hidden field is not made visible.  This also applies to the hiding of the subform.  I have tried the code at different events but no luck.  If I enter 'KINC' in the plant field, the KINC_TAX_IND is visible. But if I remove or change the value, the KINC_TAX_IND is not being made visible.
    Below is the code I am using:
    if ( PDF_DATA.#subform[0].PLANT.value == "KINC" ) then
    PDF_DATA.#subform[0].KINC_TAX_IND.presence= "visible"
    else
    PDF_DATA.#subform[0].KINC_TAX_IND.presence= "hidden"
    endif
    if ( PDF_DATA.#subform[0].PLANT.value == "" ) then
    PDF_DATA.#subform[0].Subform2.presence= "hidden"
    else
    PDF_DATA.#subform[0].Subform2.presence= "visible"
    endif
    Thanks for any help.
    Jim
    Edited by: Jim Bates on Jan 23, 2008 3:47 AM

    HI jim,
      TRY TO APPLY THE CODE ON INITIALIZATION EVENT OF THE FORM.
    Madhu

  • How to add Table element in PDF form in Webdynpro

    Hello Everybody,
    I am developing one application in Webdynpro using PDF form in it. I wantable control in PDF form. I read somewhere that we can add table control in PDF form. But i didnt find how to add the same. So if anybody knows then please help me.
    Thanx in advance...
    Bhavik

    Hi All,
    Please follow these steps to create tables in adobe interactive forms.
    Lets us take this example. We want to display employee information. The following fields are the one that we are going to display:
    1. employeenumber
    2. First name
    3. last name.
    First insert a "interactive form UI element" in the view. Create a value node and bind it to the data source of the UI element.
    Create a subnode called "Employee".
    Create 3 value attributes to display the 3 values.
    Open the form designer. Insert a subform. change its type to "flow content"(default is position content) and in the next drop down, choose the value as type "table".
    insert one more subform into this subform. change its type to "flow content" and from the dropdown, choose the value as "table row" and in the tab "binding", click the checkbox "min" and have its value as 1.
    now drag the elements from the data hierarchy into the second subform.
    save the form in the designer.
    go to the view implementation and populate the nodes with the value. if this is within a loop, the content of the second subform is repeated giving the user a "table".
    I hope the steps are clear.
    Regards,
    Chander

  • About dynamic offline interactive form

    I have a request for working with pdfs in netweaver java, but the requisites are quite tight and I don't know if it will be possible to achieve with interactive forms.
    I need to:
    1- Generate a pdf file (many in fact) using preloaded data from backend for offline use.
    2- The pdf must be interactive so the user can introduce new data or modify the preloaded data.
    3- The user should be able to change dynamically the format of the pdf: add rows to tables, make visible/invisible parts of the document, fire different events...
    4- The user should be able to save his work in the file including the format (if he has added rows to a table or made invisible an object it should be saved).
    5- The user should be able to send the data to the server through a send button.
    In short, strange as it may sound, I need to simulate a web dynpro application using an offline pdf.
    I've been searching and I think 1 and 2 are not a problem. I would just need to use a template created in LiveCycle Designer and link the data source to Web Dynpro context. Please correct me if I'm wrong.
    I think 3 can be done using scripting and events set in LiveCycle Designer, though I have 0 experience with it.
    I don't know if I can achieve 4. From what I've read dynamic content can't be saved. That is, if the user changes dynamically the pdf format and saves it will be lost when opened again. Is it true?
    I don't know about 5 either. With online interactive form of course, but with offline? I've seen examples that use and upload control in a Web Dynpro application as an alternative but I'd like to avoid that if possible.
    I'd like to get some indications about if these points can be done or not, if possible with some references that illustrate it (links to blogs, sap help...)
    Some tips and references about how to implement the different parts of this scenario (specially from point 3 and beyond) would be really welcome.
    Thanks in advance.

    Almost all things you mentioned are quite possible with Adobe Forms.
    1- Generate a pdf file (many in fact) using preloaded data from backend for offline use.
    You can do this by creating a Interactive Form using ABAP or create an online form using WD ABAP and just save the required form when done to be used for offline use
    2- The pdf must be interactive so the user can introduce new data or modify the preloaded data.
    You need to have Adobe forms License in case you want your forms to be interactive. In ABAP I think in the driver program you need to set FILLABLE = X or something like that and for WD there is enabled property which needs to be set true.
    3- The user should be able to change dynamically the format of the pdf: add rows to tables, make visible/invisible parts of the document, fire different events...
    The user can add rows to table and depending upon conditions you can set the required fields as visible/invisble
    4- The user should be able to save his work in the file including the format (if he has added rows to a table or made invisible an object it should be saved).
    If your form is fillable and interactive the data can be saved by end user.
    5- The user should be able to send the data to the server through a send button.
    There are different types of Submit options available. You can use Submit by email so that the user can submit the form via email.
    Also I would strongly advise just try Search on forum and I am sure that you would get plenty of links/examples to work with.

  • E-mails with Interactive Forms by WebDynpro for ABAP

    Hello,
    I plan to use WebDynpro for ABAP and Adobe Interactive Forms.
    I want to send e-mails with PDF files which are created by Interactive Forms.
    Please let me know
    - How to send e-mails by WebDynpro for ABAP
    - How to attach PDF files.
    Best regards,
    Koji

    Thanks,
    I checked WDR_TEST_MAILT, but I want to know is
    how to send e-mails using ABAP method because
    in my case addresses and some data are stored add-on tables, and extract them on e-mails.
    Regards,
    Koji

  • Adobe Interactive Forms with Webdynpro

    Hi,
    I created Adobe form with Webdynpro with some fields for entry and submit button. when i am running on browser, fields are coming as display mode, i can't enter values nor submit button is working.
    Any help is appreciated.
    Thanks.

    Hello,
    Do you have your form dynamic? You need to have to be able to push button. And do you have your form interactive? (In WD it is "enabled"). You need to to use it as UI there and back, not only for printing. What type of framework you use? ActiveX or ZCI? If ZCI, insert WD script. Regards, Otto
    p.s.: Next time i can recommend you to move your question under Netweaver - Interactive forms

  • Uploading data from Interactive form in Webdynpro ABAP

    Hello All,
    I am uploading data from an Offline interactive form to an ABAP WebDynpro application. Form is first downloaded, data is filled and now I am trying to upload the form to another WebDynpro application. Form DataSource is mapped to Context node with same data structure. However when I upload the form, form data does not pass automatically to specified context node.
    Do I miss any important step in between? I am on SAP NetWeaver 2004s SP10.
    Thanks,
    Nitesh Shelar.

    hi,
    the data is automatically passed to the context when the "interactive form" UI element is there in the view.
    when you just upload the pdf, just like that, it will treat it like a PDF file, not an interactive form....
    try using the same interactive form which you used to create the offline form.
    i hope this helps,
    regards,
    -ag.

Maybe you are looking for

  • Animated gif files not working in FF5 ok in every other browser

    Hi . I am having problems getting animated gifs to play in firefox 5 i am using a photo gallery script to show these files it works in every other browser i have access to (most of them on Linux and windows Xp and win7 ) if i use FF5 as a file manage

  • Applications won't install

    For some time now I have been unable to install applications onto my computer[Mac Pro/OS X 10.4]. I've checked the system with the disk utility without any positive result[system did not need repair]. System Updater seems to work when something comes

  • BIZTALK bts action mapping problem with Message Schemas for the Composite Operation

    Hi, I have a message schema made with the composite operation. now, I have re-deployed my biztalk project and in the send port for this Oracle composite message the SOAP action header hasn't updated the correct action. now I tried several verations f

  • White To Black Conversion

    I have this image that I'm trying to make look black.  Most of the techniques that are around for color changing are from one color to another.  Black to White and vice versa seem to be avoided. I have access to the object and can obtain higher quali

  • Email distribution list

    In Outlook, I have a distribution list set up to send email to multiple names and addresses as a mass email. Can I do this on the iPhone without choosing each individual one at a time?