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 1 of 2 (14 items) 1 2 Next > How to create a Custom Timer job in SharePoint? When we want to run a task (like sending emails or deleting the list items etc. . . ) in Daily basis or in Hourly basis then we can use a Timer job to this task .To see the timer job you can move to the Central Administrations then click on the operations tab, then in the Global Configuration section you can see the Timer job status and timer job ... Posted to SharePoint Integration (Forum) by elizas on 06-28-2010 Re: Link to the attachment A list item in SharePoint can have multiple attachments. Below is a code snippet in c#.Net to add an attachment to a list item programmatically. This example demonstrates how a file, uploaded through a file upload control is added as an attachment to a list item. using (SPSite oSPsite = new SPSite(http://website Url/)) { using (SPWeb ... Posted to General (Forum) by elizas on 06-24-2010 Re: Programmatically add an item to a SharePoint list fails Hi, Plz check the answer given below. We can use SharePoint API to create these fields and associate the corresponding attributes programmatically within an existing List. Provided below is a code snippet in C#.Net describing the same. using (SPSite oSPsite = new SPSite("http://Web-URL")) { oSPsite.AllowUnsafeUpdates = ... Posted to SharePoint Integration (Forum) by elizas on 06-22-2010 Re: Concatenating SharePoint fields into one InfoPath field drop-down? An example for binding / populating an ASP.Net DropdownList with the values from a SP Choice Field: "Rating", is provided below. 'get the List instance Dim leadLst As SPList = web.Lists("LeadList") 'get the choice field instance Dim fldRating As SPFieldChoice = CType(leadLst.Fields("Rating"), ... Posted to SharePoint Integration (Forum) by elizas on 06-22-2010 Re: Programmatically add a folder to Sharepoint library and set permissions In SharePoint, View is a virtual representation of a set of data from a specific list. We can programmatically create and update views for a list. Provided below is an example in C#.Net which explains the approach of creating and updating views. The code is divided in to 2 parts i.e. Part I - describes how to create a view by assigning specific ... Posted to Code (Forum) by elizas on 06-21-2010 Re: Getting Webservice UpdateListItem to return the newly created list item ID from a Sharepoint List Here is a solution to this problem. public static int NextListItemID(SPSite oSite, Guid listId) { int listItemId = -1; Microsoft.SharePoint.SPSecurity.RunWithElevatedPrivileges(delegate() { if (oSite.WebApplication.ContentDatabases.Count > 0) { //Get the connection ... Posted to Web Services (Forum) by elizas on 06-21-2010 Re: Update SharePoint List Item if it Already Exists Provided below are code samples written in C# to format an input as per SharePoint DateTime field. /* -- Format for Date Only Field -- */ private static String ToSPDate(String strDt) { if (strDt == String.Empty) return strDt; else return (Convert.ToDateTime(strDt)).ToString("yyyy-MM-dd"); } /* -- ... Posted to SharePoint Integration (Forum) by elizas on 06-18-2010 Re: CAML not Deleting or Updating List Items Provided below are code samples written in C# to format an input as per SharePoint DateTime field. /* -- Format for Date Only Field -- */ private static String ToSPDate(String strDt) { if (strDt == String.Empty) return strDt; else return (Convert.ToDateTime(strDt)).ToString("yyyy-MM-dd"); } /* -- ... Posted to SharePoint Integration (Forum) by elizas on 06-18-2010 re: Removing qRules from a Form Thanks it was very insightful Posted to Hilary Stoupa (Weblog) by elizas on 05-10-2010 Re: Programmatically add a folder to Sharepoint library and set permissions In SharePoint, View is a virtual representation of a set of data from a specific list. We can programmatically create and update views for a list. Provided below is an example in C#.Net which explains the approach of creating and updating views. The code is divided in to 2 parts i.e. Part I - describes how to create a view by assigning specific ... Posted to Code (Forum) by elizas on 05-06-2010 Page 1 of 2 (14 items) 1 2 Next > Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.