taking 5-10 minutes to open a form

taking 5-10 minutes to open a form

Post by Ankit Tyag » Sat, 28 Jan 2006 22:06:49


We are using an XSD which is including various XSD's and resulting in huge
data source. When we make form ,from this huge XSD data source, the form
takes 5-10 minutes to open.
Is this a normal problem or there is some way to get rid of this time
consuming act.

--
Thanks and Regards
Ankit Tyagi
 
 
 

taking 5-10 minutes to open a form

Post by QmVuIFdhbH » Wed, 01 Feb 2006 07:35:28

Hey Ankit,
there are a couple of things that could be causing this delay

1: Querying Data sources on start up, when you create data connections in
InfoPath by default they will attempt to execute when the query when the form
loads. If the data from theses connections is not required till latter then
query the data when its required not on load.

2: Mapping fields to events in managed code, if you have lot of controls on
your form that all have events linked up to them then infopath has to map
each of these events to controls via the data in the Manifest. this is very
slow, to get around this you can create a global event that uses a switch
statement to forward processing on to the correct method.

3:Excessive processing, this is an extension of number 2 basicaly if your
form is running a lot of processing such as validations etc when the form is
loading then this will slow it down as well.

There was a really good presso on this at Teched 2005 I'm still trying to
track down a link to it when I do I'll post back but until then I hop this
helps

Regards
Ben