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

Similar Messages

  • 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

  • Trying to makea report run when clicking a button on a form

    I am trying to run a report by clicking a button on a form (Forms 9i)
    I have modified the registry settings for FORMS90_PATH and REPORTS_PATH to include my development directory, and now at last the report is generating. However the command to display the form in a window is not doing anything at all - no error even. Can someone please help, the trigger code for my button is displayed below:
    DECLARE
         rep_result VARCHAR2(30);
    BEGIN
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_FILENAME, :GLOBAL.project_path || 'Inventory.rdf');
         SET_REPORT_OBJECT_PROPERTY('INVENTORY_REPORT', REPORT_DESNAME, :GLOBAL.project_path || 'Inventory.htm');
         rep_result := RUN_REPORT_OBJECT('INVENTORY_REPORT');
         --MESSAGE('Rep result: ' || rep_result);
         WEB.SHOW_DOCUMENT('file:///' || :GLOBAL.project_path || 'Inventory.htm', '_blank');
         --WEB.SHOW_DOCUMENT('file:///C:\Temp\Dev\Inventory.htm', '_blank');
    END;
    thx
    adam

    Hi,
    may be this could be helpful for you:
    You have to include the following code to execute a report:
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status Varchar2(20);
    BEGIN
    repid := find_report_object(report_name);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,report_server_name);
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := report_object_status(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    if rep_status = 'FINISHED' then
    WEB.SHOW_DOCUMENT('/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?'||'server=repserver90','_blank');
    else
    error report not exists
    end if;
    END;
    Also you have to create the report server with the command:
    "rwserver - install service_name autostart=yes
    report server name must be the same that appears in the code above
    You must add the report to run in the REPORT object type in your .fmb and put there with the same name
    The report server to install ought to be the one and only in you network to avoid mistakes...

  • Submit Button in Interactive form is not Triggering (Webdynpro Java)

    Hi,
    I have developed one application for Online intractive form.I have  created one text box and one submit button in Intractive
    Form.I created a Action method Submit.I have bound the onActionSubmit() method to  onSubmit Event of Intractive Form.
    For testing i am putting some value in text box and Clicking Submit button.I have set the debugger in onActionSubmit()
    method.But when I am Clicking Submit button, onActionSubmit() method is not triggering.I have
    1. I have used Submit to SAP button (Pallet>Library>Web Dynpro).
    2.I have ACF(Active Control Framework) instalation.
    3.I have WAS 6.4 and NWDS 04.
    4.I have SAPForms.api in   Program Files\Adobe\Acrobat 7.0\Reader\plug_ins path.
    One Value Node DataSource (Cardinality 1..1) is binded into dataSource Property.And pdfSource property is binded to one value
    attribute of binary Type.
    I have done one application where i am getting data from R/3 System and displaying in PDF ,It is working fine.
    I got below error in Log File for the above two applications.But geting the data from R/3 and displaying in PDF is working
    fine even if it is giving below Error in Log
    ClientJTSInterceptor.receive_reply
    [EXCEPTION]
    org.omg.CORBA.BAD_PARAM: Not found ServiceContext with id=0  vmcid: OMG  minor code: 1A completed: Maybe
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.get_reply_service_context(ClientRequest.java:284)
         at
    com.sap.engine.services.ts.jts.ots.PortableInterceptor.ClientJTSInterceptor.receive_reply(ClientJTSInterceptor.java:91)
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.dealReceiveReply(ClientRequest.java:133)
         at com.sap.engine.services.iiop.internal.giop.ClientRequest.dealReceiveReply(ClientRequest.java:125)
         at com.sap.engine.services.iiop.server.portable.Delegate.invoke(Delegate.java:282)
         at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:486)
         at com.adobe.service._ControlAgentStub.done(_ControlAgentStub.java:83)
         at com.adobe.service.ProcessResource.onCommit(ProcessResource.java:609)
         at com.adobe.service.ResourcePeer.invokeCommit(ResourcePeer.java:130)
         at com.adobe.service.J2EEResourcePeerImpl.commit(J2EEResourcePeerImpl.java:124)
         at com.sap.engine.services.ts.jta.impl.ResourceList.commitTwoPhase(ResourceList.java:80)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:355)
         at com.adobe.AdobeDocumentServicesLocalLocalObjectImpl0.rpData(AdobeDocumentServicesLocalLocalObjectImpl0.java:174)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
         at java.lang.reflect.Method.invoke(Method.java:391)
         at
    com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:157)
         at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:79)
         at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:92)
         at SoapServlet.doPost(SoapServlet.java:51)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageLis
    tener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:214)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Please Suggest.
    Thanks & Regards
    muna

    Hi Muna,
    May ADS is not configured in server properly.
    Check the below link. I hope it will  help you.
    Re: no action got executed corr to SubmitToSap button of Interactive forms
    Thanks
    Siva Arikatla

  • Adobe Document Services add-on  download  location  for CE 7.1 SP1

    Hi All,
         Recently i downloaded the CE 7.1 SP1 and installed successfully, now i want enable the Adobe document service in CE 7.1.
    I found some forums we have to install the Add-on for Adobe document service, where can i get this add-on and how to configure this please let me know .
    Is it possible to configure Adobe document service on CE 7.1 trail version.
    Thanks and Regards,
    Sridhar

    I found we have to download from SMP....

  • How to Disable Save Button in interactive form via sfp

    Dear,experts
    My requirement is that Disable Save Button in interactive form via sfp .Is there any options to do this or write Javascript/Formcalc.Please help!
    Thanks
    Vince.

    I found a adobe documentation that says that If you want to disable some toolbar buttons, you will have to use application-level Javascript. Looks like it is not possible from ADLC
    Place the following Javascript code inside a .js file in
    %ProgramFiles%\Adobe\Reader 9.0\Reader\JavaScripts   to disable the toolbar buttons:
    // [File - Create Adobe PDF Using Acrobat.com], plus toolbar button
    app.hideMenuItem("WebServices:CreatePDF");
    app.hideToolbarButton("Weblink:CreatePDF");
    // [File - Collaborate], plus toolbar button
    app.hideMenuItem("Annots:FileCollaboration");
    app.hideToolbarButton("Annots:CollabToolButton");
    app.hideToolbarButton("CommentTask");
    app.hideToolbarButton("SigTaskButton");
    app.hideToolbarButton("SaveFileAs");
    app.hideToolbarButton("Save");
    Regards
    Sandy

  • Click close button in infopath form shuld be redirect to site page not a list by default

    Hi
    I am custmizing a list in infopath
    i created a view created by user and
    i created a site page and assigned a created by user view to a webpart on this page
    here i need when this list opens in edit mode , when i click close button this form shuld be redirect to site page
    now its rediricting to list>all items
    all items is default view for this list
    adil

    Hi adil,
    According to your description, my understanding is that you wanted the redirect to another page once InfoPath form had been closed.
    You can add a Content Edit web part above the InfoPath form web part with the following code:
    $(document).ready(function(){
    if($('#DialogFinalMessage').children().length>0)
    window.location.href = "<Desired destination page URL>";
    For more information: 
    http://shareapointkiran.blogspot.in/2011/12/infopath-form-redirect-to-any-page-once.html
    Here are some similar posts for you to take a look at:
    http://blogs.technet.com/b/sharepointwarrior/archive/2012/03/16/sp-2010-how-to-redirect-infopath-form-to-a-custom-thank-you-page.aspx
    http://www.graphicalwonder.com/?p=666
    http://social.technet.microsoft.com/Forums/en-US/1e732bb8-9090-40c4-b1a3-1dad8960c3c1/redirecting-to-the-home-page-when-clicking-on-close-button-of-the-item-in-a-list?forum=sharepointcustomizationprevious
    http://social.technet.microsoft.com/Forums/en-US/69839309-d6d9-4a25-9100-82b2393f9054/click-on-infopaht-close-button-redirect-to-another-page?forum=sharepointgeneralprevious
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Is it possible write code inside pdf form when click submit button in pdf form

    can write code to pdf form
    for eg:
    we have to write code in Excel sheet using Macro features Like that any possible to write code in pdf form
    when i downloaded pdf form from site then filled up the details then click the save button the pdf form will send to the corresponding server then stored in DB
    pls reply me soon

    You have posted in a completely wrong forum. This one is exclusively for participants testing features of the site.
    You may want to try reposting in the appropriate Acrobat forum, which you can find here:
    http://forums.adobe.com/community/acrobat?view=overview

  • Problem in Using webdynpro Button outside Interactive Form

    Hi Experts,
    I am using the WebDynpro SUBMIT button  Outside the interactiveForm
    My question infact was, that I want to use the WebDynpro native button and place it outside the form.
    I have written the code in the onActionSubmit() of this button to bind data to a table by using subforms in interactive forms.
    My problem is the data is not getting displayed at output,but when i print the size of the node the node is getting binded with data i.e the node size is not equal to Zero.what might be the problem.Please help with a reply .
    Any kinds of tips are appreciaed.
    Thanks,
    Madhavi

    hi,
    thanks for your reply,
    The cardinality of the datasource is 1:1 ,and the data is present and binded to the table node,i have traced it using MessageManager.
    I am doing this in NW2004s.
    I have also done it in NW2004,there i could able to display multiple rows,but what is the problem if iam doing in 2004s.
    Will you please help me further regarding this issue.
    Can you also please explain why to debug the application.
    Thanks in advance

  • Submit Buttons in Interactive Form

    how many submit buttons could be placed in interactive form.i would crate one simple calculator in adobe form using webdynpro. in this i would be placed 4 buttons i.e, (add,sub,mul,div). is it possible.explain some processing steps.

    Hello Siva,
    In Interactive Form ,you can place as much submit buttons as you want.
    You are creating a simple calculator in adobe...Right..?
    For this purpose ,
    1. In Adobe Interactive Form, Go to WebDynproActiveX  field and from this ,select 4 submit buttons in sequence
    2.In Caption property label them as Add, Sub, Mul & Div respectively.
    Reply if these steps work for you.
    Best Regards,
    Shital.

  • Submit button in Interactive form WDA

    Hi All,
    I have created one WD ABAP interactive form using one BAPI. I have placed one Submit button on the form which is of type (webdynpro native). And i have defined on action in WD. But when I click on submit button the action is not trigerring. I tried even with Webdynpro Active x type but still no use.
    How can I link the button in form to action?
    With Regards,
    Ravi

    Ravi,
    There is onSubmit event in Web Dynpro where you can create your own method for data processing.
    If you have set displayType as native then you should be using Submit button from WD Native Library in Designer.
    Once you place the button on the form, check if following script is present in the click event of button in Script editor of Designer or not.
    // DO NOT MODIFY THE CODE BEYOND THIS POINT - SubmitToSAP.xfo
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    // END OF DO NOT MODIFY
    Also check Control Type in Object Palette for the button. It should be Regular.
    Chintan

  • Error when pressing Submit button in Interactive Form

    Hi
    I have a WD/Java component with an embedded interactive form. The form has two buttons, a SubmitToSAP and a CheckField button. Everything was tested on the development system and worked fine. The component was then deployed to the QA system and has also been tested successfully there.
    Since a few days the WD does neither react on both of the buttons. Instead an error message appears indicating the following text:
        Character string "0" does not exist in the set of allowed values
    What seems strange is the fact that this issue started on the development system after a colleage had modified his WD/Java component (which does not contain an adobe form). After deploying this component on the QA system later we also got the issue there.
    Does anybody have a suggestion how this issue could be fixed? Could this be caused by the SDM? Thanks for responding.
    René Morel

    Hi rene,
                Can u send the complete stack trace?? It seems u r trying to get some values from value set & that values doesn't exist in the set.After checking the stack trace only we can find out main problem.
    regards
    Sumit

  • WebDynpro ActiveX  Button in Interactive form- not working in IE

    Hi,
    1)     I am working with Interactive forms in WebDynpro. When I deploy the application, the PDF form is opens in a browser window, But the WebDynpro ActiveX button ( to call a method in view Controller) is not working.
      When I copy the URL and try in another sysetm, its working.
      I hope the probelem is with the browser settings.
    2) And also, the 'https' URLs does not work properly in my IE.
    Can you give me a solution for these problems?
    Thanks,
    Prabhakar.

    Hi Prabhakar,
    I doubt this is anything to do with the browser. Please let me know if you have already installed SAP Active Control Framework on your desktop.
    I think this might be an issue. Also check for Adobe Reader version in both the machine.
    Cheers
    Satya

  • How to hide navigation panel buttons of interactive form

    Hi Gurs,
    Can any one expalin how to hide the navigation panel buttons of interactivge form through coding in WD.
    Thanks
    Rao.
    Edited by: rahul raao on Apr 30, 2009 9:57 AM

    Hi,
    You can access the document Adobe XML Form Object Model Reference 
    http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    and search for "presence" our "relevant".
    I think this is what you are looking for.
    Best regards,
    Ana Carolina.

  • Help required to Place Browse button in Interactive forms

    Hi,
    I am developing an interactive form in which I have to include a browse button. Is it possible?

    Hi Amit,
    Did you already solve this problem?
    I have the request to implement this functionality also and can not find the browse../upload functionality in Adobe Designer.
    I'm using NWDS 7.0.09, adobe designer 7.0.
    As alternative I can make a checkbox in the Interactive Form with value "Want to upload?" > if checked after submit > fire plug to uploadView.
    Does anyone know if there is a way to do this directly in the Adobe Designer?

Maybe you are looking for

  • Office OCT display level gives no dialogs

    I have configured OCT in Office 2010 and deploy Office 2010 standard thru Computer startup script in GPO. In the GPO at computer startup scripts a batchfile is running which starts the offscrub03.vbs and then the setup with the msp OCT file. When the

  • Safari Odd Font Behavior

    Hi, shortly before Christmas we replaced our old eMac with a new iMac running Leopard version 10.5.1 and Safari version 3.0.4. A couple of days ago, my wife installed some new software (Rosetta Stone, which is language learning software) and, since t

  • JPEG with Error Message of Truncated Marker Segment

    Hi, I have a recurring annoying problem when sending JPEGS from my Mac to others (and myself). I use Entourage 2004 for the Mac, I'm running Leopard 10.5.6 on a G4 and a Macbook. When I send a JPEG to someone who uses a web-based mail system (such as

  • Have purchased Creative Cloud but only able to access trial version - help!

    My IT department has purchased Creative Cloud for myself and a colleague. I have received an invitation by email which states that I've been assigned a Creative Cloud - Complete Membership. I followed the links to download and installed Photoshop ini

  • Transferring App Purchased on Ipod to iTunes

    I have an app - Bunny Munro - which I purchased directly onto my ipod touch. It runs fine on my ipod but won't transfer to itunes on my pc. Whenever I click on 'Transfer Purchase' it says that its doing so but it never completes. My pc is authorized