Skip to Content
author's profile photo Former Member
Former Member

Problem in uploading complex interactive form

Hi to all you gurus,

I am using web dypro java for Adobe forms on NWDS 7.0 SP11

Adobe Live cycle designer - 7.1

Adobe Reader - 8.1

My scenario is that I have to upload a complex pdf of 2 pages with datas and an image loaded in it into a web dynpro java. I used the example TutWD_UploadDownloadInteractiveForm as a starting point, I created a view to upload the pdf and a view to display the pdf, but the problem is that the pdf is displayed with tha right template but with no datas in it ( no image too). You have to know that my pdf contains some javascript controls in some events. Have you some suggestions to solve this problem? Do you think that the presence of the javascripts is a possible cause for this problem?

Thank you very much,

Enrico

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 03:35 AM

    Hi Enrico,

    Presence of JS code in your form doesnt seems to be an issue. Please verify that the PDFSource(Binary Context Attribute) is mapped between the two vies i.e Upload View & Display View.

    Hope this helps!!

    Regards,

    Arafat

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 23, 2008 at 03:36 AM

    Hi Erico,

    JavaScripts donot hamper the upload Functionality anyway. Nor does the complexity of the form.

    All u have to do is just Create a binary type (say pdfsource) attribute in the context of the view, bind that attr to the "data" property of the file upload UI.

    You must have the same attribute in Component Controller and in the second view as well.

    The attribute of the view that shows the form shall be binded to the pdfsource attr of the Component Controller.

    Place a button on the upload view that'll trigger the event of showing the form, taking the control to the next view.

    On the Action of the Button, u can place the code given below:

    wdThis.wdGet"COMPONENTController"().wdGetContext().currentContextElement().setPdfSource(wdContext.currentContextElement().getPdfSource());
    
    wdThis.wdFirePlugTo"View that Shows the Form"();
    
    

    Create a PDFMode attribute in the View that displays the form, this attr should be of type type: com.sap.ide.webdynpro.uielementlibraries.adobe.InteractiveFormMode.

    U can find this type in Dictionary Simple Types: For Adobe,

    Then in that select : Interactive Form Mode.

    Now in the outline view if u chk there will be an event handler stating the OnPlugfrom"uploadView".. or whatever u've given..

    There u need to place the below code:

    wdContext.currentContextElement().setPDFMode(WDInteractiveFormMode.USE_PDF);
    
    

    Hope this helps..

    Thanks

    Amita

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Enrico,

      USE_PDF mode utilises the uploaded PDF, renderes it in Adobe Reader. Now at this step, the existing contents are displayed, if you want to modify/update the contents of the form you can do that.

      Hope this helps..

      Thanks

      Amita

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.