Posts

Showing posts from 2013

SharePoint Survey Back Button

On Internet I could not find a correct solution for implementing a back button in a survey. After some search I found some near implementations but not an implementation that fully worked. One that inspired me was http://sharepointbender.blogspot.nl/2012/04/creating-back-button-on-sharepoint-2010.html but I found the history.back(-2) not satisfying. I wrote my one version in Javascript that uses the FirstField parameter of the survey to implement a correct behaviour. I hope it makes you happy. In the edit form I added a script link to the code below and i added the following statement spbackButton.init("Name of list"); In an javascript file I included the following code. var spbackButton = (function () { var _prevFieldsArray = new Array(); var _currentStep; var _prevPageStep; function setCookie(c_name,value,exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c...

SharePoint 2013 installation headacks

This blog describes some problems that I faced when installing a SharePoint 2013 server Errors encountered The following error showed up When creating a site collection with a custom solution Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts present in the farm. The solution for this problem is to create a new Server AppFabric Cache host and can be found on   msdn . First I created a new SQL database with the name CacheClusterConfigurationDB After that I used the following powershell scripts to create a new Server Appfabric on the server. New-CacheCluster -Provider System.Data.SqlClient -ConnectionString  "Data Source=ServerName\SQL2012;Initial Catalog=CacheClusterConfigurationDB;Integrated Security=True" -Size Small Register-CacheHost -Provider Sys...