<?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: Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/63977.aspx</link><pubDate>Tue, 08 Feb 2011 14:17:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63977</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63977.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=63977</wfw:commentRss><description>&lt;p&gt;Thank you, Thank You, Thank You.&amp;nbsp; That should have been obvious but I missed it.&amp;nbsp; I had almost given up on resolving this so I really appreciate your following up on this old request.&lt;/p&gt;</description></item><item><title>Re: Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/61209.aspx</link><pubDate>Tue, 09 Nov 2010 16:18:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61209</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61209.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61209</wfw:commentRss><description>&lt;p&gt;Hi --&lt;/p&gt;

&lt;p&gt;Is your data connection for your web service set to run on load? That is, it runs when the form opens AND in the open rule?&lt;/p&gt;</description></item><item><title>Re: Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/61204.aspx</link><pubDate>Tue, 09 Nov 2010 14:56:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61204</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61204</wfw:commentRss><description>&lt;p&gt;Anyone have any ideas on this?&amp;nbsp; We need to move to production&amp;nbsp;VERY soon and I really don&amp;#39;t want to add two records (one sequential but empty) to the database for every case we add.&lt;/p&gt;</description></item><item><title>Re: Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/61160.aspx</link><pubDate>Mon, 08 Nov 2010 16:40:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61160</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61160</wfw:commentRss><description>&lt;p&gt;The only rule is :&lt;/p&gt;
&lt;p&gt;Condition = if the field is blank&lt;/p&gt;
&lt;p&gt;Actions:&lt;/p&gt;
&lt;p&gt;Set a field value: (send User ID, required by web method)&lt;/p&gt;
&lt;p&gt;Query using a data connection: (call my web method)&lt;/p&gt;
&lt;p&gt;Set a fields value: (populate the field with the value returned from the web method)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Everthing appears to work exactly as intended, it just does it twice so every other record in the database is empty except for the sequential number.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/61159.aspx</link><pubDate>Mon, 08 Nov 2010 16:22:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61159</guid><dc:creator>Potemkine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61159</wfw:commentRss><description>&lt;p&gt;Hi, do you have some rules on &amp;quot;&lt;strong&gt;open behavior&lt;/strong&gt;&amp;quot; from &lt;strong&gt;form options&lt;/strong&gt; ?&lt;/p&gt;</description></item><item><title>Webservice is called twice, should be one time?</title><link>https://www.infopathdev.com:443/forums/thread/61157.aspx</link><pubDate>Mon, 08 Nov 2010 14:14:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:61157</guid><dc:creator>showet</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/61157.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=61157</wfw:commentRss><description>&lt;p&gt;I have a relatively complex InfoPath 2007 form without code that is misbehaving and I don&amp;#39;t know why.&lt;/p&gt;
&lt;p&gt;The form has one field that is used to create a unique name and a unique key in SharePoint and an Oracle database.&amp;nbsp; The field is populated using a rule under Form Options/Open and Save.&amp;nbsp; The rule simply says if the field is&amp;nbsp;blank, call a webservice that creates the unique number and populate the field.&lt;/p&gt;
&lt;p&gt;What the web service does is to grab the &amp;quot;next&amp;quot; (unused) number from a database and add a prefix to it, for example it gets 851 and adds CO2010 so the field is populated with &amp;quot;CO2010851&amp;quot;. The same web method adds a new record in the database with this number so a record exists for this number and cannot be used by another form being opened.&lt;/p&gt;
&lt;p&gt;After the field on the form is populated with the number&amp;nbsp;the rest of the form acts normally.&amp;nbsp; When the form&amp;nbsp;is finally submitted, the fields are copied to SharePoint and to the database through another web method.&lt;/p&gt;
&lt;p&gt;The problem is, when&amp;nbsp;a new&amp;nbsp;form is opened for the first time, somehow the webservice is ALWAYS called twice because it creates two records in the database with sequestion unique numbers, this is before the form is submitted, just when the form is opened for the first time.&amp;nbsp; I know the webservice is actually called twice because that is the only way the prefix for the number could be added and the number itself incremented.&amp;nbsp; &lt;strong&gt;What I can&amp;#39;t figure out is why the webservice is called twice.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Thanks for any help you can give.&lt;/p&gt;</description></item></channel></rss>