Posts

Showing posts from October, 2014
powershell command to get timmer job last run time:  Get-SPTimerJob | select Displayname, LastRunTime | Where-Object {$_.displayname -like "* abcdef *"} *'s help to do a wild card search over all items with this abcdef as a subsitring in them .
C#  random number generator returns same number . or reandom number c# returning same number . Solution: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace msdn {     class Program     {         private static readonly Random random = new Random();         private static readonly object syncLock = new object();         static void Main(string[] args)         {                 const int numInt = 3;             int[] Test = new int[numInt];             for(int i=0; i<numInt; i++)             {                 Test[i] = randNum(numInt);             }             foreach(int num in Test)      ...
create a caclcuated column  sharepoint : http://devdotnotes.wordpress.com/2012/01/29/sharepoint-caculated-column-and-hyperlink-no-workflow-or-script-needed/ http://sharepoint.rackspace.com/calculated-columns-tutorial
Fixed the issue: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM' Solution: Make this change to your binding in web.config file   <binding name=" BasicHttpBinding_ISPWebUsage2 ">           <security mode="TransportCredentialOnly">             <transport clientCredentialType="Ntlm" proxyCredentialType="None"                 realm="" />                        <message clientCredentialType="UserName" algorithmSuite="Default" />           </security>         </binding> Also  make sure you have the same binding in endpoint  <client> <endpoint address="http://abcdefgh/_vti_bin/service1/service.svc" bin...
Image
SharePoint 2013 REST service Basics : SharePoint 2013 introduces a Representational State Transfer (REST) service that is comparable to the existing SharePoint client object models. Now, developers can interact remotely with SharePoint data by using any technology that supports REST web requests.  This means that developers can perform Create, Read, Update, and Delete (CRUD) operations from their apps for SharePoint, solutions, and client applications, using REST web technologies and standard Open Data Protocol (OData) syntax. how it works : To access SharePoint resources using REST, construct a RESTful HTTP request, using the Open Data Protocol (OData) standard, which corresponds to the desired client object model API. Client object model method: List.GetByTitle(listname) REST endpoint: http://server/site/_api/lists/getbytitle('listname')  The (client.svc in 2010) renamed as (_api in 2013 sharepoint ) web service in SharePoint handles the HTTP request, and serv...
programatically dealing with Discussion list : http://blogs.microsoft.co.il/itaysk/2010/05/02/working-with-sharepoints-discussion-lists-programmatically-part-1/
Progamatically iterate throught discussion board and read post ,replies CSOM (client side object model ) code: Get all posts : ClientContext ctx = new ClientContext("http://h8.net/sites/abcd"); //Get the Discussion list List lst = ctx.Web.Lists.GetByTitle("Discussions List"); //Get the topics in the list CamlQuery q = CamlQuery.CreateAllFoldersQuery(); ListItemCollection topics = lst.GetItems(q); ctx.Load(topics); ctx.ExecuteQuery(); Get repiles: //Select a topic from topic array . its in decending order the oldest is 0 ListItem topic = topics[0]; //Get the replies of the selected topic q = CamlQuery.CreateAllItemsQuery(100, "Title", "FileRef", "Body"); //FileRef contains the site relative path to the folder q.FolderServerRelativeUrl = topic["FileRef"].ToString(); ListItemCollection replies = lst.GetItems(q); ctx.Load(replies); ctx.ExecuteQuery(); Create Discussion ites: ClientContext ctx = new ClientContext("htt...
Issue with multiple Picture Slideshow WebPart on same page SharePoint 201 Answer: sharepoint 2013 dosent support multiple slideshow webparts on same page . Lets hope microsoft would provide a fix for that . Trial: When you try to do that you will see both the webparts will point to only one picture library even if you change them to diffrent sources .So you will see same pictures scrolling in both the webparts .