<?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: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116268.aspx</link><pubDate>Thu, 11 May 2017 12:16:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116268</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116268.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116268</wfw:commentRss><description>&lt;p&gt;Nathan,&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thank you for your input.&amp;nbsp; I will use this information to investigate/experiment&amp;nbsp;on a similar&amp;nbsp;InfoPath test form.&lt;/p&gt;&lt;p&gt;&amp;nbsp;Again - THANK YOU for your help/input!&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Rodman&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116255.aspx</link><pubDate>Wed, 10 May 2017 20:04:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116255</guid><dc:creator>NathanWynn</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116255.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116255</wfw:commentRss><description>&lt;p&gt;Hi Rodman,&lt;/p&gt;&lt;p&gt;Let&amp;#39;s call the text field that houses the Engineer&amp;#39;s name is txtEName.&lt;/p&gt;&lt;p&gt;When GetUserProfileByName runs, we check txtEName field.&lt;/p&gt;&lt;p&gt;If txtEName is blank then place the FullName from Getuser to txtEName; otherwise, just don&amp;#39;t do anything.&lt;/p&gt;&lt;p&gt;Logic behind:&amp;nbsp;When Engineer creates the form, the txtEName must be blank&amp;nbsp;so the txtEName will be populated with the FullName from GetUser. When the Supervisor or someone else looking at the form after being submitted, the txtEName would be no longer blank; therefore it would not update&amp;nbsp;to the new FullName from the GetUser.&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116254.aspx</link><pubDate>Wed, 10 May 2017 13:52:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116254</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116254.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116254</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Alan,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Again thank you for your quick response.&lt;/p&gt;&lt;p&gt;I will experiment with your solution on a test from and evaluate the results.&lt;/p&gt;&lt;p&gt;Again, Thank You!&lt;/p&gt;&lt;p&gt;- Rodman&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116252.aspx</link><pubDate>Tue, 09 May 2017 20:47:14 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116252</guid><dc:creator>merley72</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116252.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116252</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Rodman, thanks for the extra information and I see the problem.&lt;/p&gt;&lt;p&gt;Completing a step in a process and &amp;#39;cheating; the system to act as someone else is particularly complicated I&amp;nbsp;believe.&amp;nbsp; The&amp;nbsp;last person to work on the form will (should? ) always&amp;nbsp;be the person whose name appears in the &amp;#39;last modified&amp;#39; field.&amp;nbsp; However....&amp;nbsp;&amp;nbsp; would it not be possible to&amp;nbsp;create a single field as a&amp;nbsp;Document Number field, which gets created with the Engineers name when the document is first created and from that point onwards is always used as the name by which the document is saved?&lt;/p&gt;&lt;p&gt;If this approach was adopted, whomever needed to work on the document could do without a change of document name.&amp;nbsp; I&amp;#39;ve used this method several times before for documents such as Training Records, Change Requests, Action Items etc.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Basically the&amp;nbsp;same &amp;#39;Save&amp;#39;&amp;nbsp;data connection can be used, with a step in that which checks if there is a value in the DocumentNumber field and if there is, then it doesn&amp;#39;t recalculate the file name.&amp;nbsp; In conjunction with that, I&amp;#39;ve used a text field which I&amp;#39;ve called &amp;#39;NewDoc&amp;#39; which has a value of &amp;#39;1&amp;#39;&amp;nbsp;assigned to it upon the first save,&amp;nbsp; With that in place all manner of checks can/don&amp;#39;t need to me made.&lt;/p&gt;&lt;p&gt;Please&amp;nbsp;come back with further questions etc.&lt;/p&gt;&lt;p&gt;Regards,&amp;nbsp; Alan C.&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116250.aspx</link><pubDate>Tue, 09 May 2017 18:18:52 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116250</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116250.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116250</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi merley72,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I have had time to develop a better description&amp;nbsp;of my problem/issue:&lt;/p&gt;&lt;p&gt;From SharePoint, an engineer clicks their InfoPath form which the GetUserProfileByName web service is used to get the name of the engineer.&lt;/p&gt;&lt;p&gt;The engineer form is displayed with the name of the engineer and is completed by the engineer.&amp;nbsp; Once complete, the engineer submits the form/data to SharePoint, via the Submit button.&amp;nbsp; The Submit Data Connection concatenates the Engineer’s name with some text.&amp;nbsp; &lt;/p&gt;&lt;p&gt;Using a different view, a manager can update the Engineer’s data in the event he/she is not available, provided the wrong information, etc.&amp;nbsp;&amp;nbsp; However, when the manager accesses the engineer’s form, the manager’s name appears in the Engineer name field. I would like to change this behavior.&lt;/p&gt;&lt;p&gt;As a work around, I display the name of the person who last modified the form (usually the engineer).&amp;nbsp; The manager then copies and pastes that name in the Engineer name field and clicks the submit button.&amp;nbsp; Via the Submit Data Connection, the form is submitted with the engineer’s name (not the manager name).&lt;/p&gt;&lt;p&gt;If the manager forgets to change the engineer’s name, the form is submitted with the manager’s name and the engineer’s data.&lt;/p&gt;&lt;p&gt;I would like the form to always present the name of the user who created the form and submit via that name, regardless of the view.&lt;/p&gt;&lt;p&gt;Can this be done?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks in Advance,&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;- Rodman&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116248.aspx</link><pubDate>Tue, 09 May 2017 17:22:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116248</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116248.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116248</wfw:commentRss><description>&lt;p&gt;merley72,&lt;/p&gt;&lt;p&gt;Thank you for your quick response!&lt;/p&gt;&lt;p&gt;The information you provided helped, however; my problem is a little more complicated than I initially described.&amp;nbsp; I am working on a better description (and solution).&amp;nbsp; I will provide the description at a later date/time.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Again, THANK YOU!&amp;nbsp;&lt;/p&gt;&lt;p&gt;- Rodman&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116246.aspx</link><pubDate>Tue, 09 May 2017 16:40:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116246</guid><dc:creator>merley72</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116246</wfw:commentRss><description>&lt;p&gt;Hi Rodman&lt;/p&gt;&lt;p&gt;I generally have a number of &amp;#39;control&amp;#39; fields which are always hidden in a section at the top of my IP and Browser forms.&amp;nbsp; In fact I use a text field with two buttons - Hide and Show - to control their visibility when I am designing/testing the form as it makes it easy to see the values in the fields.&amp;nbsp;&lt;/p&gt;&lt;p&gt;One bunch of fields relates to the User who has opened the form.&amp;nbsp; I have a Form Load event which drags into the fields a bunch of details including the UserAccount, UserName, UserEmail, UserManager, UserID and UserFirstLastName.&amp;nbsp; All of these are based around a Data Connection which is the GetUserProfileByName webservice.&amp;nbsp; The UserFirstLastName is a concatenation of the two separate values with a &amp;#39; &amp;#39; (space) in between.&amp;nbsp; This is particularly useful when you have a value in a lookup field where you can use the &amp;#39;contains&amp;#39; element as part of a condition for an action or making a button visible or hidden.&lt;/p&gt;&lt;p&gt;I do&amp;nbsp;use the&amp;nbsp;&amp;#39;contains&amp;#39;&amp;nbsp;a lot in preference to &amp;#39;is equal to&amp;#39;&amp;nbsp;especially with names as what appears in the UserAccount or as a UserName sometimes includes AD or other network information.&lt;/p&gt;&lt;p&gt;Creating all of the User....&amp;nbsp; fields and values can be a bit of work to start with, however once they are on the form, you can be certain that every time the document opens it will compute the correct value for use.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I hope the above helps.&amp;nbsp; Please advise if you have any questions.&amp;nbsp;&lt;/p&gt;</description></item><item><title>InfoPath Query to get User Name</title><link>https://www.infopathdev.com:443/forums/thread/116239.aspx</link><pubDate>Mon, 08 May 2017 19:28:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:116239</guid><dc:creator>veney</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/116239.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=116239</wfw:commentRss><description>&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri"&gt;&lt;font size="3"&gt;Based on a condition (i.e., modified by is not equal to user
name) &lt;span style="mso-spacerun:yes;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/font&gt;&lt;font size="3"&gt;can I create an InfoPath query to
get the User Name from the user and save the form file via User name?&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;&lt;br /&gt;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&lt;font face="Calibri" size="3"&gt;Thanks in Advance,&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="margin:0in 0in 0pt;"&gt;- Rodman&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&amp;nbsp;&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>