<?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: GetUserProfileByName issue</title><link>https://www.infopathdev.com:443/forums/thread/59659.aspx</link><pubDate>Tue, 05 Oct 2010 15:02:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59659</guid><dc:creator>jeffdo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59659.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59659</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for responding. I need to actually look up the user information for 4 users in the form. The form is a 24 hour checklist where each shift would open it for their 8 hours, mark if their tasks are in failed/success and then save the form for the next shift to take over.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The last step is a supervisor opens the form, validates what was done over the 24 hour period and also adds his user id at the end.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;If I disable GetUserProfileByName at form open, won&amp;#39;t that prevent the rest of the users from having their user info displayed at their tasks?&lt;/p&gt;&lt;p&gt;Would having the procedure query the web service at each line item work instead and not actually querying at form load? I assume that is possible but not sure how that works?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: GetUserProfileByName issue</title><link>https://www.infopathdev.com:443/forums/thread/59621.aspx</link><pubDate>Tue, 05 Oct 2010 10:54:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59621</guid><dc:creator>cheason</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59621.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59621</wfw:commentRss><description>&lt;p&gt;This is fairly simple and will always be something you need to do when a secondary person will open the form. You need to do the following :-&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Create a variable such as &amp;#39;ReadOnlyMode&amp;#39; and set the default&amp;nbsp;value to &amp;#39;No&amp;#39; (or make it a boolan - your choice)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;On form open, set the condition on which the &amp;#39;GetUserProfileByName&amp;#39; action is called when the &amp;#39;ReadOnlyMode&amp;#39; is equal to &amp;#39;No&amp;#39;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Where you have the form submit set the variable &amp;#39;ReadOnlyMode&amp;#39; to &amp;#39;Yes&amp;#39;&lt;/p&gt;
&lt;p&gt;Once the form is opened a second time then it should not re-query the GetUserProfileByName function.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Jason.&lt;/p&gt;</description></item><item><title>GetUserProfileByName issue</title><link>https://www.infopathdev.com:443/forums/thread/59451.aspx</link><pubDate>Thu, 30 Sep 2010 03:23:31 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59451</guid><dc:creator>jeffdo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59451.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=59451</wfw:commentRss><description>&lt;p&gt;Hi, I am fairly new to Infopath. I created a form in Infopath 2003 that is basically a checklist that will get published to a SharePoint forms Library.&amp;nbsp; It&amp;#39;s a simple form, I have a drop down box with 3 choices for the user to select (success, failure, other) a field for the time of choice and a user name field.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I was using this article as a reference. http://blogs.microsoft.co.il/blogs/itaysk/archive/2007/04/05/InfoPath-_2D00_-Get-the-current-user-without-writing-code.aspx&lt;/p&gt;&lt;p&gt;I created two filter conditions, the first being &amp;quot;choiceBox is not blank and&amp;quot; &amp;quot;name is equal to AccountName&amp;quot; and published the form to SharePoint.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This worked great for me, once my user chose something in the drop down for the form it populated his AccountName in the user field as I intended it to.&amp;nbsp;&lt;/p&gt;&lt;p&gt;But...once he saved the form and a second user opened it, immediately each of the places where the first users AccountName had been displayed changed to the second user. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;I&amp;#39;m not sure if my problem is from the logic of the filters, if it is beyond the scope of polling the web service. I did try to add a third filter thinking that if I put a third conditional that said &amp;quot;UserField is blank&amp;quot; it would bypass and do nothing when the form was reloaded because it was already populated. Unfortunately doing that gave me a too many calculations error and nothing was populated.&lt;br /&gt;&lt;/p&gt;Is what I am trying to do beyond the scope of using a web service and I should try to implement the active directory polling instead or is my understanding of how this works flawed?&amp;nbsp;&lt;p&gt;Thank you,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Jeff &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>