SharePoint 2007 > Central Administration > Operations
Optimal Settings (RDA):
Diagnostic Logging > Event Throttling > Select a category > All > Least critical event to report to the event log > Error > Least critical event to report to the trace log > High > OK
Diagnostic Logging > Event Throttling > Select a category > MS Search Administration > Least critical event to report to the event log > Error > Least critical event to report to the trace log > Monitorable > OK
Diagnostic Logging > Event Throttling > Select a category > Setup & Upgrade > Least critical event to report to the event log > Error > Least critical event to report to the trace log > Monitorable > OK
Debug Settings (Andrew Connell):
Diagnostic Logging > Event Throttling > Select a category > All > Least critical event to report to the trace log > Verbose
Trace Log > Number of log files > 5 > Number of minutes to use a log file > 3
Thursday, February 18, 2010
Wednesday, January 20, 2010
Monday, January 18, 2010
SP2007 - Event Handler AfterProperties DateTime
...
using Microsoft.SharePoint.Utilities
...
// THIS WORKS:
DateTime taskDueDate = Convert.ToDateTime(properties.ListItem[TASK_DUE_DATE_INTERNAL_FIELD_NAME]);
// THIS DOES NOT WORK:
// DateTime taskDueDateAfter = Convert.ToDateTime(properties.AfterProperties[TASK_DUE_DATE_INTERNAL_FIELD_NAME]);
// USE THIS INSTEAD:
string taskDueDateAfterString = properties.AfterProperties[TASK_DUE_DATE_INTERNAL_FIELD_NAME].ToString();
DateTime taskDueDateAfter = SPUtility.CreateDateTimeFromISO8601DateTimeString(taskDueDateAfterString);
using Microsoft.SharePoint.Utilities
...
// THIS WORKS:
DateTime taskDueDate = Convert.ToDateTime(properties.ListItem[TASK_DUE_DATE_INTERNAL_FIELD_NAME]);
// THIS DOES NOT WORK:
// DateTime taskDueDateAfter = Convert.ToDateTime(properties.AfterProperties[TASK_DUE_DATE_INTERNAL_FIELD_NAME]);
// USE THIS INSTEAD:
string taskDueDateAfterString = properties.AfterProperties[TASK_DUE_DATE_INTERNAL_FIELD_NAME].ToString();
DateTime taskDueDateAfter = SPUtility.CreateDateTimeFromISO8601DateTimeString(taskDueDateAfterString);
Friday, January 15, 2010
SP2007 - SPUser SPFieldUserValue Event Handler
bool isUserAuthor = false;
if (properties.ListItem[AUTHOR_INTERNAL_FIELD_NAME] != null)
{
SPFieldUserValue authorFieldValue = new SPFieldUserValue(properties.OpenWeb(), properties.ListItem[AUTHOR_INTERNAL_FIELD_NAME].ToString());
if (authorFieldValue.User.LoginName == properties.UserLoginName)
{
isUserAuthor = true;
}
}
if (properties.ListItem[AUTHOR_INTERNAL_FIELD_NAME] != null)
{
SPFieldUserValue authorFieldValue = new SPFieldUserValue(properties.OpenWeb(), properties.ListItem[AUTHOR_INTERNAL_FIELD_NAME].ToString());
if (authorFieldValue.User.LoginName == properties.UserLoginName)
{
isUserAuthor = true;
}
}
Thursday, January 14, 2010
SP2007 Quick Launch - Link that opens in new browser window
Site Actions > Site Settings > Quick Launch > New Link > Url > javascript:void window.open('http://www.google.com','_blank');
Relative URLs work as well.
Relative URLs work as well.
Monday, December 21, 2009
SP2010 Beta Search - Adobe PDF IFilter
Download pdficon_small.gif:
http://www.adobe.com/misc/linking.html
Copy pdficon_small.gif and paste in:
{SharePointRoot}\TEMPLATE\IMAGES\
{SharePointRoot}\TEMPLATE\XML\DOCICON.XML > Add the following:
<mapping Key="pdf" Value="pdficon_small.gif"/>
Recycle Application Pool.
Download x64 PDF IFilter from foxit:
http://www.foxitsoftware.com/pdf/ifilter/index.html#downifilter
regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Search\Applications\GUID\Gather\Search\Extensions\ExtensionList > Edit > New > String Value > 47 > Enter > Right-Click > Modify > Value data > pdf > OK
cmd > net stop SPSearch4 > net stop OSearch14 > net start SPSearch4 > iisreset
Central Administration > Application Management > Manage service applications > Search Service Application > Left Nav > Crawling > File Types > New File Type > File Extension: pdf > OK
Start Full Crawl
http://www.adobe.com/misc/linking.html
Copy pdficon_small.gif and paste in:
{SharePointRoot}\TEMPLATE\IMAGES\
{SharePointRoot}\TEMPLATE\XML\DOCICON.XML > Add the following:
<mapping Key="pdf" Value="pdficon_small.gif"/>
Recycle Application Pool.
Download x64 PDF IFilter from foxit:
http://www.foxitsoftware.com/pdf/ifilter/index.html#downifilter
regedit > HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\14.0\Search\Applications\GUID\Gather\Search\Extensions\ExtensionList > Edit > New > String Value > 47 > Enter > Right-Click > Modify > Value data > pdf > OK
cmd > net stop SPSearch4 > net stop OSearch14 > net start SPSearch4 > iisreset
Central Administration > Application Management > Manage service applications > Search Service Application > Left Nav > Crawling > File Types > New File Type > File Extension: pdf > OK
Start Full Crawl
Tuesday, December 15, 2009
Microsoft File Transfer Manager - How to re-open
cmd > c: > %SystemRoot%\Downloaded Program Files\ > transfermgr.exe > Options... > Place application shortcut on the desktop
Subscribe to:
Posts (Atom)