Wednesday, January 16, 2013

Clear SharePoint Designer Cache

Hi All,

Sometimes SharePoint Designer shows files checked out even though they ware not.

This is because designer is refering to local web cache.

Clear all the files from following location to resolve this issue.

- %APPDATA%\Microsoft\Web Server Extensions\Cache

- %USERPROFILE%\AppData\Local\Microsoft\WebsiteCache



Sachin K.

Thursday, January 10, 2013

Using Javascript to get all choice values from SharePoint Choice column

Hi all,

Get List of all choice option from SharePoint Choice field with help of Javascript Client Object model

var context = new SP.ClientContext.get_current();

var web = context.get_web();


var studList = web.get_lists().getByTitle("students");

var studbatches = context.castTo(studList.get_fields().getByInternalNameOrTitle("batches"), SP.FieldChoice);

context.executeQueryAsync(Function.createDelegate(this, this.onSuccessMethod),

Function.createDelegate(this, this.onFailureMethod));

function onSuccessMethod(sender, args) {

var choices = studbatches.get_choices();

alert("Choices: (" + choices.length + ") - " + choices.join(", "));


function onFailureMethod(sender, args) {




 Sachin K.