<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Why can't a secondary data connection be both submit and receive?</title><link>https://www.infopathdev.com:443/forums/thread/51378.aspx</link><pubDate>Wed, 03 Feb 2010 22:24:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:51378</guid><dc:creator>Sean Sharepoint</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/51378.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=51378</wfw:commentRss><description>&lt;p&gt;Hi Hilary,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I am having a similar problem, I have a receive data connection that receives data from a web service method that requires an input parameter, which pulls data from a database. When I create the data connection,&amp;nbsp;I set the value to&amp;nbsp;a Username (pk)&amp;nbsp;in the database. But I need this to be determined dynamically in the form (every employee has a unique username, so I am using&amp;nbsp;set&amp;nbsp;a default text box&amp;nbsp;username() function, and&amp;nbsp;I want to pass in that&amp;nbsp;value&amp;nbsp;as the parameter&amp;nbsp;).&amp;nbsp;How do I do this? &lt;/p&gt;
&lt;p&gt;&amp;nbsp;I saw that you mentioned using rules to do this, so I have tried to use the field that pulls userName(), and put a rule on it to set the queryField in my data connection to this fields value. but when I preview the form, I get this error: There is an error in XML document (1, 434). ---&amp;gt; System.FormatException: Input string was not in a correct format. &lt;/p&gt;
&lt;p&gt;&amp;nbsp;This userName parameter is definitely a string throughout my web service, stored procedure, and table, and the text box in InfoPath is a string, so Im not sure why this&amp;nbsp;happens. If I try to&amp;nbsp;preview a new&amp;nbsp;form&amp;nbsp;with this only this data connection, and not even any text boxes, I get the same error&amp;nbsp;when the form loads.&lt;/p&gt;
&lt;p&gt;Any&amp;nbsp;ideas? Thank for your help&amp;nbsp;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Why can't a secondary data connection be both submit and receive?</title><link>https://www.infopathdev.com:443/forums/thread/50221.aspx</link><pubDate>Wed, 30 Dec 2009 12:29:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50221</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50221.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50221</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Yes, it&amp;#39;s working for me now.&amp;nbsp; I don&amp;#39;t know why I couldn&amp;#39;t get it to work in both directions yesterday.&amp;nbsp; Thank you for the reply, Hilary.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Why can't a secondary data connection be both submit and receive?</title><link>https://www.infopathdev.com:443/forums/thread/50207.aspx</link><pubDate>Tue, 29 Dec 2009 23:55:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50207</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50207.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50207</wfw:commentRss><description>&lt;p&gt;If your web service takes parameters, they show up as query fields when you create a receive type secondary data connection to that web service. In your form, you can use rules on a field or a button to populate those query fields and then run the query -- which would return the data based on those parameters. Does your web service have parameters? Are you having a different experience when you create a secondary data connection to it?&lt;/p&gt;</description></item><item><title>Why can't a secondary data connection be both submit and receive?</title><link>https://www.infopathdev.com:443/forums/thread/50199.aspx</link><pubDate>Tue, 29 Dec 2009 15:02:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:50199</guid><dc:creator>David Fingerhut</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/50199.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=50199</wfw:commentRss><description>&lt;p&gt;Can someone explain why you can&amp;#39;t pass a parameter to a web service, as a secondary datasource, and have it return some data?&lt;/p&gt;
&lt;p&gt;Since InfoPath can pass parameters (submit) to a web service and can get back data (in the form of a datasource) that it ought to be able to do both with the same secondary data connection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What&amp;#39;s the reason??&lt;/p&gt;
&lt;p&gt;The only workaround I can think&amp;nbsp;of is to&amp;nbsp;use one webservice to store the parameters&amp;nbsp;as global variables in my webservice, and make different (submit) webservice which&amp;nbsp;uses those variables.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Dave&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>