<?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: Adding Security/Permissions to InfoPath Controls</title><link>https://www.infopathdev.com:443/forums/thread/28492.aspx</link><pubDate>Mon, 05 May 2008 00:24:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28492</guid><dc:creator>ebonymb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28492</wfw:commentRss><description>&lt;p&gt;I was able to get the views working by applying the 1st view to a data source field that asks for a requestor email address and then setting the submit button to switch views upon clicking submit.&amp;nbsp; This works great but I&amp;#39;d like to send a read only html version of the form to the requestor and submit the form to the sharepoint library when the approver hits submit.&amp;nbsp; I&amp;#39;m using the following code for the first submit action for the html view but I don&amp;#39;t know how to apply a data source to the To and Subject fields:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;{ &lt;br /&gt;function OpenMailEnvelop(subject, to)&lt;br /&gt;{try&lt;br /&gt;{ var oEnvelope = Application.ActiveWindow.MailEnvelope; &lt;br /&gt;oEnvelope.Subject = subject; &lt;br /&gt;oEnvelope.To = to; &lt;br /&gt;oEnvelope.Visible = true; return true; &lt;br /&gt;} &lt;br /&gt;catch(exception) &lt;br /&gt;{&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return false; &lt;br /&gt;} &lt;br /&gt;} &lt;br /&gt;function CTRL83_5::OnClick(eventObj) &lt;br /&gt;{ &lt;br /&gt;OpenMailEnvelop(&amp;quot;&lt;strong&gt;subject concat datasource&lt;/strong&gt;&amp;quot;, &amp;quot;&lt;strong&gt;email datasource&lt;/strong&gt;&amp;quot;) &lt;br /&gt;} &lt;br /&gt;}&lt;/p&gt;
&lt;p&gt;The above code solves the problem of attaching the approvers version of the form which would include an active submit button.&amp;nbsp; I was originally trying to create a read only view&amp;nbsp;that didn&amp;#39;t have a submit button that would submit to the requestor but couldn&amp;#39;t get it to work.&amp;nbsp; Is there a way to apply a data source from the form to the code above?&lt;/p&gt;</description></item><item><title>Re: Adding Security/Permissions to InfoPath Controls</title><link>https://www.infopathdev.com:443/forums/thread/28354.aspx</link><pubDate>Mon, 28 Apr 2008 18:55:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28354</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28354.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28354</wfw:commentRss><description>&lt;p&gt;Typically there are two components for workflow.&lt;/p&gt;
&lt;p&gt;The form user and the form state.&lt;/p&gt;
&lt;p&gt;If you can get both of these you have what you need to perform the logic in the form.&lt;/p&gt;
&lt;p&gt;So ID the user and in Open Rules check the form state and based on this switch to the approver view or not.&lt;/p&gt;
&lt;p&gt;The approver view has everything read-only except the workflow controls. or whatever.&lt;/p&gt;
&lt;p&gt;I use an Active Directory Web Service to Identify the form user and also query their data stored in Active Directory especially department and manager. &lt;/p&gt;</description></item><item><title>Adding Security/Permissions to InfoPath Controls</title><link>https://www.infopathdev.com:443/forums/thread/28347.aspx</link><pubDate>Mon, 28 Apr 2008 16:01:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28347</guid><dc:creator>ebonymb</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28347.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=28347</wfw:commentRss><description>I&amp;#39;ve created a Infopath form that has an Approve/Reject option.&amp;nbsp; The SharePoint library which would house the form has user groups for approvers and requestors.&amp;nbsp; I&amp;#39;d like to apply a permission to the approver group only&amp;nbsp;to be able to see or complete the approve/reject options in the InfoPath form.&amp;nbsp; Is this possible.</description></item></channel></rss>