<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Problem Referencing XML Datasource.</title><link>https://www.infopathdev.com:443/forums/thread/38251.aspx</link><pubDate>Mon, 09 Feb 2009 19:21:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38251</guid><dc:creator>e_stylzz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38251.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38251</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Beautiful!&amp;nbsp; Thank you so much!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Problem Referencing XML Datasource.</title><link>https://www.infopathdev.com:443/forums/thread/38224.aspx</link><pubDate>Mon, 09 Feb 2009 12:37:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38224</guid><dc:creator>swathip</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38224.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38224</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Try the following expression for getting the current role.&lt;/p&gt;
&lt;p&gt;xdXDocument:GetDOM(&amp;quot;Roles&amp;quot;)/roles/role/Name[../users/username = xdXDocument:get-DOM()/my:myFields/my:hiddenCurrentUser] &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Problem Referencing XML Datasource.</title><link>https://www.infopathdev.com:443/forums/thread/38167.aspx</link><pubDate>Fri, 06 Feb 2009 15:20:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:38167</guid><dc:creator>e_stylzz</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/38167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=38167</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Scenario:&amp;nbsp; I needed to find a way to use roles in a web enabled form which is not easily setup out of the box with Infopath.&amp;nbsp; I following &lt;a href="http://blogs.msdn.com/infopath/archive/2007/01/10/implementing-roles-in-browser-forms.aspx"&gt;this post&lt;/a&gt; however which states that it can be done using an xml data source and some form open rules, and two hidden fields. Based on those steps, I have setup my hidden fields, and the current user field does pull the user.&amp;nbsp; However, the current role does not pull any information even though my forumla for the default value validates.&lt;/p&gt;&lt;p&gt;&amp;nbsp;The default value for the hidden role field (Step 2 # 3) is this: &lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;xdXDocument:GetDOM(&amp;quot;Roles&amp;quot;)/roles/role/Name[xdXDocument:GetDOM(&amp;quot;Roles&amp;quot;)/roles/role/users/username = /my:myFields/my:hiddenCurrentUser] &lt;/b&gt;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&amp;nbsp;My XML file looks like this:&lt;/p&gt;&lt;blockquote&gt;&lt;p&gt;&lt;b&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot; ?&amp;gt;&lt;br /&gt;&amp;lt;roles&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;role&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;Name&amp;gt;Admin&amp;lt;/Name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;users&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;username&amp;gt;Eric&amp;lt;/username&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/users&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/role&amp;gt; &lt;br /&gt;&amp;lt;/roles&amp;gt;&lt;/b&gt; &lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;Any ideas would be much appreciated!! &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>