Posts Tagged ‘MOSS

The features of MOSS 2007

2010年01月21日 星期四

Enterprise Portal

Web Form Web Part                                Use for Web Content of Type Display ( Web Form)

Web Report Web Part                              Use for Web Content of Type Output ( Report and Web Report)

Generic Web Part                                    Use for Web Let

Web Menu Web Part                                Use for Web Menu on top and left

Box Menu Web Part                                 Use for Web Menu on Activity Center Task List

Page Title Web Part                                 Use for Page Title leveraging AX Label

Windows SharePoint Services

Content Editor Web Part

Use for formatted text, tables, and images.

Form Web Part

Use to connect simple form controls to other Web Parts.

Image Web Part

Use to display pictures and photos.

Members

Use the Members Web Part to see a list of the site members and their online status.

Page Viewer Web Part

Use to display linked content, such as files, folders, or Web pages. The linked content is isolated from other content on the Web Part Page.

Relevant Documents

Use this webpart to display documents that are relevant to the current user.

User Tasks

Use this webpart to display tasks that are assigned to the current user.

XML Web Part

Use for XML, and XSL Transformation of the XML.

List View Web Part

Microsoft SharePoint Server 2007


Business Data

Business Data Actions

Display a list of actions from the Business Data Catalog.

Business Data Item

Display one item from a data source in the Business Data Catalog.

Business Data Item Builder

Creates a Business Data item from parameters in the query string and provides it to other web parts. This web part is only used on Business Data profile pages.

Business Data List

Display a list of items from a data source in the Business Data Catalog.

Business Data Related List

Display a list of items related to one or more parent items from a data source in the Business Data Catalog.

Content Rollup

Colleague Tracker

Displays your list of colleagues and any recent changes they made have had.

Memberships

Displays your site and distribution list memberships.

My Links

Use to display your links

My SharePoint Sites

Use to display documents authored by you on sites where you are a member and sites of your choice.

My Workspaces

Displays sites created under your My Site.

Site Aggregator

Use to display sites of your choice.

Dashboard

Key Performance Indicators

Shows a list of status indicators. Status indicators display important measures for your organization, and show how your organization is performing with respect to your goals.

KPI Details

Displays the details of a single status indicator. Status indicators display an important measure for an organization and may be obtained from other data sources including SharePoint lists, Excel workbooks, and SQL Server 2005 Analysis Services KPIs.

Other

Excel Web Access

Use the Excel Web Access to interact with an Excel 2007 workbook as a Web page.

I need to…

How to get SharePoint 2007 SPList Forms Url

2009年09月11日 星期五

String formUrl = String.Format(CultureInfo.InvariantCulture, "{0}/{1}?id={2}",
SPContext.Current.Web.Url,
SPContext.Current.Web.Lists[ListName].Forms[ PAGETYPE.PAGE_DISPLAYFORM].Url, item.Id);

来源: http://www.myrocode.com/post/2009/03/20/How-get-SharePoint-2007-SpListItem-DispForm-Url.aspx

Some tips for MOSS or WSS developer

2009年06月10日 星期三

  • Avoid empty catch blocks and use error logging instead.
  • Use the ‘as’ operator to cast reference types instead of a type cast. This saves you a NullReferenceException in case of an invalid cast.
  • Use the TryParse methods to convert strings to value types instead of the Convert class.
  • Everything placed in a 12-hive sub folder should have it’s custom folder (such as Application name) – except for the Xml folder.
  • Avoid Access Denied errors using the SPWeb.GetSubWebsForCurrentUser() instead of SPWeb.Webs property.
  • Use the SPSite.OpenWeb(string, bool) overload to open a site from user input or check the Url property of SPWeb after opening. Otherwise you cannot be sure that you have opened the correct site.
  • Use Uri and UriBuilder class to work with URL whenever possible.
  • Use SPUrlUtility to work with url’s. It has methods to combine urls and more.
  • Never use the SPList.GetItemById. This performs really badly on bigger lists. Either use a SPQuery or the cached methods of the PortalSiteMapProvider.
  • Check list existence prior to using it. Requires a foreach over the Web’s SPListCollection (remember to break when found). Consider to use the ListsForCurrentUser property.
  • Avoid duplicating logic… Create code libraries with general methods and classes, instead of having the same method/logic in multiple classes/projects.
  • Use try/catch statements when reading/writing from ressources, and handle them gracefully instead of throwing them to end users.
  • Use stringbuilder to concatenate strings.
  • Proper use of Dispose() on disposable sharepoint objects as SPWeb and SPSite.
  • Use the buildin functionality in Visual Studio to format documents (CTRL+K, CTRL+D)
  • When writing and reading to/from a SharePoint List, create a DAL for doing these operations.
  • Use variables (constants) and refer to these, when using strings in the code.

MOSS开发笔记2

2008年11月25日 星期二

今天是接触MOSS开发的第二天, 任务的难度开始增大. 项目需要添加若干List, 用于保存数据. 其中一个List包含一个颜色类型的自定义字段. 今天的任务就是用代码实现这个自定义字段.

正式的步骤和代码参考这里, 需要注意的几点如下:

1. 代码文件的项目需要签名, 注册到GAC中

2. acsx组件文件需要保存到模板目录中

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\CONTROLTEMPLATES

3. xml文件需要注意文件名称格式, 同样需要保存到对应的xml目录中

C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML

注意: 正式使用自定义字段前需要重新启动iis: iisreset