Controlling instances in  dynamic forms with a  strange twist.

Hello,<br /><br />Is there a way to program a numeric text field that controls the number of instances of a subform? For example, I would like to have a nested subform appear twice in the form if the user enters 2 in the numeric field. But more importantly, I would like to see its corresponding XML output appear like the following:<br /><br /><SUBUNIT_1><br />   <LENGTH></LENGTH><br />   <SEQUENCE><br />       ELEESGGGLVQPGGRQSPEKGLETHYAE<br />   </SEQUENCE><br />   <N_TERMINAL>Yes</N_TERMINAL><br />   <C_TERMINAL></C_TERMINAL><br /></SUBUNIT_1><br /><br /><SUBUNIT_2><br />   <LENGTH></LENGTH><br />   <SEQUENCE><br />       ELEESGGGLVQPGGRQSPEKGLETHYAE<br />   </SEQUENCE><br />   <N_TERMINAL>No</N_TERMINAL><br />   <C_TERMINAL></C_TERMINAL><br /></SUBUNIT_2><br /><br />If you pay close attention to the above code, you will see that I want the parent tag's ending digit incremented each time the subform is repeated.  <SUBUNIT_1> <SUBUNIT_2> <SUBUNIT_3> ect  . . .<br /><br />That is the twist! Is this programmatically possible?<br /><br />Regards.<br /><br />Harold

Harold,<br /><br />The code to create a specific number of instances is as follows:<br />JavaScript <br />Subform1.setInstances(2); <br />or<br />Subform.instanceManager.setInstances(2); <br />FormCalc <br />comments.setInstances(2); // Subform name = comments <br /><br />If you are looking for documentation watch out: it's listed as setInstance rather than setInstances!<br /><br />If your form is associated to a specific data structure via a Data Connection (typically an XSD) then a subform repeats based on a repeating element in  the XML or, if the subform instances are instatiated programatically as yours would need to be, then the generated data will have repeated elements.<br /><br />If, however, your form fields are not bound to any specific data structure then you've got your work cut out but I think you could achieve the twist you require. I think you will have to write some code to build the XML structure that you require. Your code can refer to the fields on the form to extract the data and build the <dataset>. You'll need to know about scripting DOM (Document Object Model) to achieve this.<br /><br />A third option, if you are using Forms Server or LC Workflow to process the form submission, is to write Java code that processes the submitted data and transforms it to the required strucure.<br /><br />Or a fourth that has just crossed my mind is to associate an XSLT stylesheet to the form to process the outgoing doing. I'm afraid I don't really know any more about that to be 100% sure that would satisfy your requirement.<br /><br />Hope these ideas help.<br /><br />Neil

Similar Messages

  • How to save a completed form that was created as a dynamic form, with expandable files?

    I have created a dynamic PDF form with expandable fields etc. As this is to be accessible for customers to completed, how can they save a completed copy on their own PC?
    I tried it myself and I receive an error msg stating that I can only save a Blank Copy of this Form:  Data typed into this form will not be saved. Adobe Reader can only save a blank copy of this form.
    How can I create a dynamic form (with expandable fields/flowable layout etc) that allows the applicant to not only complete the form but also, to save a completed copy?

    Thanks! That worked , however I now have an additional issue.
    While the form works in Internet Explorer (I'm using IE11), in that it's viewable, it opens and allows me to save etc) it doesn't work in Google Chrome and I'm getting the below error message:
    Any ideas on why it doesn't display in Chrome and does in IE (I'm using the same PC and I'm using Adobe Reader XI)!
    there are other PDF forms on site that are not dynamic but are fillable, and these are opening!
    Thanks

  • Dynamic Forms with Subforms and Text Fields

    I've been reading all of the messages relating to subforms and dynamic forms and have used many of the suggestions, but haven't found anything that addresses the problem I am having. I'm using Designer 7.0. I've saved my form as a dynamic form, I've set my text fields for multiple lines and expand to fit. My problem is that as soon as I set the parent subform to Flow Content, everything moves to the left margin. I've tried grouping items together within a subform in hopes that the items will maintain their position on the page, but everything always moves to the left margin. I'm creating a legal form that needs to have text and a text field centered at the top of the page. Below that to the left is a text field that needs to be able to expand with two text fields to the right of it. Below that are additional text fields that need to expand as needed.
    Am "stacking" my subforms incorrectly and setting the wrong subform to Flow Content? Or, can you now lock a field to a specific position? Any help would be greatly appreciated.

    Unfortunately, I hadn't understood that you needed the fields to expand in height and everything below them to move down the page. In that case, you'll need to use flowed subforms.
    Having all objects move to the left side of the page is expected when setting a subform to flowed. That's because the flow is top-down, left-right.
    One thing you could try is making the text field that needs to be centered exactly as wide as the flowed subform and then setting its left- and right-hand margins to an equal number. This would ensure an equal amount of space on the left- and right-hand sides and because the field would be as wide as its flowed container (subform), entering multiple lines of text would result in everything below moving down.
    I've attached a sample form where the page subform has been set to flowed, the text field at the top is a multi-line/height-expandable text field with its width set to the page width and its left- and right-hand margins both set to 2in and the button and check box objects are pushed below the text field.
    When text is entered into the text field, it expands in height and causes the button and check box to move down.
    To achieve other horizontal and vertical positioning/offsets, you could play with the margins of all the fields that need this.
    Stefan
    Adobe Systems

  • How to create a dynamic form with bind variables :schema & :table_name

    My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
    I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
    Thanks in advance.
    Stuart.

    Hi Stuart,
    In this sort of situation, you will need to be a bit creative.
    I would suggest a pipeline function called as if it was a report.
    Then you can pipe out the required fields.
    Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
    Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
    Not very specific I'm afraid, but it should work.
    Regards
    Michael

  • Pre-populate dynamic form with XFDF

    I am trying to pre-populate a form saved in Designer as a dynamic form. If the form is saved in either the 6.0 compatibile, or the 7.0 static pdf file format, my XFDF file works fine. If I open the PDF in Designer and save it as a dynamic form, the XFDF file opens the form in reader, but no data is populated.
    I have searched everywhere and haven't found any information on this. Any help is greatly appreciated.

    OK... so here's the update. The PDF file only has one vertically expanding field (a "Description") field on the page and it takes up about 2 vertical inches. If I open the PDF in Reader I can type into it and everything expands and flows correctly. If I use an XFDF file that contains a lot of data in the Description field, everything comes up perfectly. However, if I either modify my XFDF file, OR create an XFDF file that only has a tiny amount of data in the Description field (1-2 lines), the PDF is opened and no data is displayed anywhere in the form. If you click on a text field, any data that should be there magically appears. When you navigate out of that field, it disappears.
    This only happens if the XFDF file has a Description field value that doesn't cause the PDF Description field to expand past the 2 inches.
    I am new to Designer 7.0 and this is my first file that has dynamic flowing fields... is this a bug, or am I missing a property somewhere?
    Thanks

  • Dynamic forms with JSF

    Hello guys !
    I hope you can help me. I am trying to do something with JSF, but I am not sure if JSF is the right approach.
    I am trying to build a dynamic web service, based on the information of a web service. That is I dont know the controls ( radio buttons, checkboxed, input boxes) , my form will have in advance, so I dont build any managed bean that maps all the controls.
    What I thought , it is to have a collection, which has the description of all the questions and posible answers, and dynamically go through the collection and build the form. (that is something I can do with datatables), and then when the user submits the form , in the action method ...I would recover the "answers" based on the ID or name of the controls, but for my surprise I cannot set the name of the controls with JSF , so I am clueless to send the answers of the form.
    I post the fill-up of the form to another web service which very briefl requires someting like this
    <answers>
            <answerid></answerid>
            <answervalue></answervalue>
    </answers>I might have the value , but not the answerid
    Thanks,
    Deibys

    or is there a way I cam force the id of a control ?
    <h:selectOneRadio id="#{question.questionid}"  layout="pageDirection" >
                             <f:selectItems value="#{question.answersOptions}" />
                        </h:selectOneRadio>this does not work for me
    org.apache.jasper.JasperException: /encuestaRiesgo.jsp(22,4) PWC6314: According to the TLD, the attribute id is not a deferred-value or deferred-method, but the specified value co

  • Certified dynamic form with 3 signatures

    I've never made a certified form before and I'm having trouble understanding the process. Does anyone have a generic certified form that I can use as a guide or an indepth article explaining this type of form?
    What I want to happen is for the features bar (Help and Radio buttons, and Clear button) at the top of the form to become invisible after the first signature is applied. The features bar isn't a legal portion of the form. It becomes a distraction for one wanting to archive a .jpg copy and it would look better for it to just disappear on signing.
    The form is dynamic otherwise the Radio button labels won't go invisible on demand.
    Adobe's instruction aren't helpful. They state one must change the "Preserve scripting changes to form when saved:" to manual and write script for the preSave event and use the delta property for a certified form. There are no examples of this that I can find.
    The problem I'm having occurs when the form is signed in all 3 places. There follows a list of all the changes made to the form after signing.
    The signing flow is from left to right. Prior to the last signature, the signer checks an approval/disapproval box and dates the decision. The last signature (on the right) locks the form using the "Form Object Collections..." statement modified to suit the situation.
    Any help is appreciated.
    Thanks,
    Fred

    hi raf--
    i just checked our queue of enhancement requests and have no further word to offer on our built-in dml proc's being able to support compound pkeys of more than two columns. it's in the queue, though, so that's a start. re coding the proc's yourself: it's really just a matter of fetching the data you need in one proc and updating it in another proc. the only level of complexity that comes to mind would be implementing some kind of optimistic locking mechanism to maintain data integrity. these three pieces can be quite easily divided into two processes on an HTML DB page. have the fetch process fire with a "Process Point" of "On Load - After Header" and the update one fire "On Submit - After Computations and Validations". the rest of the solution is just pl/sql.
    hope this helps,
    raj

  • Dynamic form with multiple master pages

    I have a 7 pg form that has different data in the footer area. I placed the footer info on it's own separate master page and set the page to the corresponding page numbers. I moved the content area above the footer section so my content can flow to the next page properly. But my problem is since I set the Pagination area to "Place: Top of Page "Page 2" and the rest accordingly, I'm getting an almost blank page with the data from the previous page and the next page pushes to a separate page of its own for every page. Not sure how to make the form flow continuous, this is my first time having to do a form this way. Typically I set the pages when I'm done to "Following Previous" instead of "Top of Next page" in the Pagination Place field for each section and everything works fine then. I've never had to deal with a different master page for each page in the form.
    Any help or suggestion would be greatly appreciated.
    Jim

    If you have 7 pages with different footers, wouldn't it be easier to have the footer also part of the body page instead of Master page.
    Unless you are adding dynamic content at runtime, you can keep the footer in the body page itself. That way you can avoid multiple master pages.
    If you still have issues, you can share the form, so I can have a look at it.
    Thanks
    Srini

  • Dynamic Forms with Bindings

    Hello all,  need some help,
    I have an odbc connection to an excel file and I have made a data connection to the excel document. I can see my two fields in my dataconnection.
    What I want to do is for each row in my excel table I want to output its counterpart field and value on the pdf document. but I am having trouble doing this. I can only output the first row. I have made a subform and set it to minimum 1 instance. Please see my image below for a better explanation, I would really appreciate if somebody could explain to me how I can do this, or even better give me an quick example file.
    http://docs.google.com/Doc?id=dcj7tdvs_4fwbq65qf

    On line 57 of the script I added this code:
    // Loop through each record and make a new instance of MovieSF for each one
    //initialize a countervar  j = 0;
    while (!oDB.isEOF())
         //Get a reference to exist subforms (o indexed)
          if (j <= 3){ 
              var oNewPerson = xfa.resolveNode("ExpandingSF[" + j + "]");     }
    else {  
              // Create a new instance and get a reference to it.
               var oNewPerson = _ExpandingSF.addInstance(0);     }
         //increment counter
         j = j + 1;
    Paul

  • Itextsharp using livecycle form with dynamic table

    Hello all, after searching Google for the past two days and not able to find any relevant information, hence this post.
    Some background:
    1) Created a pdf form using Adobe Livecycle designer 9.
    2) It is a dynamic form with textboxes and a table configured to repeat rows dynamically.
    3) Testing form using xml data within designer works just fine.
    Requirement:
    Need to populate form dynamically using data from database.
    Solution:
    Found iTextSharp (free assembly) which assists with populating existing pdf form.
    Issue
    This assembly works without any issue when populating textfields (see sample code below). The problem I am facing is with the dynamic table where in I am not able to reference rows greater than 1. Since the pdf template contains a table with just one row referencing the first row using acrofield works.
    I was under impression since this is a dynamic table with repeat enabled, in asp.net if I referenced row2 onwards the table would grow automatically. Which I have come to realize is not going to be possible.
    So I am looking for ideas on how I can accomplish this. I wish this could have been a fixed row table then reference rows would have been easier. However in this situation the table has to be dynamic.
    Any ideas thoughts would be appreciated.
    Below is my sample code:
    PdfStamper ps = null;
    try {
    // read existing PDF document
    PdfReader r = new PdfReader(
    // optimize memory usage
    new RandomAccessFileOrArray(Request.MapPath("itext.pdf")), null
    ps = new PdfStamper(r, Response.OutputStream);
    // retrieve properties of PDF form w/AcroFields object
    AcroFields af = ps.AcroFields;
    // fill in PDF fields by parameter:
    // 1. field name
    // 2. text to insert
    af.SetField("txtCompany", "Company name");
    af.SetField("txtDateDepartLocation", "date depart location");
    af.SetField("txtDate","test date");
    af.SetField("txtServiceNumber", "Service number");
    af.SetField("Table2.Row1.Cell1", "1test");  this works
    //doesnt work!!!
    af.SetField("Table2.Row2.Cell1", "1test");
    af.SetField("Table2.Row3.Cell1", "1test");
    // make resultant PDF read-only for end-user
    ps.FormFlattening = true;
    // forget to close() PdfStamper, you end up with
    // a corrupted file!
    ps.Close();
    catch { }
    finally { if (ps != null) ps.Close(); }

    Hi FourEyes;
    Try using this.
    Select Col1, Col2, Col3
    into :P1_Field1, :P1_Field2, :P1_Field3
    from Your_Table
    Where (your conditions);

  • Dynamic Form to Stop repeating when page is full

    I have a dynamic form with a repeating subform .. I want the form to stop repeating once it reaches the end of the page (whether horizontally or vertically)- At the moment, it goes off the page & continues repeating.. Is there a solution for this?
    Thank you!!

    Thanks, but the problem is Im designing a form similar to a blog that grows horizontally & vertically depending on the post / (subform instance) you reply to.. so there is no way of knowing at what instance it will reach the end of the page.. It might be the 10th or the 17th for example...
    Any help will be very greatly appreciated!
    Thanks

  • Get values from dynamic form items

    Hi All,
    I create a dynamic form with text input component
    private function buildForm():void{
                    var numberOfColumns:Number = 5
                    var formItem:FormItem = new FormItem();
                    var hBox:HBox = new HBox();
                    for(var i:Number=0; i< numberOfColumns; i++) {
                        var formInput:TextInput = new TextInput();
                        formInput.text = "test";
                        formInput.id = "txt_" +i;
                        hBox.addChild(formInput);
                    formItem.addChild(hBox);
                    loansForm.addChild(formItem);
    I can see the text input components, update the values.
    How can I get the updated values from the input components?
    I try  this["txt_" + i].text  but not working. It's not finding the component with the dynamic value.
    Any ideas?
    Thanks
    Johnny

    Hi,
    Here is the related thread, u will get some help
      http://forums.adobe.com/message/3075226
    Thanks and Regards,
    Kanchan Ladwani | [email protected] | www.infocepts.com

  • How do I translate a dynamic form from english into spanish?

    With your assistance, I was able to create a dynamic form with expandable text fields. Now I am being tasked with translating this form from English into Spanish.  I do not know how to edit the words in the text box captions so that the appropriate accents are added.  Currently, the text font is Myriad Pro.

    Hi,
    check my example.
    It explains how to design multiligual forms.
    http://thelivecycle.blogspot.com/2010/01/multiligual-forms.html

  • Tags in dynamic forms

    Has anybody create dynamic forms with tags?
    For me it is not possible to do this, only static forms can hold tags (Designer 8.o and 8.1 ES).
    So it is impossible to create accessible, dynamic PDF-Forms with Designer technology - is this the reality?
    regards
    Jan Hillmer

    Thanks Mike. I've been banging my head against the wall all day trying to figure out why my Livecycle Designer 8 forms aren't tagged. I couldn't find any info searching the Adobe site (I REALLY suck at google-like searches). Is there a known issues document that you can point us to that might have more info about current problems with tagging dynamic forms?

  • Re-display repeating XML data in dynamic form

    I have a dynamic form with repeating data in my XML that populates it. I need to display the repeating data in one of 2 different ways, depending on which business segment the user viewing it is associated with. I have tried 2 ways to accomplish this, neither has worked for me.
    Attempt 1: Create 2 separate subforms and hide the one that should not be shown. The first subform in the layout displays just fine and is populated with records, but the second subform never displays any records. This appears to be an issue with the XML node already having been parsed and displayed and does not get displayed again. Is there a way to move the cursor, or pointer, or whatever you call it in XML-speak back to the top of a repeating node to re-display data?
    Attempt 2: Create a single subform that contains 2 other subforms - one for each view, which lay atop each other. A script command hides the view the shouldn't be displayed. The problem I ran into here is that the records don't display properly. In my example, there are 3 records in the repeating section, the first displays fine, the second is missing some fields and is pulling some data from the first record. The third record displays no data at all. I deleted the one of the 2 subforms and previewed the form again, now all of the records displayed just as they should.
    Any ideas or suggestions would be appreciated.
    Thanks,
    Chad

    That code also produces text in the textfield.  What "specific parts" are you trying to display?
    textfield.text = (xml.bar[0].text());
    textfield.text = (xml.bar[1].text());

Maybe you are looking for

  • My computer crashed, how do I get my songs on my new one?

    My computer crashed and I lost everything. How can I get my songs on to my new computer?

  • JSF HtmlPanelGrid formatting

    I am creating dynamic HtmlPanelGrid so that certain cells need to render with NO content and in different colors. Basically I do the following: private HtmlPanelGrid getMyGrid(String myParam){    if (this.myGrid == null) {        this.myGrid = new Ht

  • I'm having problems with Windows7 and latest itunes

    There seems to be a compatibility issue with Windows7 and the latest version of itunes. The app will initailly launch when you boot up the pc, but if you exit and try to relaunch the app it dos not respond. I've installed an older version and it seem

  • Using Acrobat.dll

    HI, I am trying to direct print a pdf using visual c# and acrobat.dll without installing acrobat 11 pro. the dll is registered. however I am still getting the class not registered error. Any suggestion ?

  • Missing CRT - for Enhancement Pack 6 SP6 Upgrade

    performing an upgrade on on the config phase of the prepare i get an error due to a missing CRT file - 2EETN388 The following CRTs of the Add-On "FI-CAX" rel."604" must be included as well: 3WETN389 CRT &4"SAPK-60406INFICAX" for Support Package &1"SA