Posts

Showing posts from August, 2013

CustomAction Element

http://msdn.microsoft.com/en-us/library/ms460194.aspx

Create a Custom Action in Site Action\Settings in SharePoint 2013

Visual Studio 2012 --> SharePoint 2013 Project -->Right Click on the Project ---> Add New Item--> Empty  Element <? xml version = " 1.0 " encoding = " utf-8 " ?> < Elements xmlns = " http://schemas.microsoft.com/sharepoint/ " >   < CustomAction   Id = " NewID "   GroupId = " SiteActions "   Location = " Microsoft.SharePoint.StandardMenu "   Sequence = " 2000 "   Title = " My Link "   Description = " Create My Link " >     < UrlAction Url = " ~/_layouts/15/Test.aspx " />   </ CustomAction > </ Elements > Hope this will helps you... Happy Coding...

CrossListQueryInfo in SharePoint

                   The CrossListQueryInfo object uses the CrossListQueryInfo object to get the cached results or, if there are no cached results available, it performs a cross-list query to the database and then caches the results for future use .        CrossListQueryInfo clqi = new CrossListQueryInfo ();                         clqi.Query = "<OrderBy><FieldRef Ascending=\"FALSE\" Name=\"Title\" /></OrderBy><Where><BeginsWith><FieldRef Name=\"Title\" /><Value Type=\"Text\">Test</Value></BeginsWith></Where>" ;                         clqi.ViewFields = "<FieldRef Name=\"Title\" /><FieldRef Name=\"ContentType\" />" ;                         clqi.Lists = "<Lists BaseType=\"1\" />" ;                         clqi.Webs = "<Webs Scope=\"SiteCollection\" />" ;            

Query SharePoint List - SPQuery vs SPSiteDataQuery vs CrossListQueryInfo

Click here hope this will help you...