Repeat a subform

Hi all,
I'm working on creating a pay statement for a company, and so far everything is working nicely.  I have run into one problem though.  I have mulitple subforms in the main subform.  If any of the subforms contain too much information, they just keep running down the page.  What I am trying to do is get the subform to continue on the next page, but only if it exceeds the size of the subform it is contained within, and it doesn't matter where on the page the subform is.
The subform is in the middle of the page, but if it exceeds the area that it is displayed in, I want it to continue on the next page.  I've done some reading, but a lot of the information I see just talks about if the form flows past the end of the page, then it will continue on the next page.  I do have areas of the pay statement where the information needs to stay within.
The other thing too, is there are certain sections of the form that I want the information to repeat on the next page, but not all of it.  Still trying to figure out how to do that.
Any suggestions?  I am using Livecycle Designer 8.1.
Hope this makes sense.
Kevin

For the overflowing subform issues use masterpages to set the area on the page where you want the subform to go and then when it overflows onto the next page it will stay within that area.
Re repeating information on another page you can either use binding (under Object > Binding) or use code (such as $ = page1.textField1).

Similar Messages

  • Adobe Form Repeat a Subform Every Page

    Hello Adobe Forum,
    I'm an SAP user and am creating an Adobe form (my first). I posted this in an SAP forum, but have yet to receive any feedback whatsoever so I thought it may be better to go to the Adobe experts themselves. I've run into an Adobe issue and am just spinning and spinning trying different techniques to make it work. Any hints would be greatly appreciated.
    In my content area I have three subforms. The first subform is positioned, the fields have to be placed correctly. The second subform is fundamentally a table header for the third subform, which is the rows of the data. All three subforms are wrapped in another subform that is flowed.
    Why would I do it like this? Well, the table in the third subform has control levels so it merges like rows nicely in this way when the first column rows are the same...
    So the first page of my document would look like this...which is what I want.
    H is repeated for every page. So it is on the Master page. That's easy.
    1 is the 'sub-header' and should only be on the first page. This works.
    2 looks like a header for the table, but is really it's own table because of formatting requirements and the values are dynamic. It looks nice, but shows up only on page one.
    3 is the data table. It works great too.
    Page one looks great. Page two looks like this... I can't get part 2 from above to repeat for every new page.
    I have tried numerous approaches, but nothing seems to work. I really need to stick with the control levels, and that keeps me from having one nice table with a header that repeats. Perhaps I've approached this fundamentally wrong?
    Here is my layout in case that helps at all explain my issue. I truly appreciate any help, this is the last hurdle on my form and then it's done. I'm sure a seasoned Adobe person may quickly see the err of my ways.
    Thanks,
    Greg

    Not a solution I'm very fond of, but it works. I created a second page and put the table header on the master page there and moved the content area down a bit. I'd still like to force the subform to simply repeat, but I've got to move on.

  • Problem in repeating a subform with hidden text fields.

    Hi,
    Request advise on the scenario below:
    The form consists of one master page and a corresponding page that is flowed. This contains two subforms : One with address fields that are hidden with the subsequent fields moving up, when the previous field is hidden. The layout being :
    Name1
    Name2
    Addrs1
    Addrs2
    Addrs3
    in the absence of anyone of these fields the one below gets moved up. The second subform in the page consists of a flowed suform which gets repeated multiple times and spans across pages as the data overflows. The data binding comes only from one set of data item hence the option for repetition based on each data item seems impractical.
    Is there a way to display the address subform in the multipages created by the overflowing data, at the same position as in the first page? This couldn't be placed in the master page as then , the script for hidden fields doesn't work.
    Thanks in advance..

    Hi,
    Contact me at [email protected] to share a sample PDF.
    I just tried a sample for your requirements and it seems to be working.
    Nith

  • Adding instances: repeat a subform not available

    Hello,
    where's the problem when I can't reapeat a subform. Sometimes I can, sometimes not?
    And I thought I'm ready

    Got it :)
    If you have a subform in a subform like I have then you have to put both floated

  • How to compare and copy the fields from repeating subform to another subform, same structure.

    Dear All,
    I am using LiveCycle Designer 8.2.
    I have the following requirement, and did not figure out the best way to implement it using JavaScript.
    The Form has, say, Subform A with Repeating Inner Subform, say it has the Education History of the Staff.
    I want to put another Subform B, with similar structure to From A, and create a button/function to copy the field data values from A to B.
    Subform A will show the user the fields of education with Read-Only Mode.
    Subform B will show the user the same data values with write-enable mode. This subform will allow the user update his Education Records.
    The fields are:
    0. Staff ID: Text (Key 1) (always read-only and hidden, becuase it is on the main form),
    1. Degree: Text,
    2. Specialization: Text,
    3. Institution: Text,
    4. Start Date: Date (Key 2),
    5. End Date: Date.
    Another function is needed is to compare the same records between form A and Form B.
    (Note: The Education record of a Staff has primary key of Staff ID and Start Date. Meaning, the Staff cannot have tow different degrees in starting on the same date.)
    The user may change the Institution in form B or change the Degree. I need to highlight, on Subform B, the row which was changed or added by the user. This means I need to do lookup against Subform B using the Key Values from Subform A.
    I have already developed the Form, and I have about 5 Subforms to allow updated by Staff: Education, Experience Inside the company, Experience Outside the company, Job Skills, Membership Record, ..etc. One thing I did is that the Field Names I used in Subform A are not the same of the fieldname in Subform B, but the have same suffix, and different prefix. For example, for the Education:
    Subform A - Original Values:
    1. Degree: OrgDegreet,
    2. Specialization: OrgSpecialization,
    3. Institution: OrgInistitution,
    4. Start Date: OrgDateStart (Key),
    5. End Date: OrgDateEnd.
    Subform B - Updated Values:
    1. Degree: UpdDegreet,
    2. Specialization: UpdSpecialization,
    3. Institution: UpdInistitution,
    4. Start Date: UpdDateStart (Key),
    5. End Date: UpdDateEnd.
    I understand if the Key field is updated, then it is like it was deleted, and added a new one.
    I know how to do that in ASP.NET, but need help in Adobe LiveCycle using JavaScript.
    Please help me to write these two functions, as they are very urgent requirement.
    Tarek.

    In the event Exit of the 1st subforum.invoice you will find the code to assign the value to it's "brother" on page4.
    Also, on the add button i added the code to add a record to the page4 subforum.
    To make this work you will have to copy/past the code of the exit event to all fields you want to copy and in the xfa.resolvenode("XXXXXXX[].fieldName") command replace fieldname with the actual name of the field you're at.
    I didnt't do anything to te remove line button because i don't know how you want it to work, but, if you want to control the p4 subform with the p1 subform, you shouldn't allow for lines to be removed directly in the p4 subform.
    Hope this helps.

  • How to make SubForm to repeat on each page of the PDF

    Hi all,
    I have an I-form, which "floats" on 2 or more pages. My problem is that I want to repeat a SubForms as a header(or a footer) on each page of the document. Any idea how can I do that.
    Many thanks in advance
    Z.
    Edited by: Zdravko Kalenderov on Oct 16, 2008 11:13 AM

    Hi,
       Yes ,If you want to display the same content in all body pages , you just design repeatable part in the master page.
    Thanks & Regards
    Manee

  • Calculating values from repeated fields.

    I have a subform that repeatable, how to i calculate a value from a fields from the repeated values?

    Hi,
    Try using the following FormCalc code on the "total" field which is outside of your repeating row/subform:
    total.rawValue = sum(form1.Page1.Row1[*].Amount[*]);
    Row1 - Repeating Row
    Amount - Column dedicated to Amount
    Hope this helps
    Thanks,
    VJ

  • Hide subform on 2nd Instance

    Please help me preserve my sanity.
    I have a subform (sfB) inside a repeating instance subform (sfA) that is hidden or visible depending on the Report Period selected with a radio button outside of sfA. I want sfB to be hidden for all sfA added by the user to the form for report period 1 but to be visible for report period 2.
    The first instance works properly. When I add additional instances of sfA, sfB is visible instead of hidden.
    This is a sample of the code I have on the radio button. I have this in the change event.
    if(this.rawValue==1)
    xfa.resolveNode("form1.sfA.sfB").presence="hidden";
    if(this.rawValue==2)
    xfa.resolveNode("form1.sfA.sfB").presence="visible";
    Please tell me what I am doing wrong. Sample code would be appreciated.
    Thanks
    Carol

    Thanks for your suggestion. I tried your code but the 2nd instance of subform A (sfA) does not hide the subform B (sfB) that appears in subform A.
    I have come up with a work around by embedding the code to hide sfB within sfA instead of outside of sfA. This works but it still does not solve the initial problem.
    I would be interested it someone knows how to resolve this.
    Thanks
    Carol

  • Subforms within subforms add Instance problem

    Hi
    I am new to Adobe Livecycle Designer (I am using version 8.2.1) but I have successful made nearly all elements of the quite long form I need to produce except for one section I am having difficulty getting it to function correctly. In the example I have a repeating subform ‘Organisation’ on page subform ‘Membership’ which has buttons to add and remove instances, which work correctly. But within each instance of this ‘Organisation’ subform is another repeating instance subform ‘ExpertNames’ with buttons to add and remove instances.
    The ‘Organisation’ form allows an organisation to be named and the ‘ExpertNames’ subform allows multiple members for that organisation to be named and associated to each organisation. The user should be able to list multiple organisations each with one or more members. I can successfully add multiple instances of ‘Organisation’ form one after another using
    Membership.Organisation.instanceManager.addInstance(1)
    and remove the selected instance using
    Membership.Organisation.instanceManager.removeInstance(this.parent.index)
    I have the following set on the button to add a new instance of the ‘ExpertNames’ form
    Membership.Organisation.ExpertNames.instanceManager.addInstance(1);
    and the following to remove the selected instance of the 'ExpertNames' form
    Membership.Organisation.ExpertNames.instanceManager.removeInstance(this.parent.index);
    However when I add a second instance of the ‘Organisation’ form i.e. a new organisation and try and add additional members to the 2nd organisation it adds them to the 1st organisation rather than the second! I have an example of the problem form i can send if needed.
    Hope someone will be able to help with this.
    Many thanks in advance
    Lara

    I still have not been able to find a solution to this does anyone have any ideas?
    I have an example of the problem in a form that I can email.
    Many thanks in advance
    Lara

  • Question on subform addInstance doesn't seem to work properly

    I have set up a dynamic form and have added a button to repeat a subform. I have the parent subform set up as flowed and have set up a script on the button I added to add an instance of the subform when the button is clicked. I followed the examples in the help screens and think everything is set up correctly but I can't get the subform to repeat once I click the add button. Help here would be greatly appreciated. I did get this to work for rows in a table but can't seem to replicate this for a subform to be added.

    I can't get your attached form.
    Please send your form to [email protected]
    Nith

  • Form Designed in LiveCycle will not work for End User

    Please Help!
    I am a newbie to Adobe LiveCycle but recognized the utility in the program, so decided to give it a while to try and streamline some of my employer's forms.  After spending too much time learning how to design a form (much to the dislike of my boss), I am finally going to have to ask for some help.  So here's the deal:
    I've designed a dynamic pdf in LiveCycle with two master pages and two repeating flowed subforms.  The first repeating subform is basically an expanding table intended to be used as a photographer's log where they can log each photo taken with the camera.  The expanding table has some code with a button at the top for the end user to enter the number of photos on the photo roll, click submit, and table expands to however many instances of rows are needed for each photo that was taken.  The second subform is basically an image field and text fields used as photo captions/photo compilation pages.  When the end user clicks submit on the first subform to expand the table, I also have javascript in that click event to also create same amouint of instances of the second subform (the photo compilation page(s)).  Each text field for the photo caption on the second subform is populated by the data entered into the photo log table cells.  I was able to find a script to correctly populate those fields for each instance of the table.  Wish I had the form here, but it's at work at the moment.
    My problem is this: I've scratched and clawed to get all of the forms expanding correctly and the scripts populating each instance of the fields correctly and everything works great in LiveCycle preview.  I then saved the form as PDF for use by my field crew personnel (whom all use, at the very least, Adobe Pro 9, but most Pro X).  I sent the new form to them and they move it to their desktop, open it with Adobe Pro, and populate all of the fields and everything works swimmingly.  However, once they save it, it gets all jumbled and they can't even print it.  We even thought we found a workaround by entering all data and printing to PDF, but even that has turned out to not work.  I checked to make sure that I designed and saved the form in LiveCycle for use with the Adobe Pro versions, but still not working for my end users.
    Anyone have any thoughts on my long explanation??  Please HELLLLPPPP!

    The error(s) occur when trying to save the document.  I want each user to tell the first page how many rows they will need in the photo log table, so they would enter however many photos were taken in the box: "Number of Photos on Roll:"  ---> Then click the "Submit" cmd button.  That should expand the table.  Once it expands, it should also add the same amount of instances of the photo compilation page (2nd Page) as there are rows in 1st page table.  Then the user will populate each cell of the table on page 1 with data.  The data entered into the page 1 table cells will populate the text fields (photo caption) in Page 2 once the user clicks on the "Populate Captions!" cmd button in the lower left corner of the table on Page 1. 
    The problem is in the distributing of the form to the user so they can save the form after populating the data.  I did a test run this morning and for some reason it did do the "print to PDF" correctly for 5 photos on the roll (though this has not been happening every time and especially for a large number of pages, ie. 80 photos).  However, after entering the data for 5 rows on page 1 and then populating the 5 photo compilation pages, I saved a copy as "Save As PDF" and closed the document.  Then re-opened the copy in Acrobat Pro X.  The new copy:
    -had 5 additional rows added to Page 1
    -Duplicates of some of the fields
    -Only retained the 1st instance of the Second Page (Photo w/ Caption) and not all fields were populated
    Again, this all works fine in the LiveCycle Preview but not anywhere else.  I do not have this set up to be linked to an external data source (YET) but there is javascript in the cmd buttons.  I also do not want to distribute this form to end users and then collect the data back from them.  I want them to be able to save a copy of my LiveCycle designed form, open in Adobe Pro, populate the data and save as many copies as needed for form production.

  • Dynamic creation of UI components

    Hi All,
    I have to generate <h:inputText > dynamically when i click on a link, in the bean i am creating few UI components under a panel grid and returning , but the grid is not rendering on the page ,here is my code
    <h:panelGrid columns="2" binding="#{dynamic.formElements}">
    <h:outputText value="dynamicGrid"></h:outputText>
    </h:panelGrid>
    public HtmlPanelGrid getFormElements() {
              HtmlPanelGrid grid = new HtmlPanelGrid();
              List<UIComponent> children = grid.getChildren();
              HtmlOutputText t1 = new HtmlOutputText();
              t1.setValue("Gender:");
              children.add(t1);
              HtmlPanelGroup group = new HtmlPanelGroup();
              List<UIComponent> c = group.getChildren();
              HtmlSelectOneMenu menu = new HtmlSelectOneMenu();
              menu.setId("i01");
              menu.setRequired(true);
              c.add(menu);
              // populate the drop down list
              HtmlOutputText t2 = new HtmlOutputText();
              t2.setValue(" ");
              c.add(t2);
              children.add(group);
              grid.setRendered(true);
              return grid;
    Thanks in advance, pls reply soon its urgent

    Hi,
    subForm1:-
    Flow content
    Allow page breaks
    Place: following previous-----> This means when you are repeating the subform the previous one should be followed.
    Say you have a table and have 3 columns in it.
    After 1st column is completed, the next column should come with 1st comun
    After: Continue filling parent--->Continously fill the data with the parent element
    Repeat sub form min count is 1 : Minimum of 1 line item will be printed
    Height: Expand to fit is true.: If the field height is increased it automatically expands.
    For help in Adobe Press F1 or Goto Help--> Adobe Designer Help in Adobe Designer
    After installing Adobe Designer, goto the specific folder
    C:\Program Files\Adobe\Designer 8.0\EN you can get sample documents.
    For help press F1 after opening designer.
    Sub Form1: Content--> Flowed, Flow direction --> Top to bottom
                       Binding --> Check the checkbox Repeat Subform for each data item
    Subform 2: Content --> Positioned, No pagination No binding settings changes needed.
    Hey i forgot to mention the Header Subform where you create all these subforms should be flowed.
    Try it once like this and lte us know
    Edited by: Sankar Narayana on Oct 3, 2008 5:06 PM

  • Dynamic Creation of UI in adobe forms??

    Hi Experts,
    I need to create a dynamic interactive form and dynamic UI elements in the interactive form.
    As per my requirement I need to display a pdf and I will be getting values from the RFC's. I need to show the form segments and the UI elements only when there's a data from the RFC else not. I am unable to understand whether this requirement needs generation of the UI elements dynamically or I can do it statically as well.
    The form thus generated will be having data from the RFC which based on the data quantity may exceed to n number of pages.
    In case it needs dynamic creation can you suggest me please how to achive it in interactive forms?
    Helpful answers will be appreciated.
    Warm Regards,
    Gaurav

    Hi,
    subForm1:-
    Flow content
    Allow page breaks
    Place: following previous-----> This means when you are repeating the subform the previous one should be followed.
    Say you have a table and have 3 columns in it.
    After 1st column is completed, the next column should come with 1st comun
    After: Continue filling parent--->Continously fill the data with the parent element
    Repeat sub form min count is 1 : Minimum of 1 line item will be printed
    Height: Expand to fit is true.: If the field height is increased it automatically expands.
    For help in Adobe Press F1 or Goto Help--> Adobe Designer Help in Adobe Designer
    After installing Adobe Designer, goto the specific folder
    C:\Program Files\Adobe\Designer 8.0\EN you can get sample documents.
    For help press F1 after opening designer.
    Sub Form1: Content--> Flowed, Flow direction --> Top to bottom
                       Binding --> Check the checkbox Repeat Subform for each data item
    Subform 2: Content --> Positioned, No pagination No binding settings changes needed.
    Hey i forgot to mention the Header Subform where you create all these subforms should be flowed.
    Try it once like this and lte us know
    Edited by: Sankar Narayana on Oct 3, 2008 5:06 PM

  • Using Adobe LiveCycle Designer ES and secure parts of form using signatures.

    Hi to all ...
    I have upgraded to new LiveCycle Desinger 8.1 few days ago, and still do not know all the new features.
    I was requested to develop new LiveCycle Form, but this time it has to be secured by Digital Signatures or what every appropriate method.
    The form has exactly 2 sections and 2 Digital Signatures:
    1. The first section/part is to be filled by the Staff (let us call him the Authoring Staff).
    Any one can fill the first part.
    After the first part is signed, the Data Entry on the first part should be locked, and no one on Earth should be able to change the data on the first part. Only the signer of the first part is allowed to update/clear the signature but only and only of the Second part is not yet signed.
    The staff should not be allowed to sign the form unless all mandatory fields and other validation logic is statisfied.
    Only the Signer of the Form and special authorized staff/group of staff will be allowed to open the form. Let us call them Group01.
    2. The second section/part is to be filled by special authorized staff/group (say Group02), they are basicall HR Staff (this is a secret).
    The second part can only be filled if the first part is filled and signed by the Authoring Staff.
    The second part can be signed only if the validation logic on the second part is true (no errors, and all mandatory fields are filled).
    Once the second part is signed, the first part the the second part should be locked, and no one on earth should be able to change anything on the form.
    Only the signer of the form should be able to clear the signature of the 2nd part and make any changes requried.
    If the 2nd part is signed, the Authoring Staff should not be able to change anything on the form.
    *****End of Requirements.*****
    I have just started, and I am requested to desing the form and implement the required security in 10 days only.
    Can any one please help me ?
    I am doing my research now.
    Thank you.
    Tarek.

    Dear Dfoto,
    Thank you so much for being so kind to spend the effort and reply back, I though my question was left behind the sun... but now I am very happy in deed.
    To be more specific, the Form has 2 parts. The first part "Subform1" any one can fill and sign.
    The second part "Subform2", only certain users can fill and sign.
    I think I found a very strong lead to my solution, when I was playing with LiveCycle Desinger few days ago.
    On the Singature Field Advanced Setting, there is a place you can attach the public part of a certificate (Digital Signature) of any user, one or more.
    In this part, you tell LC that only those users "signing parties" can sign the field. I tested it and it worked.
    Now, if I can use this feature via JavaScript to find out if the user who is filling the form, can sign this field, then he can fill the form. If he cannot sign the field, then he cannot fill the form. I can do that by setting the "access" property of the Subform. Another solution is that I can prevent the user from hitting the "Submit" button unless he signes the designated Signature Field.
    I have another small issue:
    I found out that if the Signature field is part of a repeating dynamic Subform, it will not work during run-time. Very bad in deed. While I cannot understand why ?, I tool this as "By Desing" feature.
    Now, if the Signature is locking parts of forms which has dynamic content (repeating subforms), it will always show somthing like "Signature is corrupted or form was changed after it was signed".
    Is this normal ? Is there a way to control Dynamic Forms using Digital Signatures without such annoying issues ?
    Thank you.

  • Positioning a picture placeholder generated by a button

    Hi. Have built a form in LiveCycle to be completed via reader. Has buttons to add optional repeating 'Opportunity' subform.
    Within this subform there is a button to generate an additional picture placeholder subform.
    Problem is can generate 'Opportunity' subforms (2, 3 etc) but additional picture placeholder always appears in first instance of opportunity subform regardless whether generated from button in (say) opportunity subform 3.
    Phew!
    Maybe easier to have the whole file?
    No option to upload here anymore?
    Thanks

    Hi Steve
    Image placeholder is an image filed with defined dimensions
    form1.OpportunitySubform.PicandTextSubform.PicSubform.AddPictureButton::click - (JavaScript, client)
    // nSubLength stores the number of XML elements contained in Subform1.
    // var nSubLength = OpportunitySubform.nodes.length;
    // nNumSub is used to calculate the number of subform objects contained in Subform1.
    // var nNumSub = 0;
    // This script uses a For loop to cycle through all of the objects contained
    // in Subform1.
    // for (var nCount = 0; nCount < nSubLength; nCount ++) {
    // If the current XML element in Subform1 is of type subform, then increment
    // the variable nNumSub by one.// if (OpportunitySubform.nodes.item(nCount).className == "subform") {
    // nNumSub = nNumSub + 1;
    // An if-else statement is used to prevent form authors from adding more than the
    // maximum number of five subform instances to a form.
    // if (nNumSub == 5) {
    // xfa.host.messageBox("The maximum allowable number of subforms is 5. You cannot add any more subforms.", "Warning", 3);
    // else {
    // This script uses the addInstance() method to add a new instance of the
    // Subform2 object contained in Subform1.// form1.OpportunitySubform.PicandTextSubform.PicSubform.instanceManager.addInstance(1);
    if  (form1.OpportunitySubform.PicandTextSubform.PicSubform.instanceManager.count<5) {
    // This script uses the addInstance() method to add a new instance of the
    // Subform2 object contained in Subform1.form1.OpportunitySubform.PicandTextSubform.PicSubform.instanceManager.addInstance(1);
    }else {xfa.host.messageBox("The maximum allowable number of subforms is 5. You cannot add any more subforms."
    , "Warning", 3);}
    That's the code. Can add a new subform 1 fine.
    If I then generate a new pic in the second instance of subform 1 it places the pic in the first instance of subform 1.

Maybe you are looking for