How to troubleshoot slow InfoPath form performance

Today I needed to solve some performance issues regarding a slow loading InfoPath form. The form was build on a SharePoint list that contained a lot of items (>5000) and 10 lookup columns. The form was loading real slow. I mean really slow. It took more than 6 minutes to display the form. I started […]

Get selected listitems with JavaScript

In some cases you need to do something with the selected items in a list. You can access the items by using some simple JavaScript code:   function GetSelectedItems(){    var ctx = SP.ClientContext.get_current();    var items = SP.ListOperation.Selection.getSelectedItems(ctx);    var item;    for(item in items){       alert("selected item id: " + items[item].id));    } […]