Wednesday, 4 December 2013

Insert,update,delete in sharepoint list using Javascript

<input type="button" value="Submit"  onclick="createListItem();" style="width: 89px" /> <input type="button" value="Update"  onclick="updateListItem();" style="width: 89px" /> <input type="button" value="Delete"  onclick="deleteListItem();" style="width: 89px" /> <script type="text/javascript">     var siteUrl = '/sites/TeamSite1';     function createListItem() {  ...
Continue Reading...

Delete all SharePoint List Item using Powershell in SharePoint

Sytax:- $SITEURL = "http://serverurl" $site = new-object Microsoft.SharePoint.SPSite ( $SITEURL ) $web = $site.OpenWeb() "Web is : " + $web.Title $oList = $web.Lists["LIST NAME"]; "List is :" + $oList.Title + " with item count " + $oList.ItemCount $collListItems = $oList.Items; $count = $collListItems.Count - 1 for($intIndex = $count; $intIndex -gt -1; $intIndex--) {         "Deleting record: " + $intIndex  ...
Continue Reading...

Tuesday, 3 December 2013

join two sharepoint list using c#

1.Create a custom list name as "List1" with below column 2.Create a custom list name as "List2" with below column 3.paste the below code inside the webpart public void GetEmployee()         {             SPWeb objweb = SPContext.Current.Web;          ...
Continue Reading...

Timer Job Example in SharePoint 2013

1.open visual studio 2012 2.Add SharePoint2013-Empty Project named it "TimerJobExample" 3.Enter your site collection and choose Deploy as a Farm solution 4.Add class file in your solution named it "Employee" 5.paste the below code inside the Employee class  public class Employee : SPJobDefinition     {      ...
Continue Reading...

Create sharepoint list custom form via visual studio 2012

1.open visual studio 2012 2.Add Sharepoint 2013 Empty project Named it "Employee" 3.Create a custom list name as "Employee" and add the below columns 4.Right click the project add the layouts folder inside that add one Application page named it "EmpCustomForm" 5.Paste the below code inside the Content ID "Main"    ...
Continue Reading...

Followers

Follow The Author