Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / September 2004

Tip: Looking for answers? Try searching our database.

And another bug: calling a web page 3 to 4 times, instead of once.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Tarazi - 24 Sep 2004 14:29 GMT
Hi



Here is another problem that we just discovered at the end of the implementation; the problem is that when a form is opened using a web page, this form keeps calling the web page multiple times, and that is duplicating our data or slowing down the system.



Here is the entire process:



1-      There is an InfoPath form published on a web server.

2-      There is a web page (IxGenerate.aspx) that provides the end user with links to open the InfoPath forms.

3-      The links are something like this http://...../IxGenerate.aspx?OperationId=LoadClientProfile&Key1=1&Key2=5

4-      When this link is clicked, the web page will extract the keys, and then call the internal software structure that will build an xml file for the InfoPath form.

5-      Then the web page will simply print the xml on the browser, and that will cause InfoPath to open.



Sample code:

this.Response.ContentType = "application/ms-infopath.xml";

this.Response.Write("<?xml version=\"1.0\"?>");

this.Response.Write("Processing Instructions");

this.Response.Write("The xml document");



Until this point everything is ok, but when the form starts loading, it calls IxGenerate 2 more times (during the load process), this cause the server to generate the xml file 2 more times (the xml file size can go up to 10MB if there are attachments).



But anyway, a bug that we are willing to live with.



Now, there is a another link that must create a new record in the database, and load the newly created form

http://...../IxGenerate.aspx?OperationId=NewClientProfile

The first time the link is clicked, the code generates the form, and loads it to InfoPath, InfoPath then calls the same link 3 more times (internally) and creates 3 more forms (the number of times the vary depending on the operation system).



I debugged the server side and captured the 3 calls, but I was not able to find anyway to differentiate between them, they have the same information, parameters, the next 2 calls are not aspx post back, etc.



So back to the oldest question:



Is there a way on planet earth, to click on a link on a web page, a link with parameters, and this link to open an InfoPath form with these parameters, the right way (no multiple internal unnecessary calls), and that form to open and load the data?



And because after 6 months of development, I realized that this is almost impossible, can you have it possible next service pack please? Otherwise, what is the point of using InfoPath for software development if a form cannot receive parameters? :-)



Thank you
Steve van Dongen [MSFT] - 25 Sep 2004 23:39 GMT
>Hi
>
[quoted text clipped - 39 lines]
>
>And because after 6 months of development, I realized that this is almost impossible, can you have it possible next service pack please? Otherwise, what is the point of using InfoPath for software development if a form cannot receive parameters? :-)

Joel's original message on this topic does not appear to be archived
but you can see it in one of the responses in the thread.
http://groups.google.com/groups?selm=OZvax2biDHA.616%40TK2MSFTNGP11.phx.gbl

Regarsd,
Steve
--
Please post questions to the newsgroup; everyone benefits.
This post is provided "AS IS" with no warranties, and confers no rights
Sample code subject to http://www.microsoft.com/info/cpyright.htm
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.