Autofilling a Repeating Section - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Autofilling a Repeating Section

Last post 10-28-2012 07:32 PM by Gennady Vanin (Геннадий Ванин, Новосибирск). 9 replies.
Page 1 of 1 (10 items)
Sort Posts: Previous Next
  • 10-17-2012 11:25 PM

    Autofilling a Repeating Section

    Hello,

    please forgive me, I am new to Infopath and just started picking it up.

    Where can I find how to autofill a repeating section?  My form contains multiple fields (over 40, not a table) most of which will be the same when a repeating section is created.  Can I have the user hit the "Repeat Section" button and have the option to fill all the fields, or at the very least, fill them all automatically and have the user modify the few that need to be changed?

  • 10-18-2012 12:18 AM In reply to

    Re: Autofilling a Repeating Section

     OOTB (out-of-the-box,

    in Infopath form template one can either/or

    The latter (creating multiple sharepoint list items from from an Infopath form)
    can be done  only if one choose in Infopath Designer, on ribbon

    • File > New > Sharepoint List > Design Form and during followed Data Connectin Wizard have chosen "Create a new Sharepoint list" and "Manage Multiple List Items With This Form" .

    Note that this cannot be changed later if these options were not chosen during Infopath form (and simultaneously Sharepoint list) creation

     

    Then you can create data fields in Main Data Source and drg'n'drop it on Design surface of Infopath template form. 

     Sharepoint List template in IPD (Gennady Vanin)

     Fug.1. "Sharepoint List" template in IPD

     Create a New Sharepoint List Form in Data Connection Wizard to a sharepoint list (Gennady Banin)

     

    Fig.2. Create a New Sharepoint List Form in Data Connection Wizard to a sharepoint list 

     Manage Multiple List Items With This form (Gennady Vanin)

     Fig.3. Manage Multiple List Items With This form (Data Connection Wizard in Infopath Designer to a sharepoint list) 

     

    Creating Multiple sharepoint list items in repeating section of Infopath Sharepoint List Form Fig.4. Creating Multiple sharepoint list items in repeating section of Infopath Sharepoint List Form   

     Result of (multiple) New Item creation in repeating section

     

    Fig.5.. Result of (multiple) New Item creation in repeating section of Infopath form 

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
  • 10-18-2012 07:30 AM In reply to

    Re: Autofilling a Repeating Section

    What would they be automatically filled with? That is, would the new repeating section have the same values the one before? Or would default values for the fields do the trick?
    Hilary Stoupa

  • 10-18-2012 04:53 PM In reply to

    Re: Autofilling a Repeating Section

    Thanks for your reply.  The repeated section would have a copy of  the values inserted in the previous section.

  • 10-19-2012 08:54 AM In reply to

    Re: Autofilling a Repeating Section

    You can use defaults for this that use preceding-sibling. I've attached a sample form. There is a link to the form in the header of this post - right click and save as to save locally. Then right click and select design to open in design mode. From there you can preview and try it out. The fields in the repeating table all have default values.

    Hilary Stoupa

  • 10-25-2012 11:12 PM In reply to

    Re: Autofilling a Repeating Section

    Hilary,

    Thank you very much for your reply and form. I have finally figured out why I was not able to get it to work...so simple, I was making it way harder than it needed to be.

    Thank you VERY much.  I do not know how I could help you but I wish I could.  Thanks again.

  • 10-26-2012 08:13 AM In reply to

    Re: Autofilling a Repeating Section

    I am so glad you are all squared away!
    Hilary Stoupa

  • 10-28-2012 01:45 PM In reply to

    Re: Autofilling a Repeating Section

    HI Hilary,

    I wonder if you can reccomend a quick guide to Infopath...There are little things that I am struggling with... As an example, using preceding-sibling---if the field is an attribute instead of an element, how do I write the formula for that?

    Eg, Logically I see it as ../preceding-sibling::my:Group[1]/my:Field/my:Element but this does not work... 

  • 10-28-2012 01:48 PM In reply to

    Re: Autofilling a Repeating Section

    HI Hilary,

    Do you recomend an Infopath quick quide or training course?

    I am struggling with adding an attribute to the sibbling formula: ../preceding-sibling::my:group[1]/my:element works fine but ../preceding-sibling::my:group[1]/my:element/my:attribute does not.

  • 10-28-2012 07:32 PM In reply to

    Re: Autofilling a Repeating Section

    Hilary Stoupa, "Complex XPath Expressions - September 20, 2012 Webinar"

    Wanted to enclose an archive with Infopath XSN template and PowerPoint illustrations from it but got: " The maximum file size allowed is 256kB. Please select a valid file", so request it through Email

     

    Gennady Vanin (Novosibirsk) --- Геннадий Ванин (Новосибирск)
Page 1 of 1 (10 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.