Saturday, May 31, 2008

Custom Web Part property : Drop down list

Create a user-defined enumeration method named CustomMode.

public enum CustomMode
{
Full,
Titles
}

Now create a custom property which will use our enumeration method:

private CustomMode displayMode= CustomMode.Full;
[Personalizable(PersonalizationScope.User), WebBrowsable(true), WebDisplayName("Display Mode"),
WebDescription("Which mode would u like to use to display the information?"),
Category("Custom Settings")]
public CustomMode DisplayMode{
get{return displayMode}
set{displayMode= value;}

Add a Custom Property for a webpart

Declare a region called Web Part Properties and for each custom property, create an entry similar to the one below:

private string listName;
[Personalizable(PersonalizationScope.Shared),
WebDisplayName(true),
WebDisplayName("List Name"),
WebDescription("Set your list name you wish the webpart to read from"),
Category("Custom Settings")]
public string ListName
{
get{return listName;}
set{listName = value;}
}

Thursday, May 22, 2008

Additional information on difference of WSS and MOSS

http://www.milesconsultingcorp.com/SharePoint-Portal-2007-Version-Comparison-between-MOSS2007-and-WSS3.aspx

Study notes 3

Site pages support user customisations. This brings performance concerns and security issues. Application pages does support customisations. Applications are allowed to have inline code.

Content types allow you to store multiple different types of content in one list or library. Content types bind a group of fields together. They are reusable, defines columns.

Study notes 2

A Web Application is a IIS Web site specially configured to run WSS sites.

A site collection is a container of WSS sites. Each site collection requires a top level site.

A sub site are created under a site collection.

A web application is a container of site collections. A site collection is a container for sub sites.

Site collections provide scope for membership and security authorisation.
Site collections provide a convinient scope for backup and restore operations.

Features provide a mechanism for defining and adding site elements such as menu custom actions, web parts, and event handlers.

Application pool identity - Configured with a specific system account or domain account. When http.sys launches a new instance of the woker process w3wp.exe for a specific application pool, it uses the application pool identity to initialise a Window Security token that servces as a process token. It establishes the 'run as' identity for code that runs withing the IIS worker process.

When WSS converts an IIS Website into a Web application, it creates serval virtual directories. These are used by various aspects of the WSS runtime.

My Study Notes

WSS 3.0 offers all the standard site templates to build blank sites, blogs, wikis and other work spaces. Version control, task notification and alerts all come with WSS 3.0. WSS is included as a part of the Windows Server 2003 operating system.

MOSS offers all of the features included in WSS 3.0. In addition, MOSS 2006 offers business intelliegence features that allow you to track key performance indicators. MOSS offers all the features of WSS but enhances and extends them while also adding new functionality.

Main differences:

- Personalisation: MOSS allows users to have individual, personalised sites; WSS doesn't.
- Audience Targeting - MOSS allows you to target content to specific user groups; WSS doesn't
- Search administration and customization - MOSS gives its administrators much more control over the configuration of its search engine; WSS doesn't.
- User Profiles: MOSS allows you to import, store, and update personal data on your users; its not available in WSS.
- MOSS allows all of the content in multiple site collections to be crawled and indexed, then made available in a centralised search site.

Wednesday, May 14, 2008

Not able to join all .001, .002, etc files with HJ-SPLIT

After downloading .001, .002, and so on, you proceed to use HJ-SPLIT to join the files.

In some situations, you may face an error and the joing process will either not work or will only join some of the files.

1. Make sure you have all the files you require, i.e .001 to 0.010
2. Right click on each of these files and check the Properties. Ensure that you select "Un Block" for each one of these files on the properties screen. This blocking mechanism occurs on XP SP2, not sure if it does on other OSystems.
3. Join again.
4. Make sure the result file is the same size as the sum of all the .001, .002 etc files sizes altogether.