<?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>SQL Database Integration</title><link>https://www.infopathdev.com:443/forums/47.aspx</link><description>For questions concerning issues in the integration of SQL and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Application Roles</title><link>https://www.infopathdev.com:443/forums/thread/37811.aspx</link><pubDate>Thu, 29 Jan 2009 02:27:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37811</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37811.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=37811</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;In your case you have to prepare one secondary xml file which contains two groups and in that list you have to add the list to submit and editing permission users. In onLoad code, you have to verify the login user is available in edit permission is there or not for submitted form and check the login user is available in submit permission for new form. Based on this we can open the form otherwise we can close the form with message prompt.&lt;/p&gt;
&lt;p&gt;Your secondary xml file should be;&lt;/p&gt;
&lt;p&gt;&amp;lt;Permissions&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Group name=&amp;#39;Submit&amp;#39;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;User&amp;gt;aaa&amp;lt;/User&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;User&amp;gt;bbb&amp;lt;/User&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Group&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;Group name=&amp;#39;Edit&amp;#39;&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;User&amp;gt;ccc&amp;lt;/User&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;User&amp;gt;ddd&amp;lt;/User&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Group&amp;gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;/Permissions&amp;gt;&lt;/p&gt;
&lt;p&gt;Another way is you use User Roles in InfoPath forms.&lt;/p&gt;</description></item><item><title>Application Roles</title><link>https://www.infopathdev.com:443/forums/thread/37791.aspx</link><pubDate>Wed, 28 Jan 2009 17:12:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:37791</guid><dc:creator>geoffc</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/37791.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=47&amp;PostID=37791</wfw:commentRss><description>Is it possible to implement sql server application roles to my infopath form? the idea is to allow the form to submit/update the data but not the individual users. Thank you.</description></item></channel></rss>