How to create charts from SharePoint 2013 lists via SharePoint Apps

A colleague (Koen Zomers) pointed me towards a very interesting Javascript library called jchartfx to render client side charts.

The following SharePoint Hosted App allows you to add an App Part on any page and use another list within the same web to display the data in a graph.jchart_overview


By simply changing the Chart Type in the App Part Properties you can change the rendering of the Graph.


Step 1: Create SharePoint Hosted App

I would strongly recommend following this excellent article on MSDN.

Step 2: Use the cross domain library to retrieve information from the host Web

In order to retrieve information from the host web we need to set the appmanifest permissions so that our app is allowed to read list items from the SharePoint web where we install our app.

Step 3: Provision the required jChartFX libraries

Koen pointed me to the Getting Started section of the JChartFX site and I used this demo to get started.

Step 4: Create App Part

Code examples

Hope it helps!

VN:F [1.9.22_1171]
Rating: 6.5/10 (12 votes cast)
VN:F [1.9.22_1171]
Rating: +4 (from 6 votes)

Using JSLink property of the XsltListViewWebPart to control the rendering of a list, listitem & field

Creating the UI of a SharePoint list has been a challenge in the past. We needed SharePoint Designer, XSLT or custom webparts in order to take control of the presentation of our data in SharePoint lists

In SharePoint 2013 you are in control with no impact on the infrastructure of the farm.

The following steps make it very easy for you to control the UI:

  1. Create a new custom list
  2. Add a new column called “Score”newfield
  3. Add multiple items with different scores (These values are only for demonstration purposes)defaultview
  4. Navigate to the gear icon in the upper right corner and press edit page
  5. Edit the web part properties and locate the propertie JSLink at the bottom
  6. provide the following link: ~site/siteassets/jslink.jsjslink
  7. Press OK
  8. Upload the attached jslink.js file to the site assets library
  9. Open the custom list you created and notice the KPI’s.kpi

What if you do not want to take control over a field, but you really want to change the presentation of the entire item?

By modifying the jslink.js, it is possible to provide a render method that will take control over the UI of the item. The following screenshot show you the result when you loop over the attributes of the ctx.CurrentItem object.
Check out the LoopOverAllVars script to see the source.allvars

In our scenario it would be possible to create another view called executive summary and visualize the data like thisitemcontrol

It depends on the customer’s requirements how the information need to be displayed, but I think this technique is very efficient!

Hope it helps!

VN:F [1.9.22_1171]
Rating: 8.8/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

Introducing: The SharePoint and VBA Code Analyzer

Learn about a tool that analyzes your SharePoint full-trust code solutions and Office add-ins and macros to help you redesign them for the app model. Security is important to us—your code remains private while using the tool.


Hope it helps!

VN:F [1.9.22_1171]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Overview of the issues that are fixed in SharePoint 2013 SP1

This information is a crosspost from:


SharePoint 2817429​ Metadata is lost when documents   that use a custom content type with a “Description” field are   opened for editing.
SharePoint 2817429​ When an item is deleted,   restored from recycle bin, and then deleted again, there is a primary key   constraint error.
SharePoint 2817429​ An error occurs when files are   moved between document libraries and the web time zone is behind that of the   server.
SharePoint 2817429​ Metadata filtering at list level   always lists all metadata terms.
SharePoint 2817429​ The hyperlink popup window drops   the selected word to be linked when there is a delay of more than one second   in opening the window.
SharePoint 2817429​ Multiple-column,   SummaryLinkWebParts with a group heading style of “Separator” are   rendered incorrectly.
SharePoint 2817429​ A hash tag that contains a full   width space does not get created successfully.
SharePoint 2817429​ Search schema compression is now   enabled by default to allow larger search schemas.
SharePoint 2817429​ Highlighting for FQL queries is   now enabled for FQL as well as KQL.
SharePoint 2817429​ Opening a custom SharePoint list   in datasheet view and applying multiple custom filters, where each filter has   more than one condition, can result in an incomplete set of list items.
SharePoint 2817429​ When the “Export to   Excel” button is clicked in a SharePoint document library that has the   Content Type field displayed, the Content Type field does not appear in the   Excel workbook.
SharePoint 2817429​ An error occurs after changing   the “Manager” property in EditProfile.aspx page when the My Sites   WebApp is not in the same farm as the UPA.
SharePoint 2817429​ SharePoint REST API does not   return a well-defined error response for a duplicate key exception.
SharePoint 2817429​ Developers are unable to specify   a Content Type ID when creating Content Types in the client object model.
SharePoint 2817429​ On list views in SharePoint   sites, the Connect to Outlook button in the ribbon may be erroneously   disabled.
SharePoint 2817429​ In some non-English languages of   SharePoint, the text displayed in the callout UI for a document or list item,   describing who last edited the item, may not be grammatically correct.
SharePoint 2817429​ Copy and Paste in a datasheet   does not work correctly with Internet Explorer 11.
SharePoint 2817429​ Pages do not render in Safari   for iPad when private browsing mode is used.
SharePoint 2817429​ When editing rich text fields in   SharePoint, if the editing session exceeds 30 minutes, the edits may not be   saved.
SharePoint 2817429​ An error that says   “SCRIPT12004: An internal error occurred in the Microsoft Internet   extensions” may occur intermittently when users visit their SkyDrive Pro   or other pages on their personal site.
SharePoint 2817429​ InfoPath may crash when a form   that points to a SharePoint list, with a lookup to another SharePoint list,   is opened.
SharePoint 2817429​ An InfoPath form with extended   characters in its name fails to open.
SharePoint 2817429​ An error that says   “Security Validation for the form has timed out” may occur when an   InfoPath form is digitally signed and hosted in a SharePoint site collection   that uses the SharePoint version 2010 user experience.
SharePoint 2817429​  “Show document icon” remains   unchecked and the document icon does not show in Edit Properties for a list   item.
SharePoint 2817429​ A “Failed tagging this   page” error occurs when the “I like it” button is clicked.
SharePoint 2817429​ The wrong term is removed when   manually editing a multi-valued taxonomy field.
SharePoint 2817429​ When tagging list items using a   language that is different from the term store default language, suggestions   for labels are offered in multiple languages. The suggestions appear   confusing because both language suggestions are listed without any identification   of the language.
SharePoint 2817429​ An error that says “There   was an error processing this request” may appear when editing the user   profile.
SharePoint 2817429​ Times are missing from Date/Time   results in certain filtered list web service calls.
SharePoint 2817429​ Minimal and no metadata are now   enabled as supported JSON formats.
SharePoint 2817429​ Actions4 schema workflow actions   can’t be deployed to SharePoint.
SharePoint 2817429​ Using Client Object Model,   Stream.Seek() to seek to a particular position doesn’t seek at the proper   offset.
SharePoint 2817429​ Refreshing a workflow status   page generates the following error:   “System.Collections.Generic.KeyNotFoundException: The given key was not   present in the dictionary.”
SharePoint 2817429​ Setting custom, non-English   outcomes in web pages on tasks in a workflow fails to set the value.
SharePoint 2817429​ Configurations of SharePoint   using Azure Hybrid mode and Workflow Manager together can cause workflow   callbacks to fail.
SharePoint 2817429​ Workflow task processes on wiki   pages won’t start.
SharePoint 2817429​ Workflows won’t wait for changes   to content approval status fields.
SharePoint 2817429​ E-mails generated by workflow   cannot be disabled for approvals in SharePoint workflows.
SharePoint 2817429​ Workflows may fail to send an   e-mail or send too many e-mails.
SharePoint 2817429​ Association variables do not   update correctly for auto-start workflows.
SharePoint 2817429​ A KeyNotFoundException error may   occur in a workflow when the associated task list uses unique permissions.
SharePoint 2817429​ Incomplete tasks are deleted   when workflow task activities complete.
SharePoint 2817429​ Task activity is suspended when   the task is completed using app-only credentials.
SharePoint 2817429​ An error that says “This   task could not be updated at this time” occurs when trying to complete a   workflow task using the “Open this task” button in Outlook.
SharePoint 2817429​ A workflow doesn’t respond   properly when waiting for changes in specific types of list columns, such as   Boolean, Date Time, and User.
VN:F [1.9.22_1171]
Rating: 9.5/10 (4 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

SPUtility.GetGenericSetupPath is obsolete, long live SPUtility.GetCurrentGenericSetupPath & GetVersionedGenericSetupPath

Whenever you are in a scenario where you need the location to the SharePoint root directory on the server in the farm that is executing your code, do NOT hardcode the path like the example below:

Bad practice:

private const string rootfolder = "C:\\Program Files\\Common Files\\Microsoft Shared\\web server extensions\\14\\";

The location of the SharePoint root directory depends on the configuration during the installation of SharePoint, your code will break if this configuration is different.

As you probably already know, it is a recommended practice to use GetGenericSetupPath available in the static SPUtility class. Please be aware that this method is obsolete in SharePoint 2013 and we have 2 new methods:

This will help you to make sure that your code is generic enough to deal with all scenario’s. For example with site collection upgrade.

Hope it helps!

VN:F [1.9.22_1171]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)

SharePoint Saturday 2014 is coming soon!


The BIWUG board is proud to announce a new edition of SharePoint Saturday Belgium!The event takes place on Saturday – of course :)April 26th at the same location as the previous years: Xylos, St-Lendriksborre 8, 1120 Brussels.

The call for speakers will open today and of course the subscriptions too!

Keep an eye on twitter and the BIWUG site if you want to be amongst the first to subscribe.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Read all c# classes and verifies that AllowUnsafeUpdates is not set

Write-Host "**************************************************************************************************"
Write-Host "| This script will read all c# classes and verifies that AllowUnsafeUpdates is not set           |"
Write-Host "**************************************************************************************************"

$srcdir = Read-Host "Provide directory where all the source code is located" 

$s = [system.IO.SearchOption]::AllDirectories
$fileEntries = [IO.Directory]::GetFiles($srcdir,"*.cs",$s);


foreach($fullFileName in $fileEntries) 
	$file = New-Object -typename System.IO.StreamReader -argumentlist $fullFileName
	$b = $file.ReadToEnd()

	$contains = $b.Contains("AllowUnsafeUpdate");
		Write-Host $fullFileName "contains AllowUnsafeUpdate" -foreground Red

VN:F [1.9.22_1171]
Rating: 8.2/10 (5 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 3 votes)

Service Pack 2 for SharePoint Server 2010 is now available.

Service Pack 2 for SharePoint Server 2010 is now available.
The pack addresses security, stability, and performance and provides better compatibility with Windows 8, Internet Explorer 10, Office 2013, and SharePoint 2013.

In addition to the new functionality Service Pack 2 provides, as with all Service Packs, it includes a number of fixes designed to improve your experience with SharePoint 2010 and includes all Cumulative Updates through April 2013 and Public Updates through May 2013.

More information:

VN:F [1.9.22_1171]
Rating: 10.0/10 (2 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 1 vote)