SharePoint - InfoPath Forms Services ForumTopics about InfoPath Forms Services capabilities in Office SharePoint Server.© 2009 Microsoft Corporation. All rights reserved.Mon, 30 Nov 2009 20:36:32 Zd23dff71-b399-4c75-b75b-fcfa7dedbc7ehttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/6b2d54f7-41e1-4e05-977d-f69be0edd38bhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/6b2d54f7-41e1-4e05-977d-f69be0edd38bshehanhttp://social.technet.microsoft.com/Profile/en-US/?user=shehanPublish multiple forms to the same libraryIs it possible to publish multiple form templates to a Document Library on SharePoint? When I publish a second form template (that’s totally different from the fist) to a document library and when I click the ‘NEW’ menu item it renders the latest template in the browser. I don’t have the ability to select a template.<br/> <br/> <br/> Any way on how I could overcome it?Mon, 30 Nov 2009 20:34:27 Z2009-11-30T20:36:32Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/36505e79-8c2b-4981-b87a-5fca7e00a685http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/36505e79-8c2b-4981-b87a-5fca7e00a685BeaSharepointhttp://social.technet.microsoft.com/Profile/en-US/?user=BeaSharepointdrop down listHello!<br/> <br/> I'm try in to cahnge a drop down list , it is depend about the value of other drop down list. The problem that i have it is that the data are in sahrepoint list<br/> <br/> SharepointListQueryConnection con = (SharepointListQueryConnection)DataConnections[&quot;p&quot;];<br/> <br/>             // Change the location of the data connection to point the XML file<br/>             // returned by the owssvr.dll with a filter on department<br/>             con.SiteUrl = x&quot; <br/>             + category;<br/> <br/> con.SiteUrl can't be change the value . i must to change that here . Someone know how to do that? i can't use web services<br/> <br/> thank<br/>Fri, 27 Nov 2009 17:10:24 Z2009-11-30T16:18:37Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/2cacf69d-5e1a-41c4-8b97-73e16ccbd9cdhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/2cacf69d-5e1a-41c4-8b97-73e16ccbd9cdBolohhttp://social.technet.microsoft.com/Profile/en-US/?user=BolohExtending Infopath Controls for Browser FormsAll,<br/> <br/> I've been doing some research and it appears that the only way to extend infopath controls (i.e. if I want my own custom Infopath control that will do whatever I want) I will not to leverage ActiveX.  But it also seems that ActiveX controls will not work with browser enabled forms.<br/> <br/> Can someone confirm that ActiveX controls indeed do not work in browser enabled forms?  If this is the case, how else can I create custom Infopath controls for browser enabled forms?<br/> <br/> Thanks in advance.Mon, 30 Nov 2009 08:21:32 Z2009-11-30T15:16:09Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e194e9dd-9f89-4cf3-b787-979f6a9a801dhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e194e9dd-9f89-4cf3-b787-979f6a9a801dRajkamal29http://social.technet.microsoft.com/Profile/en-US/?user=Rajkamal29"Enable browser-compatible features only" checkbox is not found in InfoPath 2010hi,<br/><br/>I created a infopath form using InfoPath 2010, but i am unable to find the &quot;Enable browser-compatible features only&quot; check box.<br/>Can anybody please tell me where can i find that checkbox<br/><br/>thanks,<br/>rajkamal.v <hr class=sig> rajkamal29 http://rajkamal29.blogspot.comMon, 30 Nov 2009 08:46:25 Z2009-11-30T15:15:07Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/451b9ec5-fbd4-4d04-97bf-4125c8def92dhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/451b9ec5-fbd4-4d04-97bf-4125c8def92dHans Santenshttp://social.technet.microsoft.com/Profile/en-US/?user=Hans%20SantensPublishing infoPath form template: browser compatibleHello, <div><br/></div> <div>I am trying tu publish an infoPath 2007 form template to MOSS 2007. However, the publishing wizard keeps telling me the following:<br/>&quot;This form template is browser-compatible, but it cannot be browser-enabled on the selected site.&quot;.</div> <div><br/></div> <div>I got quite a lot hits when I searched the web for  this message, but unfortunately I haven't been able to solve the problem.</div> <div><br/></div> <div>Here is what I checked/done until now:</div> <div>- Deactivate and activate site collection features</div> <div>- Deactivate and activate site features</div> <div>- In the  &quot;confgiure infopath forms services&quot; both &quot;allow users to browser-enable form template&quot; and &quot;render form templates that are browser-enabled by user&quot; are enabled</div> <div><br/></div> <div>I there anyone who can help me out?</div> <div><br/></div> <div>Thanks!</div>Fri, 27 Nov 2009 09:31:50 Z2009-11-30T15:05:53Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/899ee4ef-0b05-4b1c-8c2c-892ed97d3c49http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/899ee4ef-0b05-4b1c-8c2c-892ed97d3c49Bolohhttp://social.technet.microsoft.com/Profile/en-US/?user=BolohDisplaying 2 forms at onceAll,<br/> <br/> I need some advice. <br/> <br/> I have a requirement to display a tabbed browser-enabled Infopath form.  I was able to do this fine using buttons to emulate tabs that then switches to different views.<br/> <br/> The tricky requirement though is that one of the tabs need to also display a different form from the current one.  <br/> <br/> So for example, suppose I have Form1.xsn and Form2.xsn.  Basically, I need a capability to display Form2 within Form1... somehow.<br/> <br/> Any idea on how I can do this?<br/> <br/> Thanks.Mon, 09 Nov 2009 10:12:59 Z2009-11-30T15:03:21Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/7909824a-690e-4aa7-aa21-afe286cc5e97http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/7909824a-690e-4aa7-aa21-afe286cc5e97Petrolejkahttp://social.technet.microsoft.com/Profile/en-US/?user=PetrolejkaSet Contact selector rules in InfoPath when using DIP from SharePointHi,<br/> <br/> I created a custom content type of type document in WSS 3.0. I created column called &quot;person&quot; of type &quot;<strong>People or Group</strong> &quot;. So when I create a new document in SharePoint, there is a <strong>contact selector</strong> (people picker) in <strong>document information panel</strong> . But I would like to use InfoPath to edit the contact selector in this way: When a person is picked in the contact selector, another field (also custom column from my content type) will be <strong>changed according</strong> to the person I picked. I hope it is clear :-)<br/> <br/> But in InfoPath when I right click the contact selector, there is no <strong>Rules...</strong> option, even no <strong>Data validation</strong> option etc.<br/> <br/> What can I do?<br/> <br/> Thanks for any suggestions.Thu, 26 Nov 2009 16:46:22 Z2009-11-30T14:58:42Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/76ce696f-461b-462d-b064-311dab17a1d5http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/76ce696f-461b-462d-b064-311dab17a1d5Bolohhttp://social.technet.microsoft.com/Profile/en-US/?user=BolohLimitiations of Hosting Infopath Form in ASP.NET/WebPartAll,<br/> <br/> What do I lose by hosting an Infopath web form through ASP.NET?  For example, having the Infopath web-only form launched from within the Sharepoint Forms Library means that I get 'Save', 'Save-As', workflow, etc.  Do I lose those things once I host via ASP.NET or Sharepoint web part?<br/> <br/> Thanks.Mon, 30 Nov 2009 10:00:11 Z2009-11-30T10:00:14Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/faad1c5a-e1a8-4ca2-b775-7ea5da24f4f9http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/faad1c5a-e1a8-4ca2-b775-7ea5da24f4f9lbaherihttp://social.technet.microsoft.com/Profile/en-US/?user=lbaheriMy question is can i open another InfoPath form from within the currently open formMy question is can i open another InfoPath form from within the currently open formTue, 04 Aug 2009 07:22:41 Z2009-11-30T09:14:26Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/394eb043-b2fc-4c44-bf25-9afdbae65a17http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/394eb043-b2fc-4c44-bf25-9afdbae65a17RyleTinashehttp://social.technet.microsoft.com/Profile/en-US/?user=RyleTinasheHElp Please please<p> I'm having a problem. I run a code at From loadeven that takes the job title in Infopath. It works fine at first when filling in the form (new) but after you fill in and save it doesn't run it any more when you reopen the saved document. Is there a way of making to make it run my form load event code???</p> <p> </p> secondly how do you make a Hypherlink in C# infopath??Mon, 30 Nov 2009 08:14:13 Z2009-11-30T08:14:13Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/0395725f-b50f-433b-99ea-53de840307e8http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/0395725f-b50f-433b-99ea-53de840307e8eliasenhttp://social.technet.microsoft.com/Profile/en-US/?user=eliasenDecimal types when using Danish cultureHi all<br/><br/>I have an InfoPath form, that is web enabled and is hosted on Forms Server.<br/><br/>Now, my formular is for the Danish government, so I need it to use Danish culture, meaning that a large decimal number looks like this: &quot;123.456,98&quot; - we use period for separating thousands and comma for deparating the number from the decimals.<br/><br/>I have gone to &quot;Form Options&quot; =&gt; &quot;Browser&quot; and set the &quot;Form language&quot; to be Danish. When I run the formular, I can see that text boxes that get their values from web services (that return decimal values like &quot;5.24&quot;) show the number as &quot;5,24&quot; instead of &quot;5.24&quot; which is great, since this is what I want.<br/><br/>Now, I have a textbox for entering a value. It is a decimal type. If I enter &quot;5&quot; if works, and it will automatically show me &quot;5,00&quot; since I have set the format of the textbox to two decimals. But if I enter &quot;5,23&quot; it says NaN. This is weird. I am entering using a comma, as it displays decimals itself, but it does not reognize it as a number. This, off course, gives me quite a headache since I need to do calculations using these fields, which breaks...<br/><br/>Any thoughts? Why does it show decimals like &quot;5,23&quot; but won't accept it it I enter that myself?<br/><br/>Thanks!<br/> <hr class=sig> eliasen, representing himself and not the company he works for.<br/>Three times MVP and three times MCTS in BizTalk.<br/>Blog: http://blog.eliasen.dkWed, 25 Nov 2009 14:31:49 Z2009-11-30T07:21:25Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e6634116-65b8-4a5d-8619-b4770820416chttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e6634116-65b8-4a5d-8619-b4770820416cyogesh gharehttp://social.technet.microsoft.com/Profile/en-US/?user=yogesh%20gharehow to retrieve current item id of the infopath form prgramatically?hi,<br />I have published a browser enabled infopth form to sharepoint library as a content type... After submitting the form when&nbsp;I reopen the form&nbsp;I want to load the item id of that form programatically..Wed, 30 Sep 2009 11:26:14 Z2009-11-30T05:57:26Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/c41ddaf5-662c-4d77-a282-abb2cab83db8http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/c41ddaf5-662c-4d77-a282-abb2cab83db8Alan Aberyhttp://social.technet.microsoft.com/Profile/en-US/?user=Alan%20AberyThe Property To Change is read only for the document's content type.Hi There<br/><br/>I have a problem with one promoted property in SharePoint.  I have several InfoPath forms that use an XSD Schema as a datasource, each of these forms share some common elements.<br/><br/>I have configured each form to be Fully Trusted and signed and published the forms to a share point server (2007) so we can use them with Form Services.<br/><br/>I have promoted almost all of the data source items with several being updateable in Sharepoint by selecting the 'Allow users to edit data in this field by using a datasheet or properties page'.<br/><br/>Most of these allow me to update the values using SharePoint using the Edit Properties in the Forms Library, which is all good....  All except one.<br/><br/>The property is a string field that I am using to work around another Form Services defect (see <a href="http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/31cc47ff-529c-4b95-8fcc-7c24abc925e2/">http://social.msdn.microsoft.com/Forums/en-US/sharepointinfopath/thread/31cc47ff-529c-4b95-8fcc-7c24abc925e2/</a>) and has 'Allow users to edit data in this field by using a datasheet or properties page' selected when publishing the forms.  I appears in SharePoints 'Edit Properties' list however when I update the value I get the error 'The Property To Change is read only for the document's content type, or the document is missing XML elements or attributes where the changes would be saved'<br/><br/>This used to work until I started publishing other forms, I have checked that they all allow two-way updates.  I have verified that the site column is not ReadOnly using SharePoint Manager 2007 on the site column and the content types site columns.<br/><br/>Does anyone have any thoughts on what else to look at?<br/><br/>Mon, 30 Nov 2009 03:32:14 Z2009-11-30T04:32:19Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/31ab0de7-d976-45db-a428-64cc072133cahttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/31ab0de7-d976-45db-a428-64cc072133caSri Durga Prasadhttp://social.technet.microsoft.com/Profile/en-US/?user=Sri%20Durga%20Prasadform services error - Cannot complete this actionHello All,<br/> <br/> I Had MOSS 2007 installed in my system without MS office !.<br/> <br/> Now i have installed office 2007 with infopath.<br/> <br/> In my top level site , if i try to create a FormLibrary, i am getting an error msg as &quot;Cannot complete this action&quot; ?<br/> <br/> I am not able to debug this error...<br/> <br/> Can somebody help? <br/> <br/> Regards<br/> <br/> Durga .Fri, 27 Nov 2009 10:14:28 Z2009-11-30T04:08:53Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8e64bf3a-b9d7-42a6-8e56-c5a418b2e21bhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8e64bf3a-b9d7-42a6-8e56-c5a418b2e21bJan Meeusenhttp://social.technet.microsoft.com/Profile/en-US/?user=Jan%20Meeusenform upload: status = installing<p>Hello</p> <p> </p> <p>I created a very basic infopath form template in visual studio: a line of text and a textbox. I published and uploaded it according to these walkthroughs:</p> <p> </p> <p><a title="http://msdn2.microsoft.com/en-us/library/bb250997.aspx" href="http://msdn2.microsoft.com/en-us/library/bb250997.aspx">http://msdn2.microsoft.com/en-us/library/bb250997.aspx</a></p> <p><a title="http://msdn2.microsoft.com/en-us/library/ms772405.aspx" href="http://msdn2.microsoft.com/en-us/library/ms772405.aspx">http://msdn2.microsoft.com/en-us/library/ms772405.aspx</a></p> <p> </p> <p>When i want to activate the form, i get an error, because the status doesn't change from &quot;installing&quot;. It just keeps this status, after some time, it changes to &quot;failed to upload&quot;.</p> <p> </p> <p> </p> <p>Has anyone had similar problems?</p> <p>Thx,</p> <p>J</p>Fri, 30 Mar 2007 15:05:57 Z2009-11-30T03:49:05Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/3997d48b-bf61-4064-b66e-37841291b300http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/3997d48b-bf61-4064-b66e-37841291b300Matt Soltauhttp://social.technet.microsoft.com/Profile/en-US/?user=Matt%20SoltauOpen .xml files without promptingAs part of our SharePoint MOSS 2007 deployment, there are several .xml InfoPath files that are linked through one of the pages in the portal. When users click on a link pointing to an xml file, they are presented with the “Do you want to open or save this file&quot; dialog box. Within XP SP2 and Windows 2003, there is no check box in the dialogue box for &quot;always ask before opening this type of file&quot;.  If we go to the properties of the file type and uncheck the &quot;confirm open after download&quot; box, the prompt continues to appear.  The portal site is in the trusted sites zone for IE. <span> </span> The incessant prompting from a web page that is in our own intranet is causing user disquiet. <span> </span> We are looking for a way to disable this security prompt for xml files that open in InfoPath when accessed through our SharePoint portal. So far, we have not found a way to do it. Do any of you know of a way to disable the prompt so that InfoPath 2007 just opens its associated files like other office apps can be configured to do?Mon, 30 Nov 2009 03:01:19 Z2009-11-30T03:01:21Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/7ed8dc67-7a30-4e81-b746-cd4e988ff2e8http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/7ed8dc67-7a30-4e81-b746-cd4e988ff2e8Alan Aberyhttp://social.technet.microsoft.com/Profile/en-US/?user=Alan%20Abery31st of Feburary, Problems with Date ValidationHi There<br/><br/>When I have a date time picker on an InfoPath form and when I publish and open using InfoPath 2007 and enter the date 31/2/2009 it changes the date to 3/03/2009 (NZ Date Format) instead of raising a date validadtion error.  However when this form is opened in Form Services it does raise an invalid date error.<br/><br/>Does anyone know of a work around to this problem, I would really like the form to behave the same way in both InfoPath and Form Services.<br/><br/>Thanks<br/>AlanMon, 30 Nov 2009 02:51:43 Z2009-11-30T02:51:44Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8b1e5124-9bdf-4238-8f82-485e4c5a1ea0http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8b1e5124-9bdf-4238-8f82-485e4c5a1ea0sjelgarhttp://social.technet.microsoft.com/Profile/en-US/?user=sjelgarCan't load default DIPs<p>Hi there,<br/><br/>I'm having somewhat of a nightmare managing the Document Information Panels on our Sharepoint site. We used to have a system of DIPs that were created for us by an external company and stored on the server and published to each content type in a document library. Things have changed and our folder structure has changed and so those DIPs need to change plus we have many more content types now that need DIPs.<br/><br/>However I've been getting errors left right and centre when trying to create these DIPs to the point that the system won't even load the default DIPs. When using the Sharepoint default DIP (&quot;Use the default template for Microsoft Office applications&quot;) the error message I get when opening a document is as follows:<br/><br/><em>Document Information Panel cannot create a new, blank form.<br/>Document Information Panel cannot open the form. To fix this problem, contact your system administrator.<br/>Form template: </em><a href="http://mksp01/Docs/proppanel.xsn"><em>http://mksp01/Docs/proppanel.xsn</em></a><br/><em>The following DataObject either cannot be created or cannot be initialized: list_9251E8CC-3867-4A79-BCB9-B4D15C627250<br/>Document Information Panel cannot add the following object to the DataObjects collection: list_9251E8CC-3867-4A79-BCB9-B4D15C627250<br/>list_9251E8CC-3867-4A79-BCB9-B4D15C627250 could not be added to the DataObjects collection.<br/>The following item already exists in the collection: list_9251E8CC-3867-4A79-BCB9-B4D15C627250<br/></em><br/>I have also tried from InfoPath creating a new form based on the XML schema option, putting in the document library, selecting the content type etc and I get this error:<br/><br/><em>The form definition (.xsf) file contains elements, attributes, or structures that are not valid.</em></p> <p><em>Error details:<br/>'list_' is a duplicate key for the unique Identity Constraint '{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}dataObjects_name_unique'.</em></p> <p><em>Line 206, Position 4<br/> &lt;/xsf:dataObjects&gt;<br/>---^<br/></em><br/>So I've tried creating blank forms and publishing them, which works but as soon as I try and bind data I run into further problems. Is anyone able to shed any light on these error messages? I'm really struggling here and any input would be very appreciated.<br/><br/>Thanks, Simon<br/> </p>Thu, 07 May 2009 09:33:22 Z2009-11-29T23:55:38Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/f25b60da-f479-448f-9a2c-fde7e69983adhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/f25b60da-f479-448f-9a2c-fde7e69983adMalone Mahttp://social.technet.microsoft.com/Profile/en-US/?user=Malone%20Ma"There has been an error while loading the form... " when I download template.xsn through WebClientHi all,<br/><br/>I used WebClient class to download template.xsn from the form library such as <a href="http://examplesite/formlib/Forms/template.xsn.">http://examplesite/formlib/Forms/template.xsn.<br/></a><br/>I only downloaded a small template.xsn file, it's actually an html file. I open this file in IE, it says: &quot;<span class=ErrorLargeText>There has been an error while loading the form. A required resource could not be downloaded. To try to resume the download, refresh the page.</span>&quot;<br/><br/>Is there anyone can help me? Thanks!Fri, 27 Nov 2009 06:28:12 Z2009-11-28T16:11:48Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8c09e2fc-31f9-4af9-b55c-6e9b55d1895fhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/8c09e2fc-31f9-4af9-b55c-6e9b55d1895fMalone Mahttp://social.technet.microsoft.com/Profile/en-US/?user=Malone%20MaHow to execute the opening rules when using FormControl?Hi all,<br/><br/>I need to use FormControl to load an InfoPath template. There're a couple of rules will execute when the InfoPath template is opened. However, the FormControl skips all of the opening rules. <br/><br/>Is there any suggestion to force FormControl to execute the opening rules?<br/><br/>Many thanks,<br/>Malone MaWed, 25 Nov 2009 08:56:43 Z2009-11-28T12:25:56Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/cf2c460c-74a3-4949-9e03-2c0cc995aa37http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/cf2c460c-74a3-4949-9e03-2c0cc995aa37neddyflandershttp://social.technet.microsoft.com/Profile/en-US/?user=neddyflandersInfoPath submission and Event ReceiverHello, I know it's something simple but I just can't seem to find out whats wrong. I have an InfoPath form being submitted, it has a field with a users name (Smith, Harry). I have an event receiver that breaks inheritance and Runswithelevatedprivilidges. This works fine. I am at my wits end on how to get this user name into the permissions. I have all the pieces (itemupdate etc.) It's just giving me problems with the user name. I'm pretty sure the problem is with SPUser. I need to get the Smith, Harry which is a text field into SPUser. <br/><br/><span style="font-size:x-small"><font size=2> <p> </p> </font></span> <p><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">if</span></span><span style="font-size:x-small"> (item[</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Director&quot;</span></span><span style="font-size:x-small">] != </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">null</span></span><span style="font-size:x-small">)<br/>{<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> directorAcc = item[</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Director&quot;</span></span><span style="font-size:x-small">].ToString();<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">if</span></span><span style="font-size:x-small"> (</span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small">.IsNullOrEmpty(directorAcc) != </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">true</span></span><span style="font-size:x-small">)<br/>{<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPUser</span></span><span style="font-size:x-small"> user = </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPContext</span></span><span style="font-size:x-small">.Current.Web.SiteUsers[directorAcc];<br/></span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">string</span></span><span style="font-size:x-small"> actLogin = user.LoginName;<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPRoleDefinition</span></span><span style="font-size:x-small"> roleDef = web.RoleDefinitions[</span><span style="font-size:x-small;color:#a31515"><span style="font-size:x-small;color:#a31515">&quot;Full Control&quot;</span></span><span style="font-size:x-small">];<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPRoleAssignment</span></span><span style="font-size:x-small"> assignment = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">null</span></span><span style="font-size:x-small">;<br/></span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPPrincipal</span></span><span style="font-size:x-small"> member = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">null</span></span><span style="font-size:x-small">;<br/>member = web.SiteUsers[actLogin];<br/>assignment = </span><span style="font-size:x-small;color:#0000ff"><span style="font-size:x-small;color:#0000ff">new</span></span><span style="font-size:x-small"> </span><span style="font-size:x-small;color:#2b91af"><span style="font-size:x-small;color:#2b91af">SPRoleAssignment</span></span><span style="font-size:x-small">(member);<br/>assignment.RoleDefinitionBindings.Add(roleDef);<br/>item.RoleAssignments.Add(assignment);</span></p>Wed, 25 Nov 2009 14:36:44 Z2009-11-28T05:11:35Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/4505be1c-91d8-4a17-a61d-63334d364fa0http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/4505be1c-91d8-4a17-a61d-63334d364fa0Learning_MOSShttp://social.technet.microsoft.com/Profile/en-US/?user=Learning_MOSSEmail infoapth form without Infopath on user's computerMy client wants me to build an infopath timesheet workflow so that once started in MOSS intranet portal, the form is emailed to the approver. The approver will not have Infopath on his/her machine. And the approver should be able to approve the form  within outlook wihtout opening Infopath( or having infopath rather) and update the workflow status in the sharepoint library. <div><br/></div> <div>Is this possible. any suggestions and links to implement this will be helpful</div>Fri, 20 Nov 2009 22:38:56 Z2009-11-27T23:33:29Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/147b199f-7094-45f4-aaad-45f03558a69fhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/147b199f-7094-45f4-aaad-45f03558a69fNebuk89http://social.technet.microsoft.com/Profile/en-US/?user=Nebuk89Displaying infopath parts in webpartHi <div>I have seen a few links of how to simply display infopath forms in a webpart or on a page in sharepoint but I havent been able to find a true programatic example as I will need to do a few more things with it. For one I plan to only view 1 section of the infopath form at a time (e.g. one view or section) thus need control to move between these</div> <div>If anyone could point me in the right dicrection that would be great</div> <div>Many thanks</div> <div>Ben</div>Thu, 26 Nov 2009 10:27:59 Z2009-11-30T01:53:40Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/9d221318-f954-40f6-b320-1d54a266ba0chttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/9d221318-f954-40f6-b320-1d54a266ba0cBeaSharepointhttp://social.technet.microsoft.com/Profile/en-US/?user=BeaSharepointInfopath with calculated columsHello!<br/> <br/> I have a library with a infopath form  publish in sharepoint, also i have created some calculated colums.<br/> <br/> Now i created a new infopath form and i need this calculated columns but i don't find its in the conexion with sharepoint.<br/> <br/> Is it possible to take theses colums?? <br/> <br/> ThankFri, 27 Nov 2009 10:47:53 Z2009-11-27T16:40:57Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/027175b0-2822-469e-86d2-98e313a884echttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/027175b0-2822-469e-86d2-98e313a884ecnemegeermhttp://social.technet.microsoft.com/Profile/en-US/?user=nemegeermDisable submit button in the toolbar<pre class=WNPost style="word-wrap:break-word">Hi, How can I disable the submit button in the toolbar ? I'm using Infopath 2007 and forms services. For certain actions/people it needs to be enabled and for others I need it disabled. How can I do this ? And, I do not want to create my own button on the form :-) Regards, Marc </pre>Fri, 27 Nov 2009 14:50:10 Z2009-11-27T15:27:01Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/1b25a09c-9cc5-4463-a32f-ee2573569d5fhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/1b25a09c-9cc5-4463-a32f-ee2573569d5fBeaSharepointhttp://social.technet.microsoft.com/Profile/en-US/?user=BeaSharepointinfopath chnaged eventHello!<br/> <br/> I'm trying to change in C# the event the one drop down list. One it has a velue i want that another dro down list take a list of values that i have in a 3 drop down list.<br/> <br/> Someone know the code C# for do taht?<br/> <br/> thankFri, 27 Nov 2009 14:17:48 Z2009-11-27T14:17:48Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/2fb2a99f-8310-4778-ad02-dab2d6e4a678http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/2fb2a99f-8310-4778-ad02-dab2d6e4a678minorityhttp://social.technet.microsoft.com/Profile/en-US/?user=minorityInfoPath form with webservice for data in out operations plus external 3rd part application webservice??Hi,<br/> <br/> Quick question on something that my company are planning on doing.<br/> <br/> We have an external company developing a infopath form which will retrieve data from web services  (which we are developing)  These web services will get their data from oracle (this bit is irrelevance to the question)<br/> <br/> Ok what we plan to do is this.<br/> <br/> person open infopath form it makes a call to web service for global data to fill dropdowns.<br/> <br/> In all calls to the web service the users username will be checked against a database to see  if they can see this data if not an error will be returned.  The username will be taken from the sharepoint login session.<br/> <br/> This is the main reason why we are placing the web service in sharepoint as it means we can verify the user before submitting the data instead of recieving the username and hoping it not someone who has not figured out the login details for the webservice.<br/> <br/> This seems ok to me (unless you think it stupid?) but one part is that if that the user will be asked to go to a 3rd party (external app/company) to pay something and this company will then call back to us to tell us it is complete. <br/> <br/> This is my question obviously the web service being behind the SP security means they will need some kind of credentials to login do we only have the option of AD here or can we have a way of giving them a username and password to pass to us to check and then only let them near this one web service?<br/> <br/> Any help would be good.Thu, 26 Nov 2009 15:45:14 Z2009-11-27T09:07:09Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/45a21f8e-51b9-43f4-b119-defca7e33e4dhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/45a21f8e-51b9-43f4-b119-defca7e33e4dBolohhttp://social.technet.microsoft.com/Profile/en-US/?user=BolohProgrammatically create infopath repeating sectionAll,<br/><br/>I have a browser-enabled only Infopath 2007 form.  I would like to know if I can:<br/>1. programmatically create repeating sections<br/>2. programmatically insert a row (of any type - text, datetime, etc) into an existing repeating section<br/><br/>If the answer to either of the above is yes, please kindly point me in the right direction or provide some useful code snippet.<br/><br/>Regards.Fri, 27 Nov 2009 02:23:26 Z2009-11-27T02:23:27Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e9d6b9d1-7267-4d73-a892-d99c20adbf35http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e9d6b9d1-7267-4d73-a892-d99c20adbf35Prasanna2321http://social.technet.microsoft.com/Profile/en-US/?user=Prasanna2321Infopath attachement filehow can attachment file in infopath?where it is stored?Thu, 26 Nov 2009 11:04:43 Z2009-11-26T16:31:20Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/a3ded5f8-5d70-46bc-b8e3-a51be1c9d2f4http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/a3ded5f8-5d70-46bc-b8e3-a51be1c9d2f4Prasanna2321http://social.technet.microsoft.com/Profile/en-US/?user=Prasanna2321Dropdown list in infopathhow to assign 5th row element as defualt row in the dropdowlist in the infopath froms?Thu, 26 Nov 2009 11:05:28 Z2009-11-26T16:26:49Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/1658fe09-c1cf-4c30-ab43-7df6847a7bafhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/1658fe09-c1cf-4c30-ab43-7df6847a7bafNewCybertechttp://social.technet.microsoft.com/Profile/en-US/?user=NewCybertecCan't create data connection to team discussionHello,<br/><br/>I am trying to create a secondary data connection within my InfoPtah form to a Team Discussion but I can't choose the field text body wich is important to create a correct disussion item. <br/><br/>Is there a way how enable the selcetion of the field?<br/><br/>I am using MOSS 2007 and InfoPath 2007<br/><br/>Any help is very appreciated!Wed, 25 Nov 2009 12:49:33 Z2009-11-30T10:19:57Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/96649202-1e2e-4f03-982a-b6ce11300018http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/96649202-1e2e-4f03-982a-b6ce11300018Avinash K_http://social.technet.microsoft.com/Profile/en-US/?user=Avinash%20K_Sharepoint - InfoPath, Problem to publish InfoPath Form for site having Form Based Authentication.<p>I am getting an error when I try to publish InfoPath Form for SharePoint site having Form Based Authentication.</p> <p> </p> <p>My SharePoint site is created to have Form based Authentication.</p> <p>I have designed a InfoPath Form using &quot;Microsoft Office Infopath 2007&quot;.</p> <p>This form accessing my SharePoint site's WebService to fetch current user's data.</p> <p>When I try to publish or Design check this form for my web site (having Form Based Authentication) its giving me SOAP Exception and not publishing the form.</p> <p> </p> <p>My take on this is, when we create a form in InfoPath by default InfoPath use Windows Authentication for the form and applies same while publishing. If site's Authenticaiton is other than Windows Authentication then it gives a problem in publishing the form.</p> <p> </p> <p>I am facing this problem very badly <img height=19 alt=Sad src="http://forums.microsoft.com/MSDN/emoticons/emotion-6.gif" width=19> and looking out for a solution as early as possible. Will be great if some one can help me out <img height=19 alt=Smile src="http://forums.microsoft.com/MSDN/emoticons/emotion-1.gif" width=19></p>Thu, 31 May 2007 05:27:31 Z2009-11-26T16:04:35Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/ceaeb4e3-4a6f-4d57-837d-c1911b56e26bhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/ceaeb4e3-4a6f-4d57-837d-c1911b56e26bSean Sharepointhttp://social.technet.microsoft.com/Profile/en-US/?user=Sean%20Sharepoint"Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed"I have created an app in VS 2008 c# to use in sharepoint, that sends a couple of basic emails. I first created a console app to test it, it worked fine, using the our companys SMTP server to send the emails, the emails were sent successfully.<br/><br/>After seeing that it worked correctly, I put this code behind a button in Infopath forms and I get this error: Request for the permission of type 'System.Net.Mail.SmtpPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.<br/><br/>I don't understand why this worked correctly in console app and not behind the infopath button, do I have to give permissions in Infopath? I shouldnt have to configure settings on the server, because it worked with my console app. I have the app running on my localhost, its not hosted elsewhere. And as Im sure you know, code behind a button is developed using VSTA (visual studio tools for applications). I am fairly new to coding, so if you can, please be explicit. Thanks in advance!<br/><br/>Moderators: Would this question be served better in a diiferent forum? Wasnt sure where to put it.ThanksWed, 25 Nov 2009 16:53:31 Z2009-11-26T06:49:32Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/80bd0890-52de-4e37-bb0a-3d55978f3fe4http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/80bd0890-52de-4e37-bb0a-3d55978f3fe4asemblerhttp://social.technet.microsoft.com/Profile/en-US/?user=asemblerViewing exitisting instances of the InfoPath forms inside SharePoint page layoutsHi,<br/><br/>I was able to set up a SharePoint page with an to enable submission of new InfoPath forms using embedded XmlFormView Web Part (I used instructions posted here <a href="http://www.nickgrattan.net/Publications/How to Host Microsoft InfoPath Forms in SharePoint Pages.pdf">http://www.nickgrattan.net/Publications/How%20to%20Host%20Microsoft%20InfoPath%20Forms%20in%20SharePoint%20Pages.pdf</a>) <br/><br/>However I'm not sure how to view these forms that I created in the same &quot;embedded&quot; manner, i.e. inside a SharePoint page layout, rather than having it open in a new window as it does by default. Hope my question is clear enough.<br/><br/>Cheers,<br/><br/>asemblerThu, 26 Nov 2009 01:40:59 Z2009-11-26T01:41:00Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/cbc963ce-6490-4b6e-b1cb-b7a2ac37bc0bhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/cbc963ce-6490-4b6e-b1cb-b7a2ac37bc0bDLewickihttp://social.technet.microsoft.com/Profile/en-US/?user=DLewickiSigning Digitally - Protected Item Error<p><br/>I am getting the following error when I attempt to sign an InfoPath form in the browser.<br/>Can anyone help?<br/><br/>Thanks, Dave<br/><br/><br/>An application is requesting access to a Protected Item.</p> <p><br/>Program: C:\Program Files\Internet Explorer\iexplore</p> <p>Description:  CryptoAPI Private Key</p> <p>Access type:   Accessing a Protected item.</p>Wed, 25 Nov 2009 20:35:11 Z2009-11-25T20:35:11Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e869a447-d2c4-4211-a3c4-c3a0377a7631http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/e869a447-d2c4-4211-a3c4-c3a0377a7631manoj2009http://social.technet.microsoft.com/Profile/en-US/?user=manoj2009Clearing value of few published columns from a form libraryHi,<br/>I have a moss form library with with an infopath form published on it. Some of the published columns are created by merging 2 or more data sources (merged while publishing). I want to clear the values of some of these merged columns in all the submitted forms. There are more than 2000 forms submitted in the library. <br/><br/>Is there a way to achieve this easily?<br/><br/>Tia <br/>ManojThu, 19 Nov 2009 09:24:28 Z2009-11-27T03:17:08Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/c05b04de-5564-490c-9d22-2622bc86feb6http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/c05b04de-5564-490c-9d22-2622bc86feb6neetukanyalhttp://social.technet.microsoft.com/Profile/en-US/?user=neetukanyalThe form template cannot openHi All,<br/><br/>InfoPath 2003 is deployed in MOSS 2007. Some users are facing below issue when they are opening infopath form.<br/><br/>The form template cannot open because the system administrator has disabled opening form templates that require access to files and settings on your computer<br/><br/>Thanks,<br/>Neetu <hr class=sig> neetuFri, 20 Nov 2009 04:42:49 Z2009-11-25T16:24:50Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/724fd41c-8817-45bf-85bf-80a86a37fdd7http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/724fd41c-8817-45bf-85bf-80a86a37fdd7HollieDhttp://social.technet.microsoft.com/Profile/en-US/?user=HollieDURL IssueI have a borwser enabled Infopath form, a SharePoint list and a workflow. My workflow populates the list with the URL to the corresponding task so that I can reference the URL in a link on the form. The URL in the list is correct but for some reason when I use the data connection to the list to pull back the field with the URL, the field is populated with the URL twice, seperated by a comma. For instance, the URL in the list has &quot;http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx&quot;  but when populated in the hyperlink on the form it has http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx,http://server/site/lists/tasks/dispform.aspx?id=349&amp;source=/site/Shared%20Documents/Intranet%20Redirect%20Page.aspx&quot;. Since it has it twice, the source URL is not working correctly and it returns to the original area, which is undesirable.<br/><br/>Has anyone else ever had this issue? Please help.<br/><br/>Thanks!Tue, 24 Nov 2009 21:37:47 Z2009-11-25T16:20:51Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/81283941-e5e4-4384-81af-379c01f7ab06http://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/81283941-e5e4-4384-81af-379c01f7ab06Jon Hart SAhttp://social.technet.microsoft.com/Profile/en-US/?user=Jon%20Hart%20SAUsing Infopath to create calenderHi all<br/> <br/> Is there a way for and info path form to create a sharepoint calendar entry?Wed, 18 Nov 2009 10:12:56 Z2009-11-26T09:05:04Zhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/b34c0a5e-bf20-4442-9387-92ccf6cca26dhttp://social.technet.microsoft.com/Forums/en-US/sharepointinfopath/thread/b34c0a5e-bf20-4442-9387-92ccf6cca26dBrijesh.Singhhttp://social.technet.microsoft.com/Profile/en-US/?user=Brijesh.SinghInfopath Date Control Is it possible to set date control in infopath form to accept only dates from &quot;Sunday&quot; day of the week. <div>So far i have tried a number of possible combinations of Data Validations but non of them worked.</div> <div><br/></div> <div>Any help is much appreciated.</div> <div><br/></div> <div><br/></div><hr class="sig">Brijesh Singh Tue, 29 Sep 2009 10:50:18 Z2009-11-25T15:47:17Z