sharepoint2007

Sharepoint SPSite

I am trying to create a spsite of object for sharepoint search but i am getting exception in production as website not found SPSite site = new SPSite("sitename"); ServerContext scon = ServerContext.GetContext(site); SearchContext srchcontext = SearchContext.GetContext(scon); Scopes sc = new Scopes(srchcontext); ...

easiest way to do a full backup of a SharePoint db from one box and restore to another

I need to do a full backup of a SharePoint app running on our production server to a our test server running SharePoint. I tried using Central Admin to back up from the prod server, zipping up the backup and then restore to the test server, but this doesnt work. Whats the easiest way to do this? ...

Variations and CurrentUICulture problem in Sharepoint 2007?

Hello, We use variations in order to support multiple languages in a site. We have es-ES and ca-ES variations. Then we have page layouts with couple of tags where we want to show texts loaded from resource files. We also have some resource files - MyRes.resx, MyRes.es-ES.resx and MyRes.ca-ES.resx. When we are in ca-ES variation I see t...

Transfer List items with Attachments from SharePoint 2003 to an existing list in SharePoint 2007

I have items in a list in a SharePoint 2003 site that I need to add to an existing list in a 2007 site. The items have attachments. How can this be accomplished using PowerShell or C#? ...

Sharepoint Privileges

When checking in a document I execute a web service within the ItemCheckingInEvent. In Dev, no problems. I deployed the app out and it turns out I don't have enough privileges to read a configuration file. My code reads a config file to create the WCF proxy. The real issue is how can I get a return back from my function if I use the ...

Is there a way to create a link in a datasheet view in Sharepoint?

We're using Sharepoint to track/control our customer onboarding process. Basically there are items which list each deliverable and it's due date, and the different groups need to check that list daily and make sure their tasks are done and update the item. Previously we created a datasheet view, which makes it easy to see just our ta...

Hidden features of the WSS 3.0 / SharePoint 2007 development platform

Like the other "Hidden Features" questions, what are your favourite parts of the SharePoint API and development platform (both WSS 3.0 and MOSS 2007) that help you get the job done? Please share your tips, tricks and secrets! ...

Change the language of a website in Sharepoint 2007?

I have been working in my development machine with a Sharepoint installed in English. So the website I created and am woking on appears in English, I have created variations in different languages too (Spanish, Catalan, Basque, Galician). Now I realise that the admin part that is in English, should be in Spanish. I don't know how I cou...

session variable issue with user control in Son of smart part webpart

The user control is a search screen that consists of a gridview. I am string the filtered results of the gridview in a datatable and storing the datatable in the session. I am accessing the datatable in the session on the next postback. The problem is that when I am storing the dattable in the session, even though the lines of code don'...

SharePoint 2007 Attachments on customised form

Basically, I need to customise the NewForm.aspx page for a SharePoint list. I also need to have the attachment functionality carry on working. The target environment doesn't have the necessary updates applied to make this just work (and it appears unlikely that this will change. Words can't express how frustrating this is :-( ) Does any...

Sharepoint deployment with Exchange 2007

I am planning to deploy a single-server Exchange 2007 configuration and I'd like to also start using Sharepoint for collaboration - what would the recommended deployment scenario be to accomplish this [Sharepoint will also run on its own server] to allow use of OWA + Sharepoint sites both as public resources as well as common space for d...

How to create a ASP.NET association form for a SharePoint Workflow?

Hi, I'm reading Professional Microsoft SharePoint 2007 Workflow Programming. This book provides some detailed info on how SharePoint works, but not the procedures to create workflow. I wonder how to create a ASP.NET association form (instead of InfoPath form). Thanks in advance! ...

SharePoint Approval Workflow

I have a custom content type in SharePoint which has an approval workflow associated with it. The content type contains several Choice Site Columns. There is now a requirement to change the values of the choice columns AND update the existing content to reflect the new values. Eg, Existing Choices: Choice 1 Choice 2 Choice 3 New Choic...

Timeout problems with Microsoft Office SharePoint Server 2007 Query Web Service

We are having issues with the MOSS 2007 Web Service. Specifically, the Query/QueryEx method of the API. We are using the SQL Syntax to query sharepoint, and for most cases, our search execution time is very fast. However, when we add filters and sorts, things start slowing down. In some cases we even get an error. For example, this MS...

What could cause SharePoint to be unable to download a WSDL?

I created a BDC entry using the editor delivered with the SharePoint 2007 SDK. On my local installation there is no problem. When the sysadmin tries to import it into the staging farm, he gets the following error message: Application definition import failed. The following error occurred: There was an error downloading 'http://...

WebPart Connections on Sharepoint. - Which Type to use?

I Wrote a sample webpart which takes the parameter passed from orher webpart and display its value on a label. Here is the code: [Guid("11a885e9-13e1-4c6e-8045-e5575794ebd8")] public class DisplayParameter : System.Web.UI.WebControls.WebParts.WebPart { protected Label _label = new Label(); private string _message; [ConnectionCon...

Taking /Pages out of the SharePoint URL?

A customer is asking if there is anything we can do to remove "/Pages" from his Internet-facing MOSS publishing site. Some Googling reveals that some clever use of HTTPModules may be able to hide the presence of Pages, but I've yet to see an end-to-end working solution. Have any of you come up against this particular requirement, and i...

I Need to have a field where you can show an hour in Sharepoint 2007

I have a website in Sharepoint 2007. I need to create a page where I have a field where the user can enter an hour (22:00, for example). I will then make some CAML queries, asking to get the pages with the hour less or greater than a specific hour. I know Sharepoint have the Datetimefield, but this one only shows the date, you cannot se...

Which are the best forums about Sharepoint 2007?

Could you tell me some good forums about Sharepoint 2007? I find there are not a lot of specialized sites about this. ...

SharePoint crawling files in a file server

Is SharePoint capable of crawling files that are store in a file server? If yes, how? ...