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...
Showing posts with label Docuement library. Show all posts
Showing posts with label Docuement library. Show all posts
Friday, December 2, 2016
Monday, October 24, 2016
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
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...
Hhigh enough permission level you can select the document, go over the ribbon to files and click "Discard Check Out"
...
Saturday, April 9, 2016
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
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
...
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
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
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
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
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
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
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
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
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...