Ricardo Costa
Built-In ContentType and Field Ids
Only today that I've found that the WSS object model has 2 classes that hold all the IDs of the built-in ContentTypes and Fields.
Instead...
ItemUpdating, AfterProperties and field names
I was checking for a field value change in a WSS V3 list with the help of event handlers with no success.
In the ItemUpdating...
How to add a group to a WSS v3 site
Get the group
SPGroup group = web.SiteGroups;
Create a role assignment
SPRoleAssignment newRoleAssignment = new SPRoleAssignment(group);
Add the role definition (Full Control, Read, Contribute, …) to the role...
Register Trixbox with Netcall.pt for incoming and outgoing calls
Go to freePBX à Trunks and create a SIP trunk.
Then trunk settings are:
General Setting
Outbound Caller ID: "YOUR NAME" <YOUR NUMBER>. Type exactly with ""...
How to use FullTextSqlQuery to search in WSS
First, you have to add the following references:
Microsoft.Sharepoint
Microsoft.Sharepoint.Search
Second:
DataTable resultsDataTable = new DataTable();
using (SPSite site = new SPSite("http://server"))
{
FullTextSqlQuery query = new FullTextSqlQuery(site);
...
How to use KeywordQuery to search in WSS
First, you have to add the following references:
Microsoft.Sharepoint
Microsoft.Sharepoint.Search
Second:
DataTable resultsDataTable = new DataTable();
using (SPSite site = new SPSite("http://server"))
{
KeywordQuery query = new KeywordQuery(site);
query.QueryText = queryText;
query.ResultTypes =...
Different web.configs
In the project that I'm currently working I had a problem because my connection strings are different from the other developers: I want to...
Recursive Queries in SQL Server 2005
For building recursive queries In SQL Server 2005 we have to use a new functionality called Common Table Expressions.
Let's see how we can...
List User Profiles from MOSS 2007
using (SPSite site = new SPSite(siteUrl)){ ServerContext context = ServerContext.GetContext(site); UserProfileManager profileManager = new UserProfileManager(context); foreach (UserProfile userProfile in profileManager) Console.WriteLine(userProfile.Value);}
Problems with ItemAdded and ItemUpdated in MOSS
Just followed the steps described by Ted Pattison at Creating and Using Event Handlers in Windows SharePoint Services 3.0 in my MOSS virtual machine...