I'm new using Sharepoint and I have a question. When I try to use this code:
var ctx = SP.ClientContext.get_current();
var items = SP.ListOperation.Selection.getSelectedItems(ctx);
var myItems = '';
var i;
for (i in items)
{
myItems += '|' + items[i].id;
}
Get this:
the type or namespace ClientContext name does not exist in the namespace (are you missing an assembly reference)
Which reference or using sentence am I missing? Even when I type the SP and dot, there is nothing there that allows me to select a method or something. I use Visual Studio 2013 professional and SharePoint 2010. Thanks