Article archive

Get Timer Job history by Powershell

02/10/2018 11:00
Add-PSSnapin Microsoft.sharepoint.powershell   $TimerJobName = "Immediate Alerts" $webApplicationUrl = "https://mywebappurl/";   #custom date range #$StartTime = "09/26/2015 01:00:00 AM"  # mm/dd/yyyy hh:mm:ss #$EndTime = "09/26/2015 01:30:00...

Convert .cer file to .pfx

22/05/2018 12:12
There is cool article on https://blog.jayway.com/2014/09/03/creating-self-signed-certificates-with-makecert-exe-for-development/ how to make self signed certificate using makecert and pvk2pfx commands. But for access pvk2pxf you will need to instal Windows Driver Kit or some extensions...

SharePoint DateTimeControl validation

26/04/2018 12:12
In case of SharePoint:DateTimeControl validation there is special string needed for assign to ControlToValidate attribute: controlID$controlIDDate   <tr>                 <td class="formlabel">Absolvoval dňa *</td>    ...

Display attachments in list view

25/04/2018 17:22
here is content of JSLink file, attached directly to field in code behind via JSLink property   This code displays links to attachments directly in list view instead of clip icon and also changes clip column header to another title: Certifikat. Attachments are open in the other...

Set Search Results web part Fetched properties by PowerShell

15/02/2018 12:48
Once we made typo in Core Search Results (SP 2010) web part in Fetched properties xml. This caused error of whole page (not only web part), so page was not editable any more and web part properties couldn't be edited any more via UI. SharePoint Designer also didn't allow to edit this page with web...

Add attachments to sharepoint list item programmatically

17/01/2018 17:17
 Copy splistitem attachments to other list item. If any changes were done on destItem, there must be saved before adding attachments     public static SPFieldUrlValue UpdateAttachments(SPListItem sourceItem, SPListItem destItem)         {  ...

Resize or rotate image in SharePoint library

16/01/2018 10:36
using System.Drawing;   ...   public static string ResizeImageItem(SPListItem item) { var message = Constants.Error;     var isImage = true; if (isImage) { var file = item.File; var parentFolder =...

Show error message in popup using SharePoint function

16/01/2018 10:25
We wanted to show some message in popup window of SharePoint style from javascript, something nicer than javascript alert. This function is core SharePoint function, so we don't need to create our custom using SP.UI.ModalDialog... it's very userful for showing...

Get selected image size by javascript

11/01/2018 12:32
 var test = {  getSelectedPictureSize: function (fileObj) {         var _deferred = $.Deferred();           var imageSize = { width: 0, height: 0 };                 var reader = new...

Get SPListItem image size

11/01/2018 11:39
How to get image dimensions from SPListItem in case of picture is stored in Pictue library or Document library. in case of Picture library, there are fields to store this values, but not in Document library. However this value is stored in MetaInfo field which contains also other values. So we can...
Items: 1 - 10 of 377
1 | 2 | 3 | 4 | 5 >>