Data Connections causing Inserting a new row to a Repeating table to act slowly - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Data Connections causing Inserting a new row to a Repeating table to act slowly

Last post 10-29-2012 08:11 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 10-26-2012 06:32 AM

    • Tank86
    • Not Ranked
    • Joined on 10-26-2012
    • Posts 5

    Data Connections causing Inserting a new row to a Repeating table to act slowly

    Hi,I am designing an InfoPath 2007 form which has a repeating table that contains two rather large Data connections linked to SharePoint lists.  The trouble is, when inserting additional rows this gets slower and slower the more I try to add.  Is there any way I can speed this up?I was thinking i maybe able to do some via some code.  I already have some jscript code running in my form for various actions and was trying to find something that i would be able to use to enter a particular number of rows into the repeating table as I know how many rows need to be added based on another field already within the form.  I have only managed to find how to add one line at a time on a button click.  Not sure if this is the best way to do this, but open to suggestions.

    function btnAddRow::OnClick(eventObj)

    {

    XDocument.View.ExecuteAction("xCollection::insert", "group4_1");

     }

     Anybody able to assist?

  • 10-26-2012 11:21 AM In reply to

    Re: Data Connections causing Inserting a new row to a Repeating table to act slowly

    Consider checking out qRules which containts an Insert function that does exactly what you need.  A trial version can be found here: http://www.qdabra.com/en/products/qRules_new.aspx

    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 10-27-2012 01:25 AM In reply to

    • Tank86
    • Not Ranked
    • Joined on 10-26-2012
    • Posts 5

    Re: Data Connections causing Inserting a new row to a Repeating table to act slowly

    Hi, thanks for the response getting 3rd party software installed on our servers is not easy and therefore think code would be easier if i could.

     Thanks

    K

     

  • 10-29-2012 08:11 AM In reply to

    Re: Data Connections causing Inserting a new row to a Repeating table to act slowly

    You can find a lot of code samples for this on line - here's one sample.

    However, I would not assume that the insertion of the rows is causing your performance issue, nor would I assume that code will cause this to execute more quickly. It seems more likely that the issue is caused by the form rendering more slowly as the rows are added. Is your form posting back each time you add a row using the built in functionality? That is, do you get the "sending data to the server" message?

    Hilary Stoupa

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.