wss

SharePoint interview questions

Let's have a list of some good interview questions for SharePoint developers. Please provide one question per entry, and if possible, the answers. Also, please feel free to suggest corrections if the provided answers are wrong. I will go first: Q: How does SharePoint store pages? A: How-to-locate-sharepoint-document-library-source-p...

SPWorkflowTaskProperties.ExtendedProperties aren’t populating the fields in my task

I am attempting to pass information from a task created within a workflow to its corresponding task form. Prior to the CreateTask activity, I create an SPWorkflowTaskProperties and fill it with the usual info (title, assigned-to, etc). I also add some elements to the ExtendedProperties property. However, those custom properties never ...

Profile User DB error in WebPart

EDIT: Modified title and added update. UPDATE: We no longer believe this is a 64bit vs 32bit problem. We have found that the only people that were seeing this, were people that were set in the farm policy as "full control." (Not acting as System Account) Once we tested regular users, we found none had the problem. Removing the "probl...

Creating Custom Field Types and Custom Content Types

Does anyone have any good links for developing custom field and content types that doesn't involve using VSeWSS? Most of the stuff I have seen on the web requires installing VSeWSS, I would rather build them from scratch with just VS2005. Thanks ...

What are your biggest complaints about Sharepoint?

I'm looking into using SharePoint (WSS 3.0, specifically) for the document library and discussion board functionalities. I'd like to ask those of you who have experience in SP (MOSS or WSS, since we might upgrade in the future) for a list of the items that ticked you off or required a difficult workaround. Here's one from me - I found ...

How to limit the number of users that can access a SharePoint site collection?

We're implementing a hosted Windows SharePoint Services 3.0 system and I need to limit the number of users that a customer can give access to a site collection. A customer should be able to manage his entire site collection. He should just not be able to delete the site collection itself or add more than a given number of users to the si...

How do you instantiate a SPWeb Object from a console app?

I am trying to write a console app that simply lists the number of lists at the sharepoint root. I tried doing it by using the following code, but the object SPContext.Current is null. Any ideas of how to get the web object? SPWeb web = SPContext.Current.Site.OpenWeb("http://localhost") ; ...

Assigning multiple users to a workflow task in sharepoint

Has anyone able to assign multiple users to a sharepoint workflow task using the CreateTask activity? ...

Is there a good way to store an array in a MOSS custom content type?

I need to store an array in a custom content type in MOSS. This will always be hidden, only used programmatically. Throughout the lifecycle of the list item, I will be adding values to the array. My array may look like this after a while: value1,1 | value1,2 | value1,3 | value1,4 value2,1 | value2,2 | value2,3 | value3,1 | value3,2 ...

Serialization in C# without using file system

I have a simple 2D array of strings and I would like to stuff it into an SPFieldMultiLineText in MOSS. This maps to an ntext database field. I know I can serialize to XML and store to the file system, but I would like to serialize without touching the filesystem. public override void ItemAdding(SPItemEventProperties properties) { ...

What is the difference between these two methods of accessing the SharePoint model?

Out of the several ways of accessing the SharePoint model of a SharePoint Services 3.0 site from an ASP.NET application, two seem to be very similar: SPWeb site = SPControl.GetContextWeb(Context); SPWeb site = SPContext.Current.Web; It is my understanding that both of these methods need to be executed from within an ASP.NET applicati...

Test deployment for Sharepoint by multiple developers on a single server

We are starting with Sharepoint development with a team of three and are currently setting up our development environments. We would like to avoid installing a Server 2008 for each developer, thus a single terminal server has been setup, using Remote Windows to start a VS2008 instance on each developer's machine. Now we would like to sep...

get users by group in sharepoint

can anyone show me how to get the users within a certain group using sharepoint? so i have a list that contains users and or groups. i want to retrieve all users in that list. is there a way to differentiate between whether the list item is a group or user. if its a group, i need to get all the users within that group. im using c#, and...

Trimming DateTime format to Just Date format in CAML Query

I am trying to build a CAML query for SharePoint 2007 environment, to get items from a calendar list. Want to query items with a given 'From date' and 'To date', the calendar list contains 'EventDate' and 'EndDate' in Datetime format. I am only interested in the date part of the datetime field. How can I trim the "EventDate" DateTime fi...

IS CAML the only way to Query MOSS?

CAML is hard to learn, and dificult to use, is there a better way to get results from MOSS, besides using CAML queries? And not referring to the Web Services, which are slower, or the object model, which again is slower. ...

Can we move SharePoint up in the site hierarchy?

I have SharePoint with the local intranet link as http://shserver/Sites/LAPP/HR/LA. I want to move the site LA to the following location http://shserver/Sites/LAPP/LA. Is this possible through some tool or the only way is to recreate the site altogether in the new url location. ...

How do you insert a query value as a parameter in sharepoint designer?

I am trying to create a Data Source in SharePoint Designer that connects to a SharePoint List via XML Web Services. I have created the Data Source and connected to the list in question. I can view all the data using GetListItems, and I want to filter it using the query parameter. The query parameter takes an XmlNode, and when I put th...

Mapping Infopath fields to Sharepoint columns

Any one has any idea how to map an infopath field to a sharepoint column of type choice? The infopath field is a repeating field, so the user can select multiple options, I want to be able to map those to the choice field in sharepoint. Any ideas? update: What I'm trying to do is the following. I have a choice column in sharepoint which...

Access Datasheet view appears to be blank(charaters appear in white hence not visible) in WSS3.0

Access Datasheet view appears to be blank(charaters appear in white hence not visible) in WSS3.0 ...

What is the maximum number of characters allowed in a Note field in SharePoint?

A Text field (SPFieldText) has a limit of 255 characters. What, if any, is the limit of the Note field (SPFieldMultiLineText)? The associated documentation on MSDN (linked above) doesn't list these limitations. ...