<?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>Workflow</title><link>https://www.infopathdev.com:443/forums/50.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/57558.aspx</link><pubDate>Tue, 03 Aug 2010 09:42:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57558</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57558.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=57558</wfw:commentRss><description>&lt;p&gt;&lt;strong&gt;ISSUE RESOLVED&amp;nbsp;!!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;if(thefield != null)&lt;/p&gt;
&lt;p&gt;{ //do something&lt;/p&gt;
&lt;p&gt;}&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That does not do it, because it&amp;nbsp;will always&amp;nbsp;throw an error and stops the workflow process if there is no value transfered. &lt;/p&gt;
&lt;p&gt;BUUUTTTT, I found out the way&amp;nbsp;for&amp;nbsp;Contact Selectors to &amp;quot;except&amp;quot;&amp;nbsp;empty&amp;nbsp;fields and still submit.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It will always&amp;nbsp;throw an error&amp;nbsp;if empty, therefore:&lt;/p&gt;
&lt;p&gt;try&lt;/p&gt;
&lt;p&gt;{ &lt;/p&gt;
&lt;p&gt;variable = GetContactsFromXML(xxxTaskAfterProperties[xxx_FORM_DATA_KEY]):&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;catch (Exception) { }&lt;/p&gt;
&lt;p&gt;Of course, from now on you always have to ask if variable empty or not to do something with the user(s), but that finally did the trick.&lt;/p&gt;
&lt;p&gt;I hope it helps someone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/57072.aspx</link><pubDate>Sun, 18 Jul 2010 00:21:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57072</guid><dc:creator>eddyblanco</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57072.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=57072</wfw:commentRss><description>&lt;p&gt;On your code have you try &lt;/p&gt;
&lt;p&gt;if(thefield != null)&lt;/p&gt;
&lt;p&gt;{ //do something&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56810.aspx</link><pubDate>Tue, 13 Jul 2010 16:00:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56810</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56810.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56810</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve implemented a similar rule (to set a blank field to a value before submitting) on other forms, just not with the contact selector. The Contact Selector is a bit &lt;a href="http://msmvps.com/blogs/benwalters/archive/2007/07/13/contact-selector-the-good-and-the-bad.aspx"&gt;difficult in the browser&lt;/a&gt;, some people &lt;a href="http://ddkonline.blogspot.com/2009/06/workaround-contact-selector-does-not.html"&gt;avoid it altogether&lt;/a&gt;.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56807.aspx</link><pubDate>Tue, 13 Jul 2010 15:15:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56807</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56807.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56807</wfw:commentRss><description>&lt;p&gt;Exactly right, have you done it yet?&lt;/p&gt;
&lt;p&gt;I tried that, I can prepopulate the contact selector with a dummy name on formload, but I was unsuccessfull to fill in the contact selector fields on submit (or even through a simple button click event). For some reason it only works if I can set the focus to the &amp;#39;DisplayName&amp;#39; field&amp;nbsp;and then&amp;nbsp;fill in the data. The next problem seems to be that you cannot&amp;nbsp;set the focus to a field in&amp;nbsp;a browser-based form. I&amp;#39;m going in circles here.&lt;/p&gt;
&lt;p&gt;Thanks&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56803.aspx</link><pubDate>Tue, 13 Jul 2010 14:59:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56803</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56803.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56803</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Why don&amp;#39;t you set up a rule such that, on form submit, if the field is blank, you populate it with some dummy data?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56800.aspx</link><pubDate>Tue, 13 Jul 2010 13:57:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56800</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56800.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56800</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can do it and did&amp;nbsp;it for 90% of the contact selectors in our workflows. &lt;/p&gt;
&lt;p&gt;However, if the workflow doesn&amp;#39;t need to go to &amp;quot;finance&amp;quot; for example, I would get&amp;nbsp;hunderts of phone calls with the question: &amp;quot;Why do I have to enter a person for&amp;nbsp;&amp;quot;finance&amp;quot; if my&amp;nbsp;case doesn&amp;#39;t&amp;nbsp;require finance to see&amp;nbsp;it&amp;quot;. So, I try to find a way&amp;nbsp;to make the finance department an &amp;quot;optional&amp;quot; contact selector that can be left empty...&lt;/p&gt;
&lt;p&gt;Thanks for any&amp;nbsp;ideas&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56791.aspx</link><pubDate>Tue, 13 Jul 2010 12:37:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56791</guid><dc:creator>ErnestoM</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56791</wfw:commentRss><description>&lt;p&gt;In your InfoPath form, wouldn&amp;#39;t it be possible to make the fields required?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I think that&amp;#39;s possibly the easiest solution, to force users to fill in that field. &lt;/p&gt;&lt;p&gt;Good luck! &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Empty Contact Selector field causes workflow to error</title><link>https://www.infopathdev.com:443/forums/thread/56773.aspx</link><pubDate>Mon, 12 Jul 2010 20:28:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:56773</guid><dc:creator>colacat</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/56773.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=50&amp;PostID=56773</wfw:commentRss><description>&lt;p&gt;I&amp;nbsp;have a problem with browser-based&amp;nbsp;InfoPath and our SharePoint workflow...&lt;/p&gt;
&lt;p&gt;I would like to create an&amp;nbsp;InfoPath Taskform that&amp;nbsp;gives the users the possiblity to select optional workflow members. What I mean is&amp;nbsp;sometimes the workflow doesn&amp;#39;t need to go through all office functions.&amp;nbsp;However,&amp;nbsp;if the form is submitted with empty contact selectors it will cause the workflow to error. I already tried to catch the empty string(s) in the workflow code, but it seems the problem happens&amp;nbsp;before or when&amp;nbsp;the information is transfered to&amp;nbsp;SharePoint.&amp;nbsp;Does anybody know&amp;nbsp;what is going wrong ?&lt;/p&gt;
&lt;p&gt;I also tried to prepopulate&amp;nbsp;the contact selector with the current user information. In case&amp;nbsp;the Contact&amp;nbsp;Selector is empty, fill it&amp;nbsp;with the Current User and then submit&amp;nbsp;to SharePoint.&amp;nbsp;That did not work either because I couldn&amp;#39;t find a way to set the focus on the Contact Selector before filling the Contact Selector fields. &lt;/p&gt;
&lt;p&gt;I would appreciate any kind of help!&amp;nbsp;- I&amp;#39;m banging my head&amp;nbsp;on&amp;nbsp;my desk and it&amp;#39;s starting to hurt. :o)&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item></channel></rss>