sharepoint

How to move document to different folder in SharePoint library with web services

I am desperately trying to move a document in a document library from one folder to another (yes, within the same library). All this is needed to be done through web services. I am using UpdateListItems method with batching XML like this: <Batch> <Method ID="1" Cmd="Update"> <Field Name="ID">14</Field> <Field Name="ServerUrl">...

SharePoint: Can a Content Type have an attachments collection property?

I have a content type, that will store text site columns, and I want to know if its possible to have an attachments collection? This I guess could be stored in some folder structure. ...

What is the correct way to format SPGridView values being displayed?

Hello. Problem As we know, SharePoint saves data in database in plain text. Some fields even have concatenated strings like <id>;#<value> for user fields. Percents are saved as doubles (1.00000000000000 for 100%) and etc. Ofcourse, I want to display data as they are displayed in lists. What should I do? Should I use derived SPBoundF...

SharePoint Workflow completes prematurely when reaches the onWorkflowItemChanged event

I have a workflow running on a forms list. The workflow has an OnWorkflowItemChanged activity sitting within a While activity. I know that the workflow enters the While loop and checks the while condition that has the value 'true', but it does not enter into the OnWorkflowItemChanged activity to execute its code. Once it enters the while...

Sharepoint accessing "User Information List" via a webservice

I am trying to get the contents of "User Information List". This list can only be acessed as an admin user. I have a method that logs in as the admin user and then does the following: var xmlDoc = new XmlDocument(); var query = xmlDoc.CreateElement("Query"); query.InnerXml = "<Where><Eq><FieldRef Name='ContentType' /><Value Type='Choice...

SharePoint Custom fields and AfterProperties

I have created a custom field in SharePoint that inherits from the SPFieldDateTime: public class ExpiryDateField : SPFieldDateTime { public ExpiryDateField(SPFieldCollection fields, string fieldName) : base(fields, fieldName) { } public ExpiryDateField(SPFieldCollection fields, string typeName, string displayName...

What master page is used for SharePoint Site Settings pages?

I'm wanting to edit the master page that is used for the Site Settings pages in a SharePoint site. I've changed the main master page but it doesn't alter the Site Settings page. What page do I need to edit? ...

Deploying a file to the filesystem using MOSS Solutions and Features

Hi I have a .browser file that I need to deploy to the following location: c:\browsers\ as part of a moss .wsp file. Can I do this in the manifest.xml or as part of a feature? Kind Regards ...

Cannot login to WSS 3.0 site using forms authentication

A changed Windows authentication to Forms authentication. Using the following example. I added a user with Web Site Administration Tool. Finally I added this user as Site Collection Administrators and the user is recognized by SharePoint. Happy with that is started my WSS site in the browser but when I try to Sign in using this sign in ...

SharePoint: is it possible to intercept/modify documents before they're returned to the client?

I'd like SharePoint to behave as is, but prior to returning documents to users, I'd like the option to intercept the document and make user-specific additions/changes. So basically: 1) Can you even tweak the code responsible for "opening" files in SharePoint? 2. If so, can you do it on a user specific basis (e.g. use the default code fo...

Outlook Appointment from Sharepoint Web Part

Is it possible to create an appointment in Outlook from a custom Sharepoint Web Part programmatically? VB.Net links or examples would be most helpful. Thanks. ...

Sharepoint 2007 Column Filtering breaks when new field added

Wondering if anyone has seen this before. We have a sharepoint site we maintain that contains records of job applicants. If we ever add a new field to the list all of the filtering on the site breaks until we go through and update each new record in some way. We dont have to set a value for the new field, we just have to change A fie...

Creation date of SPWebApplication object?

I would like to know the creation date and time of all Web Applications in a SharePoint farm. But after studying the SDK and inspecting SPWebApplication objects with SharePoint Manager it looks like this information is not available! Can you confirm this or do you know a way of obtaining these metadata? ...

Change pictures on a Masterpage depending on documents in Document Library.

I have to display a picture with a link on the masterpage of a sharepoint site. I also have a document library with a custom field named status. When in the library exists a document with the status "Active" the picture should be red with the link pointing to the document. When there is no Active document the picture should be blue and p...

SharePoint Projects

Hi All I have been getting into SharePoint recently, I have bought the Ted Pattison book, which is great. However I am after some 'real life' projects/problems to solve. So this question is really to all you SP devs out there. What are the most common requests from clients? Is it creating Web Parts, Workflow, or Content Types etc? If...

SharePoint: Timerjobs Lock Type

Hi I am trying to create a timer job in WSS 3.0. My timer job would create the object of SPsite then SPWeb and then SPDocumentLibrary (or possibly picture library)using their GUIDs stored in any xml or database.After that it would take the back up of documents in the document library in some third party application and then delete thos...

How does a MOSS web front end route search requests to query servers?

Does the web front end accept a search request coming from my own program? If yes, how does the request get routed to a particular query server, given that I have multiple query servers? Is any particular algorithm used (e.g. round-robin)? ...

InvokeWorkflowActivity doesn't call workflow

I'm trying to get one workflow to call another one. I tried using the invokeWorkflowActivity, I set the TargetWorkflow to the workflow that I want to get called. It's in another project so I added the project as a reference. What else do I have to set up in order for this to work properly. I get no errors, the first workflow starts and...

Sharepoint development using Visual Studio Express?

Having spent the past few weeks familiarising myself with WSS 3.0 I finally want to get around to doing some Sharepoint development. I have Visual Studio Express installed on my Sharepoint server, but when I try to install the "WSS 3.0 Tools: Visual Studio Extensions" from Microsoft it tells me that I don't have Visual Studio installed. ...

Sharepoint: Can a Content Type have a site column of type file?

I know a content type has an attachments collection but is it possible to have a site column of type file? That is not part of attachments? ...