Archive

Archive for January, 2012

Get Value of Taxonomy Column from SharePoint List


Get Value of Taxonomy Column from SharePoint List

<script type=”text/javascript” src=”/_layouts/15/sp.runtime.js”></script>
<script type=”text/javascript” src=”/_layouts/15/sp.js”></script>
<script type=”text/javascript” src=”/_layouts/15/SP.Taxonomy.js”></script>

var objlist = objClientCtx.get_web().get_lists().getByTitle(“MyList”);
this.lstObjectItem = objlist.getItemById(itemID);
var listItem =this.lstObjectItem;

var i;
var count=listItem.get_item(‘MyTaxColumn’).get_count();

for (i=0;i<count;i++){
//Label
var label = listItem.get_item(“MyTaxColumn”).get_label();

//Term GUID
var termGUID = listItem.get_item(“MyTaxColumn”).get_termGuid();

//Type ID
var typeID = listItem.get_item(“MyTaxColumn”).get_typeId();

//WSS ID
var wssID = listItem.get_item(“MyTaxColumn”).get_wssId();
}

Or

<script type=”text/javascript” src=”/_layouts/15/sp.runtime.js”></script>
<script type=”text/javascript” src=”/_layouts/15/sp.js”></script>
<script type=”text/javascript” src=”/_layouts/15/SP.Taxonomy.js”></script>

var objClientCtx = new SP.ClientContext.get_current();
var objlist = objClientCtx.get_web().get_lists().getByTitle(“MyList”);
this.lstObjectItem = objlist.getItemById(itemID);
var objitem =this.lstObjectItem;

var i;
var count=objitem.get_item(‘MyTaxColumn’).get_count();

for (i=0;i<count;i++){

alert(objitem.get_item(‘MyTaxColumn’).get_item(i).$0_1);
alert(objitem.get_item(‘MyTaxColumn’).get_item(i).$1_1);
alert(objitem.get_item(‘MyTaxColumn’).get_item(i).$2_1);
}

Categories: Uncategorized

Infopath 2010


Categories: Uncategorized

SharePoint 2010 Reusable Workflow


Categories: Uncategorized

SharePoint 2010 BI Formulas



BI Formulas

BI Formulas

Categories: Uncategorized