Skip to main content


Showing posts from December, 2016

Clear | Remove | Delete Managed metadata (Taxanomy) column value in SharePoint List/ library

You may find many references to write into taxonomy columns (aka. managed metadata columns) but the clearing those is pretty much tricky. Following code sample guide you through how you can clear the taxonomy column value in you custom client side application (JSOM) based on SharePoint . [code type="javascript"] //USAGE: //clearWithValue =true => for clear saved taxanomy column values //clearWithValue =false => wite into taxanomy column function saveValuesToManagedMetadataColumns(listName, fieldId, taxanomyLabel, siteUrl, clearWithValue) { //You many need seperate function to resolve GUID for the lable. //Its based on your requirement and for now its hardcoded var taxonmyGuid = "9f75f519-51f8-4723-9182-7e8225a54031"; //Loading context and list var context = new SP.ClientContext(siteUrl); var list = context.get_web().get_lists().getByTitle(listName); //Getting item to update var camlQuery = new SP.CamlQuery(); camlQuery.set_viewXml(

Half preview on the custom Office Web App Interactive preview | Not loading properly

You may implementing a hover or previews of office web app  supported documents on top of SharePoint. But some instances with implementation on IE (Internet Explorer) gives half preview as shows on the below snapshot. [caption id="attachment_1231" align="alignnone" width="345"] Custom embedded office web app interactive preview[/caption] Cause ? We are achieving the document preview with integration of office webs in an iframe and it loads its contents dynamically. For other browsers like Chrome its scales well when dynamic loading but for IE it doesn't load the full markup correctly for the full width and height provided (issue with how we see not with loaded content).  Preview Link --> How to integrate interactive preview with the custom solution Office web apps url //