This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
| <script src="http://www.chartjs.org/assets/Chart.js"></script> | |
| <style> | |
| div.number { | |
| position:absolute; | |
| background-color: #F7464A; | |
| top: 15px; | |
| left:37px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| var overrideCtx = {}; | |
| overrideCtx.Templates = {}; | |
| //Tempate overrides | |
| overrideCtx.Templates.Header = function (ctx) { | |
| var html = '<div class="linksBox-wrapper">'; | |
| html += '<div class="linksBox-header linksBox-yellow">'; | |
| html += ctx.ListTitle; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // credit: http://www.vrdmn.com/2014/05/managing-sharepoint-2013-workflows-with.html | |
| using Microsoft.SharePoint.Client; | |
| using Microsoft.SharePoint.Client.WorkflowServices; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Security; | |
| namespace CSOMWorkflow | |
| { | |
| class Program |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Runtime.InteropServices; | |
| using Microsoft.SharePoint.Administration; | |
| var managedAccounts = new SPFarmManagedAccountCollection(SPFarm.Local); | |
| foreach (SPManagedAccount managedAccount in managedAccounts) | |
| { | |
| var securePassword = (SPEncryptedString)managedAccount | |
| .GetType() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(document).ready(function () { | |
| var reportViewerId = $('div[id$=_ReportViewer]').attr('id'); | |
| Sys.Application.add_load(function () { | |
| $find($('div[id$=_ReportViewer]').attr('id')).add_propertyChanged(viewerPropertyChanged); | |
| }); | |
| }) | |
| function viewerPropertyChanged(sender, e) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // get reference to the (first) Excel Web Access webpart on the page | |
| var ewa = Ewa.EwaControl.getInstances().getItem(0); | |
| // add an event receiver for capturing a selection change | |
| ewa.add_activeCellChanged(cellChangedHandler); | |
| function cellChangedHandler(args) { | |
| args.getWorkbook().getActiveSelection().getValuesAsync(0,getRangeValues,null); | |
| } |