Search This Blog

Total Pageviews

Saturday, July 31, 2010

Search alerts have been turned off for this Search Application. For assistance, contact your server administrator.


SharePoint 2010 Search Alert :

Error:

Search alerts have been turned off for this Search Application. For assistance, contact your server administrator.


when the user has specified search alert, they will get the above error means.

Solution :

Goto => Central Administration Search Service Application: Search Administration





Enable : Search alert Status.



Tuesday, July 27, 2010

Office Web Apps 2010



I am truly excited with the potential and possibilities of Office Web Apps 2010 (comes along with Office 2010 Volume License). Users with just a browser can edit the document and save it right back on their SharePoint Server. Document formatting everything is preserved just as it is. Very useful for Secure and "reduced" environments....

Deploying Office Web Apps 2010 should be right after your SharePoint 2010 Installation and there are certain steps to be followed, which are explained quite well in technet - http://technet.microsoft.com/en-us/library/ff431687.aspx - Just follow them carefully and you will be pretty fine.

After deploying when creating Word Service, PowerPoint Service applications, you will find your Excel Service Application already existing if you have installed SharePoint 2010 Enterprise Edition.

Not just this, if you are planning FAST 2010, FAST gives document previews right in the search results pane if you have Office Web Apps 2010 deployed :)

Client Object Model Samples in SP2010


using (ClientContext myContext = new ClientContext(siteurl))
{

/// SAMPlE : 01
myContext.Load(myContext.Site);
myContext.ExecuteQuery();
Console.WriteLine(myContext.Site.Url);

/// SAMPlE : 02
/// Client Object Model Using the Load Method

/*
myContext.Load(myContext.Web, web => web.Lists.Include(list => list.Title).Where(field => field.Hidden == false));
myContext.ExecuteQuery();
foreach (List list in myContext.Web.Lists)
{
Console.WriteLine(list.Title);
}
*/


/// SAMPlE : 03
/// Client Object Model Using the LoadQuery Method

/*var query1 = from list1 in myContext.Web.Lists
select list1;*/

var query = from list in myContext.Web.Lists
where list.Hidden == false
select list;
var lists = myContext.LoadQuery(query);
myContext.ExecuteQuery();
foreach (var list in lists)
{
Console.WriteLine(list.Title);
}
Console.Read();
}


Get All List Names and the Corresponding Views Information

using (ClientContext myContext = new ClientContext(siteurl))
{
ClientObjectPrototype listProtoype = myContext.Web.Lists.RetrieveItems();
ClientObjectCollectionPrototype viewProtoType =
listProtoype.RetrieveCollectionObject(ListObjectPropertyNames.Views);
viewProtoType.RetrieveItems().Retrieve();
listProtoype.Retrieve();
myContext.ExecuteQuery();
foreach (var list in myContext.Web.Lists )
{
Console.WriteLine("The views in list: " + list.Title);
foreach (View view in list.Views)
{
Console.WriteLine("\t"+view.Title);
}
}
Console.Read();
}

Update Web title using client object model

using (ClientContext myContext = new ClientContext(siteurl))
{
myContext.Load(myContext.Web);
myContext.ExecuteQuery();
myContext.Web.Title = "SP2010 Development Demo Portal";
myContext.Web.Update();
myContext.ExecuteQuery();
}
}

// Add a new list into the SharePoint site.
List newlyAddedList = myContext.Web.Lists.Add(
new ListCreationInformation()
{
Title = "A New List",
Description = "Some Description",
TemplateType = (int) ListTemplateType.Announcements
}
);
newlyAddedList.Update();
myContext.ExecuteQuery();

Triad Infotech Contact Details

Triad Infotech Pvt Ltd.,
# 24, Rani Arcade, 3rd Floor
1st Avenue, Ashok Nagar,
Chennai, 600 083.
Tamil Nadu, India

Mobile # : +91 99625 78083
Phone # : +91 44 4202 9770

Mail us at info@triadinfotech.com