Search - InfoPath Dev Sign in | Join | Help InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads Search More Search Options Page 5 of 6 (54 items) « First ... < Previous 2 3 4 5 6 Next > Re: DataAdapters syntax IP 2007 Mike Posted to Code (Forum) by Michael Vasquez on 07-18-2008 Re: DataAdapters syntax Basically, what I am doing is to submit the form, not using code, to a SharePoint List, which I am doing now with success. What I need to do is to email a confirmation email to a person requesting SharePoint training. I can do that using the current data connection. The problem is that the "To" field in the data ... Posted to Code (Forum) by Michael Vasquez on 07-18-2008 Re: DataAdapters syntax Still does not work. and Microsoft's samples are lame. For example from their page. Visual Basic(Usage) Dim instance as EmailAdapter Dim value as String value = instance.Subject instance.Subject = value Strange looking. Other sample I found as an example: Dim oEmail As EmailAdapter = ... Posted to Code (Forum) by Michael Vasquez on 07-18-2008 DataAdapters syntax Need help in using the the XDocument.DataAdapters using VB.net Tried the following but keep getting errors. Dim oEmail = XDocument Dim xDoc = XDocument oEmail = xDoc.DataAdapters("Email Submit") The error I get is "Object reference not set to an instance of an object." I do have a data connection called Email ... Posted to Code (Forum) by Michael Vasquez on 07-17-2008 Re: Fire rules on a control via code Could you show a sample of code you did to do the above. I want to be able to run a rule when I click on a button to run a rule. TIA Mike Posted to General (Forum) by Michael Vasquez on 06-04-2008 Submit Form Programmatically I have search everywhere and there are no examples of how to submit an InfoPath form programmatically. I can do it using the standard method but I want to know how to do it programmatically. Here is what I have so far. Public Sub FormEvents_Submit(ByVal sender As Object, ByVal e As SubmitEventArgs) ' If the ... Posted to General (Forum) by Michael Vasquez on 05-16-2008 Re: Set Value of Drop-Down List Box to Item #1 Found my problem. Old code: xnMyForm.SelectSingleNode("/my:SharePointTraining/my:directorate", ns).SetValue("") Don't work New Code: xnMyForm.SelectSingleNode("/my:SharePointTraining/my:Directorate", ns).SetValue("") Works. Notice the capital "D" in ... Posted to Newbie Questions (Forum) by Michael Vasquez on 05-09-2008 Re: Set Value of Drop-Down List Box to Item #1 I did not realize the XPathNavigator is case sensitive. I did the following and it works, xnMyForm.SelectSingleNode("/my:SharePointTraining/my:Directorate", ns).SetValue("") Thanks, Mike Posted to Newbie Questions (Forum) by Michael Vasquez on 05-06-2008 Re: Set Value of Drop-Down List Box to Item #1 Still does not work. Your code return the MessageBox.Show("Failed to select") This is just a drop-down box and I want to reset it to the first item in the list, which is blank. I can submit the form with no problems but I just want to set the field to blank. All the test boxes work because they are simple ... Posted to Newbie Questions (Forum) by Michael Vasquez on 05-06-2008 Re: Set Value of Drop-Down List Box to Item #1 my:directorate is a drop-down list box and the data type is string which points to a SharePoint list that contains a list of all the directorates. The error is NullReference Exception The message is "Message="Object reference not set to an instance of an object." Posted to Newbie Questions (Forum) by Michael Vasquez on 04-29-2008 Page 5 of 6 (54 items) « First ... < Previous 2 3 4 5 6 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.