<?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: User Roles from Field</title><link>https://www.infopathdev.com:443/forums/thread/21385.aspx</link><pubDate>Mon, 02 Jul 2007 18:17:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21385</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21385.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21385</wfw:commentRss><description>&lt;p&gt;I want to switch the current user role based on the user entered by the user.&lt;/p&gt;&lt;p&gt;&amp;nbsp;So if I have a field named USER and I put in domain\bobsmith and I am Bob Smith then the User Role should switch to the new user role.&amp;nbsp; Do you have an example of User Role switching in JScript?&lt;/p&gt;</description></item><item><title>Re: User Roles from Field</title><link>https://www.infopathdev.com:443/forums/thread/21366.aspx</link><pubDate>Mon, 02 Jul 2007 11:05:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21366</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21366.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21366</wfw:commentRss><description>I don&amp;#39;t know exactly what you wanna achieve but you could use the OnAfterChange event of your field. Double click your control, click data validation and in the drop down select OnAfterChange event and then edit code. Not sure if that helps you, could you please provide some more detailed information ?</description></item><item><title>Re: User Roles from Field</title><link>https://www.infopathdev.com:443/forums/thread/21357.aspx</link><pubDate>Fri, 29 Jun 2007 21:34:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21357</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21357.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21357</wfw:commentRss><description>&lt;p&gt;Cool hat!&lt;/p&gt;&lt;p&gt;I misidentified the problem.&amp;nbsp; I was finally able to get the User Role to work by using the format domain\name.&lt;/p&gt;&lt;p&gt;The actually problem was that the User Role did not change for the user who had the form open.&amp;nbsp; If I put myself in the field it never switched to the new role.&amp;nbsp; I had to save and then re-open the file.&amp;nbsp; Is there an event listen to with which I can switch the user role dynamically?&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: User Roles from Field</title><link>https://www.infopathdev.com:443/forums/thread/21351.aspx</link><pubDate>Fri, 29 Jun 2007 10:39:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21351</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21351.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21351</wfw:commentRss><description>I would say that it is domain\username. You can actually check how the correct format is if you go to tools-&amp;gt;user roles-&amp;gt;click add-&amp;gt;select the usernames checkbox-&amp;gt;click on the button to the right and search for a user. after inserting you&amp;#39;ll see the format in the user names field. Actually i believe that you tried that already so do you have any more information. Do you check if the person is the approver in the OnLoad event with code ?</description></item><item><title>User Roles from Field</title><link>https://www.infopathdev.com:443/forums/thread/21344.aspx</link><pubDate>Thu, 28 Jun 2007 20:21:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:21344</guid><dc:creator>murphyadam</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/21344.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=21344</wfw:commentRss><description>&lt;p&gt;I have a form which needs to have a &amp;quot;Approver&amp;quot; role.&amp;nbsp; I set this role as a text field in the form.&amp;nbsp; This user role is based on whomever is assigned via a text field.&amp;nbsp; If the user who opens the form matches the user who is assigned in the field then it should identify him/her as &amp;quot;Approver&amp;quot;.&lt;/p&gt;&lt;p&gt;&amp;nbsp;What is the format the User Role engine uses to correlate the user opening the form with the value of the field?&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;ve used the following without success.&lt;/p&gt;&lt;p&gt;username&lt;br /&gt;firstname lastname&lt;br /&gt;domain\username&lt;br /&gt;&lt;a href="mailto:username@domain.com"&gt;username@domain.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>