Dimensions of Adobe Form element - dynamic?

Hi,
I have a Java WebDynpro Application that contains a ViewSet, with an adobe form in one of the cells. I would like to have the entire Adobe application frame(including the page number at the bottom) dynamically fit within the real-estate available on a given PC, but I am having issues accomplishing this.
It seems that when defining the form element, it forces you to specify an exact vertical height of the form, say 700px, instead of allowing you to enter 100%, which to me would indicate that it should fill the available vertical space in the grid. When I enter 100% it shows only ~ 1 inch of my form. I can enter a fixed height, but the form displayed may be either too big (a 2nd scroll bar is provided by the WebDynpro in addition to the Adobe scroll bar) or too small (lots of unused space on the screen) for a given pc.
Are there any tricks for configuring the form to have the height adjusted to the PC screen real estate dynamically? Is this a limitation within the View Set of the WebDynpro?
Thanks in advance.

Hi Todd,
What we did is calculate the height and width based on the resolution of the client screen. Instead of directly accessing the Web Dynpro application via an iView, we merely access a portal application that redirects to the Web Dynpro iView. The portal application passes the screen resolution, obtained by some javascript (<i>screen.height</i> and <i>screen.width</i>), to the Web Dynpro application as URL parameters. Based on that information, the Web Dynpro application can calculate the optimal height of the form. It's far from perfect, but since we open the Web Dynpro application in a new, maximized, screen, it works reasonably well (although the tabs in IE7 do cause some trouble).
Kind regards,
Sigiswald

Similar Messages

  • How set adobe form as dynamic

    Hello Everybody,
    I have a Java WebDynpro application with an adobe form. On adobe form is TextField and Button. On click event of Button I have javascript code:
    xfa.resolveNode("TextField").presence = "hidden";
    But it doesn't work because adobe form is static and not dynamic.
    I use SAP NetWeaver Developer Studio 7.0.08 and Adobe LiveCycle Designer 7.1. In Form Properties in LiveCycle Designer I have:
      XDP Preview Format: Dynamic PDF
      Override Default Rendering: checked
      PDF Render Format: Dynamic PDF
    If I save generated PDF and open it in Adobe Designer, I see, this is a static PDF. If I save it as Dynamic PDF, javascript works.
    How can I render my adobe form as Dynamic PDF?
    Thank you for your help!
    Michal

    Hi,
    I would like to add row and colume in my adobe form but i think i couldn't able to add due to the form is not in dynamic form.
    i insert your code that you provided in my wdDoModifyView
    if(firstTime)
         IWDInteractiveForm iForm = (IWDInteractiveForm)view.getElement("TrainingRequestForm");
         iForm.setDynamicPDF(true);
    however, it pop me with this error:
    The method setDynamicPDF(boolean) for the type IWDInteractiveForm is deprecated.
    do you know the reason? and how to solve it?

  • How set adobe form as dynamic *urgent*

    Hi,
    I wish to know how to set adobe form as dynamic in web dynpro 7 as my add and delete rows button can't work in web dynpro but can work successfully in adobe formDesigner.
    thank you

    Hi weilin,
    I'm not an expert on Java Webdynpro but i can give you my code in an Abap WebDynpro where i made it and where that works .
    Hope this will help you.
    Best regards.
    <i>
    In the view where my forms have to be display,
    go to methodWDDOMODIFYVIEW
    Here write this code according to Java requirement
    DATA:
        lr_interactive_form TYPE REF TO cl_wd_interactive_form,
        lr_method_handler   TYPE REF TO if_wd_iactive_form_method_hndl.
      CHECK first_time = abap_true.
      lr_interactive_form ?= view->get_element( 'ADOBE' ).
      lr_method_handler ?= lr_interactive_form->_method_handler.
      lr_method_handler->set_legacy_editing_enabled( abap_true ).
      lr_method_handler->set_hide_toolbars( abap_true ).
    Then you form will be display as interactive in your page
    </i>

  • Finding adobe form name dynamically

    Hi Guys,
    I am working on Adobe forms.
    I am using the same interface to multiple forms.
    I want to find the currently executing form name dynamically in the form interface.
    Based on the form i need to display the different data for some fields.
    Regards,
    Ramesh

    Hi Larissa,
    You can use the below code to resolve the naming issue:
    Download_File is node mapped to the download link for PDF.
                             //Get the Attribute Info of Attribute for PDF
                              IWDAttributeInfo attrinfo = wdContext.nodeDownload_File().getNodeInfo().getAttribute(IPrivateViewName.IDownload_FileElement.DATA);
                              ISimpleTypeModifiable simpletype = attrinfo.getModifiableSimpleType();
                             //Get modifiable Binary Type
                             IWDModifiableBinaryType binarytype = (IWDModifiableBinaryType)simpletype;
                             //Set the File Name
                             binarytype.setFileName("FileName");
                             //Set the Mime Type to PDF
                             binarytype.setMimeType(WDWebResourceType.PDF);
    Hope this resolves the issue...
    Regards,
    Arafat

  • How to get Adobe form element

    Hi Guru,
    How can i get adobe element
    Ex: I have one dropdwon List with Name : List1.
    I want get the value of <b>List1</b>.
    Like-----weContext.currentDataElemet.getMaterial();
    like that i need to get <b>List1</b> value. this element is not bind.  dynamically i want take that value of List and need to assign to another field.
    please help little bit urgent.
    Thanks
    Ramana

    Thanks Dvorah, but I don't get it...what do you mean to get the form values with AJAX? The form is in the client side, with AJAX I should issue a Xml request to the server... but the values are in the form... I don't understand your answer... if you could please explain a little bit more I'd really appreciate it. Thanks again.

  • Read adobe form element

    Hello all,
    I have an application which must send and receive mail with PDF attachment. The send part is already working. The PDF is created with adobe interactive forms.
    The receive of the PDF is partly working. I can get the mail and the PDF source and display the PDF file. But I need the fields on that PDF file to populate 2 badis. I don't know how I can do that.
    I use WAS 6.40 SP 18 and developer studio SP 18.
    Thanks in advance,
    Patrick Willems

    Hi Patrick,
    It can be done by directly using the PDFObject API, e.g.
      private byte[] getData(byte[] pdf) throws IOException {
        IPDFObject pdfObject = (IPDFObject) WDPDFObjectFactory.getPDFObject();
        pdfObject.setPDF(copy(pdf));
        pdfObject.setTraceLevel(0); // 0 - 4
        InputStream in = pdfObject.getData();
        return in == null ? null : IOUtils.toByteArray(in);
      private ByteArrayOutputStream copy(byte[] in) throws IOException {
        ByteArrayOutputStream out = new ByteArrayOutputStream(in.length);
        out.write(in);
        return out;
    This gives you the data.xml that you can parse using a SAX parser.
    On the other hand, you say you can display the pdf. I suppose you use an InteractiveForm UI element? Then the fields in the pdf's template are bound to the Web Dynpro context. Isn't the context being populated when you set the value of the <i>pdfSource</i> attribute? Maybe invalidate the <i>dataSource</i> node before setting the value of <i>pdfSource</i>? I don't use this particular scenario and I'm not sure it works.
    Kind regards,
    Sigiswald

  • Servlet to add form elements dynamically

    I have a program that populates text boxes from a database resultset (Oracle 8i) using a vector that I pass to a jsp form. The problem is I want to make it dynamic where the number of textboxes could grow or shrink depending on the size of the vector I pass to the request object.
    Any ideas as to how this could be done?

    Try using a for loop...
    int vectorSize = <get the vector size>;
    for(int i = 0; i < vectorSize; i++){
    out.print("<input type = "textbox">);
    }

  • ADOBE Forms (Creating Dynamic Forms)

    I am currently creating a form using Adobe Professional 8. IT is three pages each created on separate form files (.pdfx). I combine the files into a PDF package.
    I want to link up the pages together so that when the user types in a value on the first page that it also appears on another box on the second and third page.
    I also want it to be filled using Adobe Acrobat Reader and saved, then submitted.
    If you want me to send you the forms so you know what im talking about please let me know.
    Let me know if you have any questions, comments, or concerns.
    Thanks for all your help in advance!
    Chris P.

    Ensure the fields which are required to be filled on multiple pages have
    the same field name, use the distribute form option and you're done.
    Jon

  • Adobe Forms and Dynamic Images

    Hi all,
    I have a table in my Interactive Form and I need to add a dynamic image for each row of this table according with the URL field of my node, so i've done the steps of the tutorial "Dynamic Non-Interactive PDF Form", adding a image field, setting none for default binding, setting the url field as $record.Images[*].URL and then, adding the following FormCalc expression to initialize the image: this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Well, my node Images return 3 records and when I run the app, the following message returns:
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[0].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[1].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    Script failed (language is formcalc; context is xfa[0].form[0].dataSource[0].Images[0].subImageTable[0].subImageRow[2].imageField[0])
    script=this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    Error: SOM Expression returned list when single result was expected
    So, anyone here knows how to add a dynamic image to a table row?
    Thanks in advance
    []'s

    I solved it now, just changing the FormCalc expression.
    Instead of using the expression:
    this.value.image.href = xfa.resolveNode(this.value.image.href).value;
    I used this:
    this.value.image.href = xfa.record.Images.URL;
    The URL value of Image Field, in this case is:
    <b>$record.Images[*].URL</b>
    And, to finish, I needed to add a Text Field bounded to  <b>$record.Imagens[*].URL</b>, case else the image doesn't appear.
    That's it!

  • Web dynpro Abap - Adobe Form Table Dynamic

    hi Friends ,
    I created one table in ADOBE interactive form  and i kept two button for row add and row delete in table
    it is working fine in Adobe fomr Preview form
    but i deployed in Web dynpro abap this functionality is not working is there any reason
    Pls give suggestion
    Regards
    Krishnan R.

    Krishnan,
    Check if the form is Interactive and also  have you installed Adobe Reader Rights on the server. If not please check note 736902 and ask BASIS to apply them.
    Chintan

  • How to handle Adobe Form - Dynamic Tables.

    Experts:
    I am new to Web DynPro for ABAP and Adobe Interactive forms.
    I have created a Adobe form with dynamic table. When I submit the form, WD4A is able to read only the first row of the table. Other rows are getting lost.
    I thought just binding with the context will trasfer data from Adobe to WD4A. But it is not happending.
    Do I need to write any code in WD4A and any script in Adobe Designer?
    Can any one send me a sample code (ABAP and JavaScript). Even link to that will be very useful.
    Thanks,
    Vijai

    Thomas:
    My context is as follows.
    <CHANGING>
      <REQUISITION_ITEMS>
        <ELEMENT..1>
        <ELEMENT..2>
        <ELEMENT..3>
    The cardinality of <CHANGING> node is 1..1 and the cardinality of  <Requisition_items> is 1..n.
    Thanks
    Vijai

  • Dynamically rendering form elements

    I am very new to Adobe LiveCycle Designer and Adobe Form Server.
    Is is possible to create form elements dynamically? For example. User
    A's has 2 choices , so when the form is rendered for User A, he/she sees
    2 checkboxes, whereas User B' has 3 choices, so the form should display
    3 choices.
    what is the approach generally followed? Any suggestions will be
    appreciated.
    I am using Adobe Designer version 7.0 for Windows XP and Adobe Form Server 7.0.1 for Sun platform
    Thanks

    Hi John,<br /><br />Thanks for the prompt reply. I am trying something similar. It works partially. <br />I have 3 checkboxes, planA, planB and planC. The checkbox becomes visible/invisible based presence/abscene of xml tag respectively (see test.xml below); BUT the checkbox does not show up as checked (even though the value in test.xml is 1 for planC). <br /><br />I tried the following FormCalc (run at Client) in the initialize event of planC checkbox<br /><br />if (Exists($data.distributionForm.participant.plan.planC)) then<br />     planC.presence = "visible";<br />     planC.rawValue = $data.distributionForm.participant.plan.planC;<br />else <br />     planC.presence = "invisible";<br />endif<br /><br />Here's my test.xml<br /><?xml version="1.0" encoding="UTF-8"?><br /><distributionForm><br />     <participant><br />          <plan><br />               <planA>1</planA><br />               <planB>1</planB><br />               <planC>1</planC><br />          </plan><br />     </participant><br /></distributionForm><br /><br />What am I doing wrong? <br />Thanks

  • Dynamic call for ADOBE FORMS

    Hi ,
    I want to call Adobe forms with dynamic table .
    Some one please explain me how I can implement this in ADOBE interface ?
    Any Pointers or Help higly appreciated.
    Thanks
    James

    hi
    Check this
    Difference between Smart Forms and Adobe Form
    Re: Smart Forms & Adobe Forms
    Adobe forms
    /message/4983958#4983958 [original link is broken]
    Re: adobe forms
    adobe forms
    adobe forms
    adobe forms

  • Dynamic row counter column in Adobe Forms

    Hi Guys,
    My table in Adobe Forms is dynamically created with Conditional Breaks. I want to display 1st column as Sr.No. displaying row counter for tables on each page.
    Anyone have idea how to achieve the same.
    Sr.No
    Name
    Address
    1 (generated in adobe forms dynamically)
    xyz
    awsaxa sadsad
    2 (generated in adobe forms dynamically)
    abc
    asds  sad ads
    so on......
    Regards,
    Naveen

    Hi Guys,
    Not able to find any counter variable for table. So what I did is inserted the counter logically before calling Adobe forms driver program.
    FYI.
    Regards,
    Naveen

  • How to make a condition check on footer text in adobe forms ?

    Hi all,
    I have a requirement where I need to change the existing footer text in the adobe form ( text is hardcoded in the layout ) .
    I need to put a condition where new text can be placed or the existing text . Is this possible in the layout only ?? Because the text is hardcoded . I dont want to do programming in the interface for such a small req . Its a urgent req . So please advise .
    Thanks
    Barun

    Hi Barun,
    Using Javascript in Adobe, we can hide the footer. Please find the document below.
    Using Java Script in SAP Adobe forms to dynamically select Logo / Image on the basis of a field value
    Regards
    Rajkumar Narasimman

Maybe you are looking for

  • How can I transfer my iPad iBooks to iTunes library?

    I'm having a problem getting my iPad books into my mac and I really could use some help. The situation is, my mac got stolen a few months ago and I finally could get a new one. I also have an iPad, where I had thankfully stored all my iBooks. They're

  • How can I change the background color of black clips?

    "iMovie Help" says to double click (or "apple i" or file ⇒show info), then "Click the color box and choose a color for the clip". I get a "Clip Info" window, with "Name", "Media File", "Size", "Capture date", and "Duration", but it does not have a "C

  • Weekly/Monthly Snapshot Report

    Hi, I have now three cubes Daily,Weekly and Monthly cubes... I had made copy of the daily cubes as weekly and monthly.. There is no difference as such structure wise... But what extra i need to do to make these weekly snapshot report and monthly snap

  • An answer regarding language and TOC

    I am writing this little post because I know how frustrated you can become about small, small things. Things that make your book not entirely into your own language. I have posted questions in many threads - and finally got a solution for us who are

  • Importing Flip .avi clips from hard drive

    I got a Flip camcorder (standard def) for christmas last year and have copied all of its footage onto my Mac hard drive from an external PC hard drive. After having downloaded the proper DIVX software, I can play back the clips in Quicktime without a