Thursday, September 2, 2010

Sharepoint 2010 Install Guide

http://andreasglaser.net/post/2009/11/17/Installing-SharePoint-Server-2010-on-Windows-Server-2008-R2-and-SQL-Server-2008-R2-Part-4-Active-Directory-installation-and-configuration.aspx

Tuesday, August 24, 2010

The Managed Metadata Service or Connection is currently not available…

Issue:
The Managed Metadata Service or Connection is currently not available…
While configuring the Managed Metadata Service I got the below error...
The Managed Metadata Service or Connection is currently not available. The Application Pool or Managed Metadata Web Service may not have been started, Contact your Administrator.

Resolution:
After installing this the problem is resolved.

You can get the hot fix ‘KB976462 – SharePoint Shared Services Roll-ip’ at

http://code.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=3571

Friday, August 13, 2010

SpUtility Mail Truncate issue

Issue:
SP Utility - Mail truncated after 2048 characters.
Solution:
Use \r\n
Example:
_mailContents.Append("");
_mailContents.Append("If you have any questions, please click here to contact us.");
_mailContents.Append("\r\n");
_mailContents.Append("");

Enjoi!!

Fix for : The List cannot be displayed in Datasheet view (WSS 3.0 and MOSS 2007).

The List cannot be displayed in Datasheet view (WSS 3.0 and MOSS 2007).

Issue:
I also had the same problems on a Windows 7 64 bit Ultimate machine, running Office 2010 64 bit. I installed the 2007 Office System Driver: Data Connectivity Components as instructed on the local machine and did indeed fixed the Datasheet funcitionality.

Solution:
http://www.microsoft.com/downloads/details.aspx?familyid=7554F536-8C28-4598-9B72-EF94E038C891&displaylang=en
2007 Office System Driver: Data Connectivity Components

Thursday, July 22, 2010

recurrence-not-showing-on-calendar-list

http://www.sharepointdev.net/sharepoint--development-programming/recurrence-not-showing-on-calendar-list-43190.shtml

Add new item in Sharepoint Calendar Programmatically.

I used the below code to add new item in sharepoint calendar. Initially the item used to come in AllEvents view ONLY. It was not getting displayed in Calendar view. I just changed Event Type =0 and it worked....Below is the working code which will show item in calendar view too.
SPWeb site = new SPSite("http://moss-ocs:8096/doccenters/IS").OpenWeb();
SPList cal = site.Lists["Calendar"];
SPListItem calEvent = cal.Items.Add();
calEvent["Title"] = "Training19";
//string recurrence = "" +
//"su" +
//"" +
//"2010-09-20T09:00:00Z" +
//"
";
//calEvent["RecurrenceData"] = recurrence;
calEvent["EventType"] = 0;
calEvent["EventDate"] = new DateTime(2010, 7, 29, 8, 0, 0);
calEvent["EndDate"] = new DateTime(2010, 7, 30, 9, 0, 0);
calEvent["UID"] = System.Guid.NewGuid();
calEvent["TimeZone"] = 13;
calEvent["Description"] = "
";
calEvent["fAllDayEvent"] = 0;
calEvent["fRecurrence"] = 0;
calEvent.Update();
cal.Update();

Friday, May 14, 2010

Custom webpart Page template in Moss 2007

CUSTOM WEB PART PAGE (only appears in a document library?)

"C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\1033\STS\DOCTEMP\SMARTPGS"

copy spstd1.aspx and save it as "custom1.aspx"
(note later you may modify it to actually change the template layout)

( Note : "_layouts\images" folder maps to "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\template\images" in IIS).

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\IMAGES

so in ..\12\template\images copy spstd1.gif and rename it 'custom1.gif'

(this is just a little picture to show the user a preview of the template)


CREATING A CUSTOM SPCF ASPX PAGE (ONLY NEEDED ONCE, BUT MODIFIED FOR EACH NEW TEMPLATE)


spcf.aspx page makes use of "OWSSVR.DLL" it's shielded and thus the functionality can't be altered

MS have removed their content explaining how to do this (along with the custspcf.aspx template)
I have downloaded something similar from here:
http://www.dontpapanic.com/download/custspcf.aspx.txt

we now have custspcf.aspx in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS

edit it with the following instructions






Additionally google has cached the original instructions

http://74.125.77.132/search?q=cache:LSPN4h6AEF0J:msdn.microsoft.com/en-us/library/ms916835.aspx+http://msdn.microsoft.com/en-us/library/ms916835.aspx&cd=1&hl=en&ct=clnk&client=firefox-a



ONLY ONCE! NEXT, REFERENCE OUR NEW custspcf.aspx...

open the "create.aspx" page from "_layouts" folder. Search for the code


Search for...



It may look like...

" runat="server">


This is just an HTML table so, we just want to add a link below,



Custom Web Part Page



To be pretty, insert the following code between the "Basic" page and the "Web Part Page"



','','/_layouts/images/ltsmrtpg.gif')" onmouseout="this.className='ms-itemstatic';HideListInformation()" cellspacing="0" cellpadding="0" width="100%" border="0">





<SharePoint:EncodedLiteral runat='server' text='<%$Resources:wss,viewlsts_wp_page_desc%>' EncodeMethod='HtmlEncode'/> 


Custom Web Part Page





references: http://kittyandbear.net/john/research/wss-3-custom-page-template.txt