Skip to main content

Posts

Showing posts from August, 2013

Disable Loop Back Check in SharePoint 2013

When you access SharePoint web apps from the SP sever, it keeps on prompting for authentication. I wish the installation of SharePoint could have taken care off.  Anyways, you can run this to apply the change on the SharePoint servers. Run this power shell command New-ItemProperty HKLM:\System\CurrentControlSet\Control\Lsa -Name "DisableLoopbackCheck" -value "1" -PropertyType dword   You may have to restart the servers and will have run this from all of your SharePoint servers. You can also navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa in registry and create the dword32 for  DisableLoopbackCheck , modify the value to  1 . I would prefer to use Power Shell any given day.

How to get various item fields using Client Object Model Ecmascript – SharePoint 2010

Here is a list of Fields\Field Types that you would need while accessing SP.ListItem using ECMASCRIPT\JavaScript. Field  – How to Get\set it Title – SP.ListItem.get_item(‘Title‘); ID – SP.ListItem.get_id(); Url -SP.ListItem.get_item(‘urlfieldname‘).get_url() Description – SP.ListItem.get_item(‘descriptionfieldname‘).get_description(); Current Version – SP.ListItem.get_item(“_UIVersionString“); Lookup field – SP.ListItem.get_item(‘LookupFieldName’).get_lookupValue(); Choice Field – SP.ListItem.get_item(‘ChoiceFieldName‘); Created Date – SP.ListItem.get_item(“Created“); Modified Date – SP.ListItem.get_item(“Modified“); -> case sensitive does not work with ‘modified’ Created By – SP.ListItem.get_item(“Author“).get_lookupValue()); Modified by – SP.ListItem.get_item(“Editor“).get_lookupValue()); File  – SP.ListItem.get_file(); File Versions -  File.get_versions();. Content Type – SP.ListItem.get_contentType(); Parent List – SP.ListItem.get_parentList();

How to Display a SharePoint Dialog from Ribbon Button and Get Selected Item Context

Another really cool new feature in SharePoint 2010 is the new dialog framework provided by the JavaScript client object model.  Inside the new client object model is a JavaScript static class called “ SP.UI.ModalDialog ” that provides a number of helpful methods for working with the dialog framework.  In this blog post, I will discuss the process for displaying a SharePoint Dialog using the client object model and wiring it up to a custom ribbon button and also showing how to get context to selected items in a list or library at the time the ribbon button was clicked. Before I proceed I really must give a shout out to my colleague Elisabeth Olson at Microsoft.  Thanks to her awesome demos and presentations from recent events and conferences, I got a great head start on learning how the client-side dialoging object model worked. Also I need to mention that I am using version  14.0.4605.1000  of SharePoint 2010, this version is newer than Beta 1 but not quite full Beta 2.  I am hopi