<?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: using User's Current Role with multiple roles.</title><link>https://www.infopathdev.com:443/forums/thread/46852.aspx</link><pubDate>Thu, 10 Sep 2009 16:17:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46852</guid><dc:creator>h.elshabini</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46852.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=46852</wfw:commentRss><description>&lt;p&gt;It depends whether your form will be run online or offline.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Suppose you publish your form on SharePoint as a content type, you can create a webservice which determines the user&amp;#39;s role based his user name, add this webservice as a datasource.&lt;/p&gt;
&lt;p&gt;for using web services as data connection see &lt;a href="http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx"&gt;http://blogs.msdn.com/jannemattila/archive/2007/01/21/infopath-and-web-service-data-connection.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;on the other hand, if you publish your form as an installable msi, for use inoffline enviroment, you can save the user/role data in an xml file. and add the xml also as a data connection.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please do not hesitate to follow up on your question if you need more details.&lt;/p&gt;</description></item><item><title>Re: using User's Current Role with multiple roles.</title><link>https://www.infopathdev.com:443/forums/thread/46817.aspx</link><pubDate>Thu, 10 Sep 2009 03:00:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:46817</guid><dc:creator>pooters</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/46817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=46817</wfw:commentRss><description>&lt;p&gt;Could you give an example how I could deal with multiple roles using code?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;</description></item><item><title>Re: using User's Current Role with multiple roles.</title><link>https://www.infopathdev.com:443/forums/thread/35757.aspx</link><pubDate>Mon, 15 Dec 2008 06:08:07 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35757</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35757.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35757</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If there are multiple roles for the current user, infopath always checks the roles and assigns the first role as current user role. You can customize this using the code.&lt;/p&gt;</description></item><item><title>using User's Current Role with multiple roles.</title><link>https://www.infopathdev.com:443/forums/thread/35755.aspx</link><pubDate>Sun, 14 Dec 2008 08:24:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:35755</guid><dc:creator>h.elshabini</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/35755.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=35755</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;i was wondering if there is any way for the same person to have more than one role in infopath?&lt;/p&gt;
&lt;p&gt;as i have tried, infopath does not understand that a user might have more than one role in the form.&lt;/p&gt;
&lt;p&gt;however it is totally valid to assign the same person or group to more than one role in the (Manage User Roles) window.&lt;/p&gt;
&lt;p&gt;but it just doesn&amp;#39;t understand that if you set a conditional formatting based on (User&amp;#39;s Current Role), infopath always sees the current role as the first returned result from the User roles.&lt;/p&gt;
&lt;p&gt;is there any way to over come this?&lt;/p&gt;
&lt;p&gt;i have already done some messy stuff trying to assign a field with a certain value describing his role based on the username, which is sooo messy cuz its getting too large to maintain.&lt;/p&gt;
&lt;p&gt;any help?&lt;/p&gt;</description></item></channel></rss>