<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Getting data back to InfoPath browser form after submit action</title><link>https://www.infopathdev.com:443/forums/thread/57235.aspx</link><pubDate>Fri, 23 Jul 2010 12:22:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57235</guid><dc:creator>lestomos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57235</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for your reply, Patrick.&lt;/p&gt;&lt;p&gt;I have finally found the solution to my problem and would like to share it with future users who search for a solution in this forum: &lt;/p&gt;&lt;p&gt;1. I have added TRY-CATCH blocks to my stored procedures. &lt;/p&gt;&lt;p&gt;2. In the catch-blocks I have raised an error and passed error_message as parameter and added some text to it.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;3.&amp;nbsp; In the web service I have added TRY-CATCH blocks, so that when an exception from the database is raised the web service sends my custom error messages to the InfoPath client.&lt;/p&gt;&lt;p&gt;Thanks a lot, Patrick,&lt;/p&gt;&lt;p&gt;Lestomos&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Getting data back to InfoPath browser form after submit action</title><link>https://www.infopathdev.com:443/forums/thread/57186.aspx</link><pubDate>Thu, 22 Jul 2010 07:11:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57186</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57186.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=57186</wfw:commentRss><description>&lt;p&gt;Hi Lestomos,&lt;/p&gt;
&lt;p&gt;Have you considered submitting data using a Receive Data connection? You could write code that gets data from a Submit Data Connection too, but it might be simpler to do the Receive route. Otherwise, what you are doing makes sense. Do you really have a performance issue or is it just a performance paranoia? We do double submit and queries all the time without much in the way of a perf penalty.&lt;/p&gt;
&lt;p&gt;Happy trails,&lt;/p&gt;</description></item><item><title>Getting data back to InfoPath browser form after submit action</title><link>https://www.infopathdev.com:443/forums/thread/56998.aspx</link><pubDate>Fri, 16 Jul 2010 07:31:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56998</guid><dc:creator>lestomos</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56998.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=56998</wfw:commentRss><description>&lt;div class="ForumPostTitleArea"&gt;
&lt;h4 class="ForumPostTitle"&gt;
&lt;div class="ForumPostContentText"&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am developing an IP form which sends data to a web service that, in turn, calls stored procedures in an SQL-Server. This web service has only two methods that handle Submit and Receive IP actions, respectively. The IP submit data connections perform insert, update and delete queries, and the receive data connections just retrieve data, that is, they just carry out select queries. At the moment, I am trying to retrieve error messages from the database&amp;nbsp;and display&amp;nbsp;them on the InfoPaht client, in a TextField. &lt;/p&gt;
&lt;p&gt;So far, I&amp;nbsp;have been creating&amp;nbsp;IP rules with submit data and receive data connections. Si I first&amp;nbsp;submit&amp;nbsp;parameter to my web service, wich in turn&amp;nbsp;calls a stored procedure (insert, update or delete)&amp;nbsp;on my database. Subsequently, if an error occurs in the stored procedure, it is stored in the database.&amp;nbsp;The second action of this rule, the receive data connection,&amp;nbsp;looks up&amp;nbsp;an error message from the database, which is then displayed&amp;nbsp;by the InfoPath Client. It works like so:&lt;/p&gt;
&lt;p&gt;&lt;u&gt;&lt;strong&gt;INFOPATH CLIENT&lt;/strong&gt;&lt;/u&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;- - - - - - - - - - - - - - - - - - - - - - - - - - - -&amp;gt;&lt;strong&gt; &lt;u&gt;WEB SERVICE&lt;/u&gt;&lt;/strong&gt; - - - - - - - - - - - - - - - - - - - - - - - - - - -&amp;gt;&lt;strong&gt; &lt;u&gt;SQL SERVER&lt;/u&gt;&lt;/strong&gt; &lt;/p&gt;
&lt;p&gt;Rule:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Action 1: Submit Data&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Method SendData() called&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stored procedure called (insert, update or delete). If&amp;nbsp;error occurs, save it into table Errors &amp;nbsp;[1st SERVER ROUND-TRIP]&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Action 2: Receive Data&amp;nbsp;(error message)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Method GetData() called&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stored procedure called (select error message by id)&amp;nbsp; [2nd SERVER ROUND-TRIP]&lt;/p&gt;
&lt;p&gt;The two actions from the InfoPath client entail two server round-trips - one to call an insert,&amp;nbsp;update or delete&amp;nbsp;query and another to eventally retrieve errors that might have occured while inserting, updating or deleting data, and send them to the InfoPath client. For performance reasons, I would like to store, update or delete data in my database and eventually getting back an error message with just one server round-trip. My question is: &lt;/p&gt;
&lt;p&gt;Is it possible to get any data back to the InfoPath&amp;nbsp;client after performing a Submit Data action with just&amp;nbsp;one server round trip&amp;nbsp;or I will always have to add a Receive Data action in my rules to retrieve possible error messages?&lt;/p&gt;
&lt;p&gt;Thanks in advance,&lt;/p&gt;
&lt;p&gt;Lestomos&lt;/p&gt;&lt;/div&gt;&lt;/h4&gt;&lt;/div&gt;</description></item></channel></rss>