By Udayakumar Ethirajulu , on October 22nd, 2009
By Default the document information panel will not be enabled in document library.
Go to Library Settings
Click Advanced Settings
Enable allow management of content types in Advanced Settings.
Click the Document Content Type and click on Document Information Panel settings.
Check show always option to enable document [...]
By Udayakumar Ethirajulu , on October 21st, 2009
Item Updating or Item Updated Event in SharePoint 2007 occurs twice, if require checkout option is enabled for document library.
I found the following workaround from Microsoft Support for this issue.
Check the value of vti_sourcecontrolcheckedoutby
in BeforeProperties and AfterProperties, if the both values are null then the event is triggered by check in else the event is [...]
By Udayakumar Ethirajulu , on October 19th, 2009
To find the installed version of SharePoint in system,
Browse to Central Administration -> Operations -> Servers in Farm [Topology and Services]
Version information will be displayed for each and [...]
By Udayakumar Ethirajulu , on October 14th, 2009
Permission Level for the user or group can be modified to restrict the user to edit in SharePoint designer.
Site Settings -> Advanced Permissions
Click Advanced Permissions, Select Settings -> Permission Levels
You can add/edit existing permission level.
Uncheck Browse Directories [...]
By Udayakumar Ethirajulu , on October 12th, 2009
Create New WebPart Page.
In Edit Mode, Click add WebPart then select RSS Viewer WebPart from gallery.
Click Modify Shared WebPart to change to Edit mode of WebPart, then specify the [...]
By Udayakumar Ethirajulu , on October 4th, 2009
To Change the Home Page or Landing Page in SharePoint,
Browse to
Site Actions ->
(Look And Feel) Welcome Page – Specify your [...]
By Udayakumar Ethirajulu , on October 3rd, 2009
SPAlerCollection class can be used to get the Alert Collection for the User.
The below code snippet is used to read all alerts registered for the site collection users.
private
static
void GetAlerts()
{
SPSite currSite = new
SPSite(“http://uday”);
SPWeb currWeb = currSite.OpenWeb();
SPUserCollection collUsers = currWeb.Users;
try
{
foreach (SPUser usr in collUsers)
[...]
By Udayakumar Ethirajulu , on October 2nd, 2009
To set the timer job interval for alerts can set by using the setproperty for the property job-immediate-alerts command in stsadm.
Syntax:STSADM -o getproperty -pn job-immediate-alerts –pv <property value> -url <URL of the Site>
Example:STSADM -o getproperty -pn job-immediate-alerts –pv “every 2 minutes” [...]
By Udayakumar Ethirajulu , on October 1st, 2009
The below lines of code snippet is to update the infopath xml record(file)
SPWeb _web = SPContext.Current.Web;
SPList _list = _web.Lists["SampleFormLib"];
MemoryStream myInStream = new MemoryStream(item.File.OpenBinary());
XmlTextReader reader = new XmlTextReader(myInStream);
XmlDocument doc = new XmlDocument();
doc.Load(reader);
reader.Close();
myInStream.Close();
XmlNamespaceManager nameSpaceManager = new XmlNamespaceManager(doc.NameTable);
nameSpaceManager.AddNamespace(“my”, “http://schemas.microsoft.com/office/infopath/2003/myXSD/2009-06-11T12:44:57“);
doc.DocumentElement.SelectSingleNode(“my:Status”, nameSpaceManager).InnerText = “Saved”;
doc.DocumentElement.SelectSingleNode(“my:SaveDate”, nameSpaceManager).InnerText = DateTime.Today.ToString();
System.Text.ASCIIEncoding encoding = new [...]
Popular Articles