Article archive

Get query string parameters by javascript

17/12/2015 05:29
function getUrlVars (url) {      var vars = [], hash;      var hashes = url.slice(url.indexOf('?') + 1).split('&');      for(var i = 0; i < hashes.length;...

Get SharePoint list properies by JavaScript

17/12/2015 04:18
function getListProperties() {  SP.SOD.executeFunc('sp.js', 'SP.ClientContext', function () {   //load site     var currentcontext = new SP.ClientContext.get_current();     list =...

Build Survey Edit View link by PowerShell

17/12/2015 03:04
For some reason there were removed links to create View for SharePoint Surveys. When we want to create new view for survey, we go to Survey Settings page and replace survedit in url by ViewType. On that page we can create new view, but we have no access to edit it later. Script bellow generates...

Get User Profile Property by PowerShell

17/12/2015 01:47
Add-Pssnapin microsoft.sharepoint.powershell -ea 0 $siteUrl = "https://mysitecollectionurl" $userName = "domain\username"     $site = Get-SPSite $siteUrl $serviceContext = [Microsoft.SharePoint.SPServiceContext]::GetContext($site);  #Get UserProfileManager from the My Site Host...

Get list items by JavaScript CSOM

16/12/2015 04:07
getListItems function example how to get list items by using javascript client side object model (CSOM).   (function () {     if (typeof MyJSNamespace == "object") {         return;     }     window.MyJSNamespace =...

Javascript function namespaces

16/12/2015 03:51
There is good practice to use namespaces in javascripts to prevent calling incorrect function in case of the same function names in various javascript blocks or files. When using namespaces, we call function from that namespace, so we are sure to call the correct one. We can define functions in...

UserProfileManager in Sharepoint Timer job

15/12/2015 04:38
Get service context from site, not from httpContext as usual     SPServiceContext serviceContext = SPServiceContext.GetContext(site); UserProfileManager userProfileMgr = new UserProfileManager(serviceContext);

Custom field type for SharePoint survey

10/12/2015 10:54
We needed custom field type for SharePoint surveys. When doing it according to different steps found on web sites, it was working fine for SharePoint lists, but we had problems in surveys.Once we used branching in survey, values were not saved, only in case our custom field is on the last page....

Select multiple checkboxes by javascript

28/10/2015 10:47
<!DOCTYPE html> <html> <body> <h2>Checkbox list</h2> <input type="hidden" value="1"> <h3>Multi Operation for list items</h3> <input type="button" value ="Select all" onclick="checkAll()"/> <input type="button" value="Deselect all"...

Create classic mode web application in SharePoint 2013

21/10/2015 17:38
add-pssnapin microsoft.sharepoint.powershell$name = "Sharepoint classic 888"$appPool = "SharepointClassic888AppPool"$appPoolAccount = get-spmanagedAccount "yourdomain\sp_farm"$port = 888$url = "https://yourUrl"New-SPWebApplication -Name $name -ApplicationPool $appPool -AuthenticationMethod "NTLM"...
Items: 51 - 60 of 384
<< 4 | 5 | 6 | 7 | 8 >>