Posts

KPI Fix for SharePoint 2013

Wrote a fix for KPIs loading on SharePoint 2013: 1) Create a file called KPIFix.js and save it to a document library on your SharePoint site. // Fix for KPI loading var arrayKPIPanelIds = []; var KPIPanelIndex = 0; function kpiEndRequestHandler() {     try{         if (KPIPanelIndex < arrayKPIPanelIds.length)         {             var pid=arrayKPIPanelIds[KPIPanelIndex];             __doPostBack(pid,"");             KPIPanelIndex++;             Sys.WebForms.PageRequestManager.getInstance().remove_endRequest(kpiEndRequestHandler);             Sys.WebForms.PageRequestManager.getInstance().add_endRequest(kpiEndRequ...

Getting Authentication Prompt When Accessing SharePoint Web Services

You have a SharePoint site that is configured to be accessible by anonymous users, and the site's permissions are also configured to allow anonymous users.  You create a JavaScript based web part to access SharePoint's web services, pull list items, and display them using the GetListItems SOAP 1.2 call.  For some reason, users are prompted to authenticate when accessing your site.  I discovered that the fix for this is in the web request content type. If you set the content type to "text/xml; charset=utf-8" as in the SOAP 1.1 envelope sample, SharePoint won't prompt you to authenticate. Here's the /_vti_bin/lists.asmx?op=GetListItems output for reference: SOAP 1.1 The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values. POST /_vti_bin/lists.asmx HTTP/1.1 Host: moss2007hv.kor.cmil.mil Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://schemas.mi...

SP2013 and PlanetWilson.SharePoint.ColourCalendarV2.4

So, we finally upgraded to SharePoint 2013. PlanetWilson.SharePoint.ColourCalendarV2.4 was being used on our old SP2007 farm.  I delayed writing this script until my company was off of SP2007, thinking someone else would write it by the time we migrated. However, I noticed no one easily Googleable has done it. So after a few hours of coding, here is the script that you can add to your calendars that are using Planet Wilson color coding to get it working again, as originally designed (pulling colors from the Colour Calendar Mapping list). I wrote it using SharePoint 2013 JavaScript Client API.  I didn't use JQuery to reduce the number of library dependencies it had.  Just plain old JavaScript.  It uses document.getElementsByClassName, though, which only started getting support from IE  after IE11.  If you are on SP2013, you are more than likely using a fairly recent browser, anyways. 1) Throw the below code into a file called PlanetWi...

Link Field for the Workflow Task List in SharePoint 2010

I noticed that the display name for the "Link" field for WorkflowTask content type has changed to "Related Content" with static name "WorkflowLink." The Link field normally contains the Url to the List and the title/name of the item that the workflow task is referring to in a comma delimited format. I was using the Link field to get the associated item information.  Excerpt from C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\ctypes\ctypeswss.xml: <ContentType Version="0" Group="_Hidden" Name="$Resources:WorkflowTask" ID="0x010801" Description="$Resources:WorkflowTaskCTDesc" Hidden="TRUE"> <FieldRefs> <FieldRef Name="Link" ID="{58ddda52-c2a3-4650-9178-3bbc1f6e36da}"/> <FieldRef Name="OffsiteParticipant" ID="{16b6952f-3ce6-45e0-8f4e-42dac6e12441}"/> <FieldRef Name="Offs...

Installing Cold Fusion MX7 on Windows Server 2008 R2 64bit or Windows Server 2012 R2 64bit

Installing ColdFusion MX7 on Windows 2008 R2 64bit and Windows 2012 R2 64bit With the end of support for Windows 2003, it was time to move our Cold Fusion services to a newer server architecture. Though we've generally moved to ASP.NET and ASP.NET MVC, we have a few applications that were developed for Cold Fusion MX 7 around 2006.  We haven't had time to rewrite some of the old ColdFusion MX7 applications, so we kept those applications running on the old Windows 2003 platform.  Since we don't develop any new applications in CFMX7 and we plan to eventually rewrite everything in .NET, we have not bothered to purchase a newer version of Cold Fusion, as is recommended by ADOBE.  NOTE: CFMX7 is not supported on Windows 2008 and Windows 2012.  You should probably purchase and use the latest version of Cold Fusion for your production environment, especially if you intend on supporting those CF apps over the long term. Given that ...