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 9 of 10 (92 items) « First ... < Previous 6 7 8 9 10 Next > Re: How do I bind a list box to an existing dataset? For your second error, AddItem(PatientID, PatientLName, "PatientData"); // and here I get the error: the name PatientData does not exist in the current context You forgot your "". For your first error, Do you use Visual Studio?? If so try to write the code and see what visual studio suggest you went you type ... Posted to Newbie Questions (Forum) by mgarant on 06-03-2010 Re: How do I bind a list box to an existing dataset? You just need to go through all the data inside your dataset with a foreach loop and then populate your list with the AddItems function. foreach (DataRow dataRow in patientTable.Rows) { string approver = dataRow.Item[<the ID of the data you want to recover>].toString(); string ... Posted to Newbie Questions (Forum) by mgarant on 06-03-2010 Re: How do I bind a list box to an existing dataset? I think you will need a secondary datasource that you will link the list box on. I suggest to create a xml file template with no data in it. example : <?xml version="1.0" encoding="UTF-8" ?> - <options> - <option> <value /> ... Posted to Newbie Questions (Forum) by mgarant on 06-02-2010 Re: Error opening in browser when using a SQL Database as a data source Are you using code when connecting to the database? If so, did you include the username and password in your connection query? If not, when you open the form the first time, it should ask the password of the database... well that's what happened to me some times ago... there was a check box in the prompt asking if I wanted to save the ... Posted to Browser Forms (Forum) by mgarant on 06-02-2010 Re: Reading Custom List from InfoPath Have you checked the names of the list, item, site, field you are trying to access to? Maybe you made an error when writing them... (example : SPList myList = site.Lists["customlist"]; should be SPList myList = site.Lists["CustomList"];) Posted to Code (Forum) by mgarant on 05-28-2010 Re: How to load list values programatically into infopathform There's some different way to do this, depending on what control you want to load your list in. But there is a general way to do it : - First you need to connect to the sharepoint list you want to load your values from with the Microsoft.Sharepoint assembly - You need to make the CAML query to retrieve the data; - Put the query in a ... Posted to General (Forum) by mgarant on 05-27-2010 Re: Custom Email Notifications when using Collect Data from User in SPDesigner That's exactly what I was looking for! Thank you so much! Posted to Workflow (Forum) by mgarant on 05-27-2010 Custom Email Notifications when using Collect Data from User in SPDesigner Hello there, I was wondering if there is any way to customize the email notification that is sent when the Collect Data From User function is triggered. Thanks a lot in advance! Posted to Workflow (Forum) by mgarant on 05-26-2010 Re: Create a new folder in a sharepoint list Well i've finally managed to do it! Here's how to do it, for those who would need it. ---------------------------------------------------------------------------------------------SPSite oSiteCollection = new SPSite("Your site collection"); SPWeb oWebsiteSrc = oSiteCollection.OpenWeb(); SPList oList = ... Posted to Code (Forum) by mgarant on 05-25-2010 Create a new folder in a sharepoint list Hello there, I'm trying to create a new folder in my sharepoint list on submit event. I use the Microsoft.Sharepoint assembly to do it. There is the code i came with : ----------------------------------------------------------------------------------------------------SPSite oSiteCollection = new SPSite("http://srvspsdev/"); ... Posted to Code (Forum) by mgarant on 05-25-2010 Page 9 of 10 (92 items) « First ... < Previous 6 7 8 9 10 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.