Showing posts with label Docuement library. Show all posts
Showing posts with label Docuement library. Show all posts

Friday, December 2, 2016

02 Dec

Delete all files & folders from SharePoint library

Add-PSSnapin Microsoft.SharePoint.PowerShell # Replace siteurl with actual web url $web = Get-SPWeb -Identity "siteurl" # Replace docurl with document library url $list = $web.GetList("docurl") function DeleteFiles {     param($folderUrl)     $folder = $web.GetFolder($folderUrl)     foreach...

Monday, October 24, 2016

24 Oct

Where attachments are being stored in sharepoint

Like the documents in a document library, attachments are stored in Blob form in the content database You can use Sharepoint Designer to access your Sharepoint Site, there are the Document Librarys and the documents you uploa...

Thursday, June 9, 2016

09 Jun

How can you move a document with its version history to a new library?

Tools:  Lars Fastrup has created a tool that does just what you want: CopyMove for SharePoint It also has a web service API. 2 document libraries Both contain multiple documents The documents have multiple versions using objects like SPExport and SPImport the copy, move actions of the content site...
09 Jun

How to override a checked out document?

 Hhigh enough permission level you can select the document, go over the ribbon to files and click "Discard Check Out" ...

Saturday, April 9, 2016

09 Apr

Freeze header in SharePoint List 2013

In this below script, Freeze header in SharePoint List 2013 The stickyHeaders widget as part of the Sharepoint List . _spBodyOnLoadFunctionNames.push("stickyHeaders"); function stickyHeaders() {//-----------------------------------------------------------------------------------------------------------------------------------------------...

Tuesday, March 29, 2016

29 Mar

How to change SharePoint list field color using jquery code base on value?

In this below script, hange SharePoint list field color using jquery code  $("table.ms-listviewtable > tbody > tr > td:nth-child(columnNumber) > div").filter(function() {         ( parseInt( $(this).text() ) > 59 ) ? $(this).css("background-color", "#00FF66") : null    ...
29 Mar

How to open a calendar item in a modal dialog?

In this below script, open a calendar item in a modal dialog function openDialog(pageUrl) {   var options = {       title : "calender",       width : 500,       height : 400,       url : pageUrl   };   SP.SOD.execute('sp.ui.dialog.js', 'SP.UI.ModalDialog.showModalDialog',...

Monday, March 7, 2016

07 Mar

File size limit and/or update count limit List and Library

Maximum file size limit is 2 GB Default values are: For SharePoint 2013: default max file size is 250 MB For SharePoint 2007/2010: default max file size is 50 MB https://technet.microsoft.com/en-us/library/cc262787(v=office.14).aspx#ListLibra...

Wednesday, March 2, 2016

02 Mar

How to Insert New Item Into SharePoint List Programmatically

using (SPSite spSite = new SPSite(strSiteUrl, token)){spSite.AllowUnsafeUpdates = true;using (SPWeb spWeb = spSite.OpenWeb()){ SPList spList = spWeb.Lists["Enquiry"];SPListItem spListItem = spList.Items.Add(); spListItem["Title"] = "Peak";spListItem["Location"] = "India"; spWeb.AllowUnsafeUpdates = true;  spLis...

Thursday, February 18, 2016

18 Feb

Drag & Drop in SharePoint Document libraries in SharePoint 2010

Please follow the below url step In that article ,Have script file we have to add content editor webpart. Some restriction will be restrictions.  http://dandd.codeplex.com/ ...
18 Feb

How to move a document with version history to a new library?

 Drag & Drop a file in Explorer View from one document library to another,  Both libraries need to have versioning enabled. Retains the versions if you MOVE the files. It does not do so when you perform a COPY...

Tuesday, January 19, 2016

19 Jan

How to Lookup Column Value and XSL SharePoint Default forms?

Please add attribute  this disable-output-escaping="yes" <xsl:value-of select="@Designation" /> Try  like this: <xsl:value-of select="@Designation" disable-output-escaping="yes" /&g...
19 Jan

How to add edit link in sharepoint 2013 list column

Do below steps Open the AllItems.aspx page view for the specific list. Search for the <ViewFields> tag List item linkToItem="TRUE" to whichever column you want the link: <ViewFields><br/>     <FieldRef Name="Attachments"/><br/>     <FieldRef Name="LinkTitle"/><br/>  ...

Monday, December 21, 2015

21 Dec

Rename file in a document library folder

if (properties.BeforeUrl != properties.AfterUrl){string[] onp = properties.BeforeUrl.Split('/');string ofn= onp[onp.Length - 1]; // get the old file namestring name= Path.GetFileNameWithoutExtension(ofn);string[] nnp = properties.AfterUrl.Split('/');string nfn = nnp[nnp.Length - 1]; //get the new file namestring furl...

Thursday, February 12, 2015

12 Feb

Unable to save site as template + unexpected error.

when we document library [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint") [void][System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SharePoint.Administration") $docSize = 5000000000 $webservice = [Microsoft.SharePoint.Administration.SPWebService]::ContentService $webservice.MaxTemplateDocumentSize...