G
G. Tarazi
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
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